iptables on warty
Jim Cheetham
jim at egressive.com
Mon Mar 7 07:24:21 UTC 2005
On Mar 7, 2005, at 7:22 PM, Christoph Georgi wrote:
> Jim Cheetham wrote:
> | identical, too - although I would prefer to see the original script
> | in /etc/init.d rather than elsewhere.
> It seems that you need to have the permissions set to 0777 in the
> init.d
> folder which makes the firewall script vulnerable as anyone can rewrite
> it?! Or do I miss something?
>
Yep - create the file as the root user :-) not as a normal user.
$ sudo vi /etc/init.d/myiptables
and then link it into rc2.d with
$ sudo ln -s /etc/init.d/myiptables /etc/rc2.d/S20myiptables
-jim
More information about the ubuntu-users
mailing list