RIP44.lua
Status: Experimental.
M6XCV has written a RIP44 daemon in Lua. The expected primary use case is OpenWRT/LEDE based devices, however the script was developed on Debian and should work on any Linux platform with the appropriate libraries. The script is currently considered experimental, having received only limited testing on a couple of devices.
Requirements
The script should only require Lua and the LuaSocket module to work. As well as the IPIP kernel module, of course. If you do not have the "ip" command installed then you will also need this.
Install
Installation is currently manual, a service script and installation script will be added here later.
Download the script from https://toolkit.m6xcv.uk/rip44.lua and place it in a sensible location. Then open it in a text editor, you should only need to change LOCAL_SUBNET and GATEWAY. If GATEWAY is false then it will use your normal default route for Internet-based destinations, set it to the main gateways IP address to use that instead. You might also want to change SAVE_FILE to a different (persistent) location.
Make sure the script is executable (chmod +x rip44.lua
) and launch it manually. When the next RIP broadcast arrives (should be every 5 minutes) and confirm you get some updates.
Once you have received a broadcast, check your routing table. By default it will use routing table 44, therefore you need to use the command ip route list table 44
to check.
If everything looks OK, set the script to auto-run on startup then reboot and check the routing table again. You should not need to wait for a RIP broadcast before the routes appear after the initial run.
Testing
Perform a TraceRoute from one of your AMPRNet IP addresses to 44.0.0.1 and ensure it does *not* go through your ISP.
Check out the Services page for hosts you can run tests to.
Updates
This script is experimental, even if it works you want to check back here in a couple of weeks for updates. Startup and install scripts will also appear shortly.