Ik ben benieuwd naar hoe andere een firewall kan maken met iptables, bijvoorbeeld voor een server. 
Op dit moment doe ik zelf als volgend in Debian:
$ vi /etc/network/if-up.d/firewall
$ chmod 700 /etc/network/if-up.d/firewall
$ vi /etc/network/if-down.d/firewall
$ chmod 700 /etc/network/if-down.d/firewall
            Op dit moment doe ik zelf als volgend in Debian:
$ vi /etc/network/if-up.d/firewall
$ chmod 700 /etc/network/if-up.d/firewall
code:
| 1
2
3
4
5
6
7
8
9
10
11
12
 | #!/bin/bash IPTABLES=/sbin/iptables # Inkomende verbindingen $IPTABLES -A INPUT -p tcp --dport ssh -j ACCEPT $IPTABLES -A INPUT -p icmp -j ACCEPT # Uitgaande verbindingen $IPTABLES -A INPUT -p tcp --sport http -j ACCEPT $IPTABLES -A INPUT -p udp --sport domain -j ACCEPT # Drop de rest $IPTABLES -A INPUT -j DROP | 
$ vi /etc/network/if-down.d/firewall
$ chmod 700 /etc/network/if-down.d/firewall
code:
                                                | 1
2
3
4
5
6
 | #!/bin/bash IPTABLES=/sbin/iptables # Leeg alle regels $IPTABLES -F | 
:strip_exif()/u/32578/terminal.gif?f=community) 
            :strip_exif()/u/62716/avatar.gif?f=community) 
            /u/34216/avatar-60x60.png?f=community) 
            /u/107351/crop605afc50944ad_cropped.png?f=community) 
            :strip_exif()/u/2087/osiris_ani.gif?f=community) 
            :strip_exif()/u/18996/GoT_avatar.gif?f=community) 
            :strip_icc():strip_exif()/u/116726/crop5e3ee297a8a03_cropped.jpeg?f=community)