Some Linux Tips




LINKS

Some Debian Tips
awardspace.com "free webhost"
drivehq.com "free storage"
spideroak.com "free storage"
dnsexit dynamic dns server
freedns.afraid dynamic dns server
dns.he.net dynamic dns server




index   Previous   Next


Configure the iptables to keep your linux box secure or install a firewall like shorewall, first enable the ip_forward from the
/etc/sysctl.conf and then run the sysctl -p for the changes to take effect:

# Uncomment the next line to enable packet forwarding for IPv4

net.ipv4.ip_forward=1


Now run the command:

sysctl -p

To list your current iptables rules run the command:

iptables -l

To save your current iptables rules run the command:

iptables-save Or save to a file:

iptables-save > iptables-config

To delete all the iptables rules run the command:

iptables --flush

These are the already configured rules for a network running the web and mail server,with forwarding and masquerading
enabled,
run the restore command to restore from the file iptables-config :

iptables-restore < iptables-config