Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://github.com/bogdando/fuel-log-parse/blob/master/iptables-save-compare.sh
- $iptables-save-compare.sh -s -t nat /tmp/contuc /tmp/instackuc
- ## Storing stdout to ./_iptables_save_compare.log
- ### Only comparing inputs against the common tables:
- nat
- (diff '-' means: not found in /tmp/instackuc)
- (diff '+' means: not found in /tmp/contuc)
- === Diff for the table: nat (sorted, counters and comments removed) ===
- --- /dev/fd/63 2018-06-04 14:42:50.754619023 +0200
- +++ /dev/fd/62 2018-06-04 14:42:50.754619023 +0200
- @@ -1,4 +1,14 @@
- +-A BOOTSTACK_MASQ -s 192.168.24.0/24 -d 192.168.24.0/24 -j RETURN
- +-A BOOTSTACK_MASQ -s 192.168.24.0/24 -j MASQUERADE
- +-A DOCKER -i docker0 -j RETURN
- +-A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
- +-A POSTROUTING -j BOOTSTACK_MASQ
- +-A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE
- +-A PREROUTING -d 169.254.169.254/32 -i br-ctlplane -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8775
- +-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
- +#:BOOTSTACK_MASQ -
- COMMIT
- +#:DOCKER -
- #:INPUT ACCEPT
- #:OUTPUT ACCEPT
- #:POSTROUTING ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement