Hello,
A server configured by another person. I did "iptables -L" and it showed me some iptables rules, how can I find the file that these rules saved in it?
Thanks.
The default location of iptables rules.
Re: The default location of iptables rules.
On CentSO 6 and 7, if using the standard scripts, then in /etc/sysconfig/iptables. If not there then they implemented their own version of it and you'll have to work out how.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: The default location of iptables rules.
If they implemented their own version then what locations I must examine and which commands can help me?
Re: The default location of iptables rules.
Start by assuming that they used the standard location, which TrevorH kindly provided, and see if that appears to be correct.
Re: The default location of iptables rules.
Because if they wrote their own then you are the only person that can find out what they did...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke