Created
September 24, 2015 12:34
-
-
Save beltiras/629c7adec76a58efcaa9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@CentOS-71-64-minimal ~]# iptables-save | |
# Generated by iptables-save v1.4.21 on Thu Sep 24 14:31:51 2015 | |
*filter | |
:INPUT ACCEPT [4576:497904] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [4378:499230] | |
-A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT | |
-A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT | |
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT | |
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT | |
-A FORWARD -d 192.168.122.0/24 -o virbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT | |
-A FORWARD -s 192.168.122.0/24 -i virbr0 -j ACCEPT | |
-A FORWARD -i virbr0 -o virbr0 -j ACCEPT | |
-A FORWARD -d 192.168.122.105/32 -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT | |
-A FORWARD -d 192.168.122.105/32 -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT | |
-A OUTPUT -o virbr0 -p udp -m udp --dport 68 -j ACCEPT | |
COMMIT | |
# Completed on Thu Sep 24 14:31:51 2015 | |
# Generated by iptables-save v1.4.21 on Thu Sep 24 14:31:51 2015 | |
*nat | |
:PREROUTING ACCEPT [2482:154480] | |
:INPUT ACCEPT [111:12220] | |
:OUTPUT ACCEPT [30:2044] | |
:POSTROUTING ACCEPT [2432:146912] | |
-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.122.105:80 | |
-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 192.168.122.105:443 | |
-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 192.168.122.105:443 | |
-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 192.168.122.105:443 | |
-A POSTROUTING -s 192.168.122.0/24 -d 224.0.0.0/24 -j RETURN | |
-A POSTROUTING -s 192.168.122.0/24 -d 255.255.255.255/32 -j RETURN | |
-A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p tcp -j MASQUERADE --to-ports 1024-65535 | |
-A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p udp -j MASQUERADE --to-ports 1024-65535 | |
-A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j MASQUERADE | |
COMMIT | |
# Completed on Thu Sep 24 14:31:51 2015 | |
# Generated by iptables-save v1.4.21 on Thu Sep 24 14:31:51 2015 | |
*mangle | |
:PREROUTING ACCEPT [141851:42179077] | |
:INPUT ACCEPT [4616:505512] | |
:FORWARD ACCEPT [137235:41673565] | |
:OUTPUT ACCEPT [4397:505473] | |
:POSTROUTING ACCEPT [141632:42179038] | |
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill | |
COMMIT | |
# Completed on Thu Sep 24 14:31:51 2015 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment