Created
September 17, 2009 13:48
-
-
Save goozbach/188498 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Generated by iptables-save v1.4.3.1 on Thu Sep 17 09:47:05 2009 | |
*nat | |
:PREROUTING ACCEPT [15628:4179287] | |
:POSTROUTING ACCEPT [11068:690325] | |
:OUTPUT ACCEPT [11069:690365] | |
-A POSTROUTING -s 192.168.122.0/24 -d ! 192.168.122.0/24 -j MASQUERADE | |
COMMIT | |
# Completed on Thu Sep 17 09:47:05 2009 | |
# Generated by iptables-save v1.4.3.1 on Thu Sep 17 09:47:05 2009 | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [282912:32198642] | |
-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 INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p icmp -j ACCEPT | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT | |
-A INPUT -j REJECT --reject-with icmp-host-prohibited | |
-A FORWARD -d 192.168.122.0/24 -o virbr0 -m state --state 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 -o virbr0 -j REJECT --reject-with icmp-port-unreachable | |
-A FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable | |
-A FORWARD -j REJECT --reject-with icmp-host-prohibited | |
COMMIT | |
# Completed on Thu Sep 17 09:47:05 2009 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment