[prev in list] [next in list] [prev in thread] [next in thread] 

List:       voyage-linux
Subject:    Re: [Voyage-linux] Where is the appropriate place to place custom
From:       Yiorgos Adamopoulos <adamo () central ! tee ! gr>
Date:       2006-04-26 5:51:53
Message-ID: 444F0A79.3070505 () central ! tee ! gr
[Download RAW message or body]



Glenn Swonk wrote:
> I can't seem to find where to place any custom iptables rules.
>  
> Where would be the most appropriate place?
>  
> thanks,
>  
> glenn
> 

# remountrw
# cat > /etc/init.d/local.iptables

#!/bin/sh
case $1 in
'start')
	if [ -f /etc/iptables.saved ]; then
		iptables-restore < /etc/iptables.saved
	fi
	;;
'stop')
	;;
*)
	echo usage: `basename $0` '{start|stop}'
esac

ctrl-D

# chmod +x /etc/init.d/local.iptables
# update-rc.d local.iptables defaults 99
# iptables-save > /etc/iptables.saved
# reboot

_______________________________________________
Voyage-linux mailing list
Voyage-linux@list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic