Debian Tutorials

Categories


Tags


Security

Loading iptables rules on startup

By default iptables is setup on Debian etch but there are no rules configured. In this tutorial we’ll configure some rules and load them into iptables on startup. 1. Rules file Create a new file that will contain a shell script to insert rules into iptables (pico /etc/firewall-rules.sh) and add this content as template:

adminadmin