Basic paranoid iptables firewall for an AMPRnet gateway

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”

HowTo setup an AMPRnet Gateway on Linux

I had to setup many AMPRnet gateways on Linux machines and I always had a hard time remembering the different steps, so I try to provide a quick start over here.

I have been using the RIP44d deamon for all my installations, so we’ll start with downloading the current version of RIP44d:

sudo wget -O /usr/local/sbin/rip44d https://raw.github.com/hessu/rip44d/master/rip44d

The file needs to be executable by root

sudo chmod 744 /usr/local/sbin/rip44d

Continue reading “HowTo setup an AMPRnet Gateway on Linux”

IPv6 route table limits under Linux

I have been experimenting with IPv6 addressing and routing under different Linux flavors. Addressing in LANs is quite easy with Auto/Zero-Conf, however for Auto/Zero-Conf you need to use /64 network, which could lead to memory exhaustion due to a Neighbor Discovery attack (I will write more on this later, so check below for related articles). Routing is equally simple to setup with Router Advertisements.

So I wanted to go a step further and loaded a full IPv6 routing table via BGP into a linux box. Mine unfortunately had a limit in the kernel, actually net.ipv6.route.max_size was set to 4096. The BGP feed I used delivered 6419 prefixes and only 4068 were loaded into the kernel table. Continue reading “IPv6 route table limits under Linux”

Fixing xen-create-image for CentOS guests

I have been trying to install a para-virtualized CentOS guest on my Debian machine using Xen 3.2.1. The xen-create-image script comes with support for rinse, which in turn can install CentOS and Fedora. Unfortunately the list of packages installed during setup is incomplete. Continue reading “Fixing xen-create-image for CentOS guests”

Getting back to RedHat style network configuration

It’s quite some years ago when I last used a RedHat style operating system, so I was happy that I found this article to remind me of some network configuration basics. Actually the syntax hasn’t really changed since RedHat 7, but I was using Debian based operating systems for the at least the last 5 years, so it was hard to get back.

Using vif-route with multiple IPs for a Xen domU

This article at ModernAdmin saved me alot of time. I was looking how to add multiple IPs to a Xen DomU in routed mode, this requires routes to be added on the Dom0. One way was to add multiple interfaces to the DomU, the other way is to add the addresses as aliases to an existing interface. You can then just add the addresses in the config file like this: Continue reading “Using vif-route with multiple IPs for a Xen domU”

How To Solve DNS and EMail Validation Problems

This article was initially published by Mr Roger Buck on 01 Aug 2001. As the original URL http://www.saas.nsw.edu.au/solutions/dns.html does not provide the article anymore, I temporary provide the text here.
A archive version of this article is also available here. Continue reading “How To Solve DNS and EMail Validation Problems”