LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iptables (https://www.linuxquestions.org/questions/linux-newbie-8/iptables-914776/)

tractng 11-21-2011 04:06 PM

iptables
 
I am reading different facts so I am a little confused. When you add some stuff to the iptables, do you have to restart it? If so, would any current services on the machine be affected, ie web service? I need to open ports for backup agent.

Cento 5.5 in question


execute /etc/init.d/iptables restart


tntrac

jmc1987 11-21-2011 04:13 PM

Personally I've always restarted iptables after modifing the rules.

# service iptables status

see if your new rules are there. If not then restart is required.

tractng 11-21-2011 04:27 PM

Quote:

Originally Posted by jmc1987 (Post 4530075)
Personally I've always restarted iptables after modifing the rules.

# service iptables status

see if your new rules are there. If not then restart is required.

Let's say if a restart is needed, would it affect other services (downtime) during the restart? Like web service?

Thank you for the response.

jmc1987 11-21-2011 05:20 PM

if you do
Quote:

#service iptables restart
Then it should only restart iptables unless you got some kind of custom init script which I you probably don't. you web and other services should be just fine.


All times are GMT -5. The time now is 01:27 AM.