43df5c
# sample configuration for iptables service
43df5c
# you can edit this manually or use system-config-firewall
43df5c
# please do not ask us to add additional ports/services to this default configuration
43df5c
*filter
43df5c
:INPUT ACCEPT [0:0]
43df5c
:FORWARD ACCEPT [0:0]
43df5c
:OUTPUT ACCEPT [0:0]
43df5c
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
43df5c
-A INPUT -p icmp -j ACCEPT
43df5c
-A INPUT -i lo -j ACCEPT
43df5c
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
43df5c
-A INPUT -j REJECT --reject-with icmp-host-prohibited
43df5c
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
43df5c
COMMIT