Iptables

Iptables

Postby stephen » Tue Nov 28, 2006 7:50 am

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

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
stephen
 
Posts: 507
Joined: Thu Feb 09, 2006 9:37 am
Location: Brisbane

Return to Linux Server Configuration Notes

Who is online

Users browsing this forum: No registered users and 3 guests

cron