Results 1 to 6 of 6
Hi,
I want to change the already written script of iptables and reflect the new changes. the step i am following are as ..
Code:
services iptables stop
This stop ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-19-2009 #1Just Joined!
- Join Date
- Mar 2007
- Posts
- 29
How to edit iptables
Hi,
I want to change the already written script of iptables and reflect the new changes. the step i am following are as ..
This stop the iptables. and then i open the script file that has been written by some senior person and is placed at the following locationCode:services iptables stop
after adding the extra ip's .. i restar the iptablesCode:/etc/rc.d/rc.firewall
Ideally, i should have been able to connect to the server through new IP's but i am still unable to. when i check the iptables status using this commandCode:services iptables start
I don't see any changes that i made (i.e no new ip table in accept). How would i make the changes in iptables?Code:services iptables status
P.s:
I have already read this tutorial iptables-save but this seems not working for me since we are using a script file.
- 01-19-2009 #2
You didn't tell use what distro you are using.
Not every distro work the same so...
I am willing to be that service iptables start isn't reading from the script you have modified.
The above normally reads from a saved file the rules that are applied to the firewall unless this script iptables has been modified to read another file.
If you want to use this rc.firewall script then you should run that not service iptables start.
- 01-20-2009 #3Just Joined!
- Join Date
- Mar 2007
- Posts
- 29
- 01-20-2009 #4
It is as simple as '/<path>/<script>'
As long as the permissions are set correctly.
You GOOGLE is your friend!
These are Linux Basic 101 questions.
- 01-21-2009 #5Just Joined!
- Join Date
- Mar 2007
- Posts
- 29
- 01-21-2009 #6Code:
service iptables stop /etc/rc.d/rc.firewall service iptables save


Reply With Quote

