add iptables mangle configuration for swarm

This commit is contained in:
Claudio Maradonna 2022-08-31 11:33:50 +02:00
parent ed867e87e8
commit 9de95d45d5
Signed by: claudiomaradonna
GPG key ID: B1EDCB4C3B05C387
2 changed files with 18 additions and 0 deletions

View file

@ -22,6 +22,15 @@ write_files:
permissions: 0644
owner: root:root
content: |
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i eth0 -p tcp -m tcp --dport 2222 -j DROP
COMMIT
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]

View file

@ -23,6 +23,15 @@ write_files:
permissions: 0644
owner: root:root
content: |
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i eth0 -p tcp -m tcp --dport 2222 -j DROP
COMMIT
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]