iptables on Debian
1) How does one manually start/stop iptables on Debian 3.1 sarge?
What I am after is something like "/service iptables start" on Mandrake. 2) Which TCP port do I need to open to allow APT to fetch packetc vua ftp? |
Re: iptables on Debian
Quote:
2) None you should be able to access a ftp site without opening any ports. Are you behind some kind of proxy server? |
Re: Re: iptables on Debian
Quote:
Quote:
|
Re: Re: Re: iptables on Debian
Quote:
Well do you have start, stop, restart sections in your script that actually does the proper things when shutting down/starting/restarting iptables to make sure everything gets reset correctly? If so then you should be able to put the script in the /etc/init.d/ directory then use update-rc.d name_of_script defaults and it will create links for the script to be started and stopped in the proper directories. Then to start you would /etc/init.d/name_of_script start of course to stop you would put that on the end of the command. Quote:
|
There is a script /etc/init.d/skeleton which you can use as a template to make SysV init scripts. I use this one to run my firewall script. Put the firewall script in /etc/rc.firewall. You may need to edit some paths to fit your system.
Code:
#! /bin/sh |
All times are GMT -5. The time now is 09:10 AM. |