Hey Jorge,
Jacob Friis Larsen schreef:
By the help of http://iptables-script.dk/ I have created the script
below.
Where should I store it?
You can put it in /etc/network/if-up.d
That way it starts as soon as the interface comes up.
And does it look ok?
Looks OK for basic firewalling. You could a
Jacob Friis Larsen <[EMAIL PROTECTED]> writes:
> By the help of http://iptables-script.dk/ I have created the script below.
> Where should I store it?
You can put it, for example in /usr/local/bin/foobar.sh and then add:
pre-up /usr/local/bin/foobar.sh
> And does it look ok?
I don't know that
By the help of http://iptables-script.dk/ I have created the script below.
Where should I store it?
And does it look ok?
Thanks, Jacob
#!/bin/sh
# Disable forwarding
echo 0 > /proc/sys/net/ipv4/ip_forward
# load some modules (if needed)
modprobe ip_nat_ftp
modprobe ip_conntrack_ftp
# Flush
iptables
3 matches
Mail list logo