add iptables mangle configuration for swarm
This commit is contained in:
parent
ed867e87e8
commit
9de95d45d5
2 changed files with 18 additions and 0 deletions
|
@ -22,6 +22,15 @@ write_files:
|
||||||
permissions: 0644
|
permissions: 0644
|
||||||
owner: root:root
|
owner: root:root
|
||||||
content: |
|
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
|
*filter
|
||||||
:INPUT DROP [0:0]
|
:INPUT DROP [0:0]
|
||||||
:FORWARD DROP [0:0]
|
:FORWARD DROP [0:0]
|
||||||
|
|
|
@ -23,6 +23,15 @@ write_files:
|
||||||
permissions: 0644
|
permissions: 0644
|
||||||
owner: root:root
|
owner: root:root
|
||||||
content: |
|
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
|
*filter
|
||||||
:INPUT DROP [0:0]
|
:INPUT DROP [0:0]
|
||||||
:FORWARD DROP [0:0]
|
:FORWARD DROP [0:0]
|
||||||
|
|
Loading…
Reference in a new issue