Iptables

The iptables rules are stored in this folder
/etc/sysconfig/iptables
/etc/sysconfig/iptables-config
The following tips found at
http://www.stanton-finley.net/fedora_core_5_installation_notes.html
To add a rule to allow DNS access to port 53
Save the iptables rule
List the current rules
/etc/sysconfig/iptables
/etc/sysconfig/iptables-config
The following tips found at
http://www.stanton-finley.net/fedora_core_5_installation_notes.html
To add a rule to allow DNS access to port 53
- Code: Select all
/sbin/iptables -I INPUT -p udp --destination-port 53 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --destination-port 53 -j ACCEPT
Save the iptables rule
- Code: Select all
/sbin/iptables-save > /etc/sysconfig/iptables
List the current rules
- Code: Select all
/sbin/iptables -L