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.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. 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...
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke