When it comes to firewalls you really do want to have a little control of what you are doing and SUSE is no different to other Linux Distributions in using the kernel module iptables in their implementation. Their courses though would have you believe that to configure the Firewall we need to use the graphical tools and even in the Engineer level courses introduce iptables but not iptables-save and iptables-restore. Being able to manage your firewall with intricate detail gives you so much more control and being able to save your configurations centrally with iptable-save, enables consistant configurations that can be made via the Puppet server. We will start you on your journey with iptables in this first video introducing you to the SUSE Linux firewall controlled with iptables.
- iptables -L
- iptables -F
- iptables -P INPUT ACCEPT
- iptables-save > FW_STOP
- iptables -P INPUT DROP
- iptables -A INPUT -i lo -j ACCPET
- iptables -A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
- iptables -A INPUT -p tcp –dport 22 -j ACCEPT
- iptables-save > FW_START
- iptables-restore < FW_STOP