I have been asked a couple of times to provide a starting point for a firewall based on iptables for AMPRnet gateways based on Linux. I’ll try to accomplish this here.
I’m assuming your Linux gateway uses the following interfaces:
- eth0 : connected to the Internet, has a public static IP address (this post does NOT cover AMPRnet gateways behind NAT or within DMZ)
- eth1 : connected to your local AMPRnet LAN, has a static 44net IP address
- tunl0 : the IPIP tunnel interface
The following script will allow to receive IPIP, RIPv2 and Management traffic. It will also allow connection to be initiated from the gateway or the LAN by employing a stateful firewall:
Continue reading “Basic paranoid iptables firewall for an AMPRnet gateway”