firewall
Peter Garrett
peter.garrett at optusnet.com.au
Thu Dec 28 12:51:26 UTC 2006
On Wed, 27 Dec 2006 21:35:17 -0500
John Dangler <jdangler at atlantic.net> wrote:
> I just upgraded my server to 6.06, and went through iptablesrocks to get
> iptables working. According to the instructions given there, it says
> to put the firewall ruleset in /etc/sysconfig/iptables in order for
> iptables rules to be loaded when the system reboots, but I don't have
> that directory in Ubuntu. Can someone here tell me where this should be
> located? Or, should I create that directory and put the ruleset file in
> it ?
>
John - personally I put my iptables script in /etc/iptables.up ( I also
have an /etc/iptables.down ) You can create those files and make them
executable, then call them from /etc/rc.local: - or call them for example
with pre-up or post-up, post-down from /etc/network/interfaces to have them
run when the network comes up/ goes down. For example
in /etc/network/interfaces :
iface eth0 inet dhcp
post-up /etc/iptables.up
post-down /etc/iptables.down
Peter
More information about the ubuntu-users
mailing list