Iptables
Moderator: moderator
You should use the iptables command to list the current rules. Update your rules as needed. Any changes you make to iptables should be persisted and can be done so using the iptables-save command. On Ubuntu, I believe by default the file is dropped to /etc/
For Red Hat based systems you could run the same command and expect the output in /etc/sysconfig/iptables. I think you can also use the save switch with the service command with iptables to also create this file.
For Red Hat based systems you could run the same command and expect the output in /etc/sysconfig/iptables. I think you can also use the save switch with the service command with iptables to also create this file.