<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ampr.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=M6XCV</id>
	<title>44Net Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ampr.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=M6XCV"/>
	<link rel="alternate" type="text/html" href="https://wiki.ampr.org/wiki/Special:Contributions/M6XCV"/>
	<updated>2026-05-16T03:34:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=799</id>
		<title>RIP44.lua</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=799"/>
		<updated>2019-04-08T10:51:02Z</updated>

		<summary type="html">&lt;p&gt;M6XCV: fix download instructions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Status: Experimental. ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
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 &amp;quot;ip&amp;quot; command installed then you will also need this.&lt;br /&gt;
&lt;br /&gt;
== OpenWRT Install ==&lt;br /&gt;
I have provided an OpenWRT package which should install the required dependencies.&lt;br /&gt;
&lt;br /&gt;
SSH in to your device and run the following commands:&lt;br /&gt;
&lt;br /&gt;
*opkg update&lt;br /&gt;
*opkg install wget libustream-openssl ca-bundle ca-certificates (to support HTTPS for the download)&lt;br /&gt;
*wget https://raw.githubusercontent.com/NotMikeDEV/RIP44/master/rip44_2019.04.07-1_all.ipk&lt;br /&gt;
*opkg install rip44_2019.04.07-1_all.ipk&lt;br /&gt;
&lt;br /&gt;
You then need to edit &#039;&#039;&#039;/etc/rip44.conf&#039;&#039;&#039; to specify your AMPRNet allocation. Once this is done, reboot to load the required modules and start the daemon.&lt;br /&gt;
&lt;br /&gt;
If the configuration setting 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 location.&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;ip route list table 44&amp;lt;/code&amp;gt; to check. Broadcasts are sent every 5 minutes, so you will have to wait for the next broadcast to confirm everything is working.&lt;br /&gt;
&lt;br /&gt;
You should not need to wait for a RIP broadcast before the routes appear after the initial run.&lt;br /&gt;
&lt;br /&gt;
If you have just added your gateway to the portal then you may need to wait an hour or so before you start receiving broadcasts.&lt;br /&gt;
&lt;br /&gt;
== Other Linux systems ==&lt;br /&gt;
&lt;br /&gt;
Get the script by cloning https://github.com/NotMikeDEV/RIP44 you will need to place rip44.conf in /etc/rip44.conf and rip44.lua in an appropriate directory. You will also need to set rip44.lua to run on startup. Further instructions are distro-specific, but anyone familiar with Linux should be able to figure it out. Startup scripts are not currently provided for distributions other than OpenWRT as it is felt that another routing daemon is probably more appropriate on platforms with full toolchains. This script is primarily designed for OpenWRT devices where binary releases are awkward to build.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
Perform a TraceRoute from one of your AMPRNet IP addresses to 44.88.0.1 and ensure it does *not* go through your ISP. By default the script adds the specified address to your tunnel interface, so if your network allocation is 44.1.2.0/29 you could test from the router with the command &amp;lt;code&amp;gt;traceroute 44.88.0.1 -s 44.1.2.0&amp;lt;/code&amp;gt;. Note that this does not stop you from assigning your allocation to an Ethernet interface.&lt;br /&gt;
&lt;br /&gt;
If traffic appears to be blocked, you may need to add the interface (tunl0) in the OpenWRT web interface and add it to a firewall zone. It depends on your firewall configuration for if this will be needed or not, you may also need to set your WAN interface to ALLOW inbound traffic to receive the IPIP encapsulated packets. The requirements for OpenWRT network configuration should be the same as with other daemons, so if you have previously set up another routing daemon it should work the same with this one.&lt;br /&gt;
&lt;br /&gt;
Check out the [[Services]] page for other hosts you can run tests to.&lt;br /&gt;
&lt;br /&gt;
This script will set up your routing with a separate routing table for your 44Net prefix. This means other traffic will continue to use your normal Internet connection. Only traffic from your 44/8 prefix will be routed through the tunnels. If you wish for all traffic to come from a 44Net IP you will need to adjust the routing and NAT accordingly.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
This script is experimental, please let m6xcv@m6xcv.uk know if you are using this script and if it worked or not. If you have any problems then contact me and I will look in to it.&lt;/div&gt;</summary>
		<author><name>M6XCV</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=798</id>
		<title>RIP44.lua</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=798"/>
		<updated>2019-04-07T23:26:46Z</updated>

		<summary type="html">&lt;p&gt;M6XCV: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Status: Experimental. ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
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 &amp;quot;ip&amp;quot; command installed then you will also need this.&lt;br /&gt;
&lt;br /&gt;
== OpenWRT Install ==&lt;br /&gt;
I have provided an OpenWRT package which should install the required dependencies.&lt;br /&gt;
&lt;br /&gt;
SSH in to your device and run the following commands:&lt;br /&gt;
&lt;br /&gt;
*wget https://github.com/NotMikeDEV/RIP44/blob/master/rip44_2019.04.07-1_all.ipk&lt;br /&gt;
*opkg update&lt;br /&gt;
*opkg install rip44_2019.04.07-1_all.ipk&lt;br /&gt;
&lt;br /&gt;
You then need to edit &#039;&#039;&#039;/etc/rip44.conf&#039;&#039;&#039; to specify your AMPRNet allocation. Once this is done, reboot to load the required modules and start the daemon.&lt;br /&gt;
&lt;br /&gt;
If the configuration setting 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 location.&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;ip route list table 44&amp;lt;/code&amp;gt; to check. Broadcasts are sent every 5 minutes, so you will have to wait for the next broadcast to confirm everything is working.&lt;br /&gt;
&lt;br /&gt;
You should not need to wait for a RIP broadcast before the routes appear after the initial run.&lt;br /&gt;
&lt;br /&gt;
If you have just added your gateway to the portal then you may need to wait an hour or so before you start receiving broadcasts.&lt;br /&gt;
&lt;br /&gt;
== Other Linux systems ==&lt;br /&gt;
&lt;br /&gt;
Get the script by cloning https://github.com/NotMikeDEV/RIP44 you will need to place rip44.conf in /etc/rip44.conf and rip44.lua in an appropriate directory. You will also need to set rip44.lua to run on startup. Further instructions are distro-specific, but anyone familiar with Linux should be able to figure it out. Startup scripts are not currently provided for distributions other than OpenWRT as it is felt that another routing daemon is probably more appropriate on platforms with full toolchains. This script is primarily designed for OpenWRT devices where binary releases are awkward to build.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
Perform a TraceRoute from one of your AMPRNet IP addresses to 44.88.0.1 and ensure it does *not* go through your ISP. By default the script adds the specified address to your tunnel interface, so if your network allocation is 44.1.2.0/29 you could test from the router with the command &amp;lt;code&amp;gt;traceroute 44.88.0.1 -s 44.1.2.0&amp;lt;/code&amp;gt;. Note that this does not stop you from assigning your allocation to an Ethernet interface.&lt;br /&gt;
&lt;br /&gt;
If traffic appears to be blocked, you may need to add the interface (tunl0) in the OpenWRT web interface and add it to a firewall zone. It depends on your firewall configuration for if this will be needed or not, you may also need to set your WAN interface to ALLOW inbound traffic to receive the IPIP encapsulated packets. The requirements for OpenWRT network configuration should be the same as with other daemons, so if you have previously set up another routing daemon it should work the same with this one.&lt;br /&gt;
&lt;br /&gt;
Check out the [[Services]] page for other hosts you can run tests to.&lt;br /&gt;
&lt;br /&gt;
This script will set up your routing with a separate routing table for your 44Net prefix. This means other traffic will continue to use your normal Internet connection. Only traffic from your 44/8 prefix will be routed through the tunnels. If you wish for all traffic to come from a 44Net IP you will need to adjust the routing and NAT accordingly.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
This script is experimental, please let m6xcv@m6xcv.uk know if you are using this script and if it worked or not. If you have any problems then contact me and I will look in to it.&lt;/div&gt;</summary>
		<author><name>M6XCV</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=797</id>
		<title>RIP44.lua</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=797"/>
		<updated>2019-04-07T23:01:56Z</updated>

		<summary type="html">&lt;p&gt;M6XCV: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Status: Experimental. ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
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 &amp;quot;ip&amp;quot; command installed then you will also need this.&lt;br /&gt;
&lt;br /&gt;
== OpenWRT Install ==&lt;br /&gt;
I have provided an OpenWRT package which should install the required dependencies.&lt;br /&gt;
&lt;br /&gt;
SSH in to your device and run the following commands:&lt;br /&gt;
&lt;br /&gt;
*wget https://github.com/NotMikeDEV/RIP44/blob/master/rip44_2019.04.07-1_all.ipk&lt;br /&gt;
*opkg update&lt;br /&gt;
*opkg install rip44_2019.04.07-1_all.ipk&lt;br /&gt;
&lt;br /&gt;
You then need to edit &#039;&#039;&#039;/etc/rip44.conf&#039;&#039;&#039; to specify your AMPRNet allocation. Once this is done, reboot to load the required modules and start the daemon.&lt;br /&gt;
&lt;br /&gt;
If the configuration setting 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 location.&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;ip route list table 44&amp;lt;/code&amp;gt; to check. Broadcasts are sent every 5 minutes, so you will have to wait for the next broadcast to confirm everything is working.&lt;br /&gt;
&lt;br /&gt;
You should not need to wait for a RIP broadcast before the routes appear after the initial run.&lt;br /&gt;
&lt;br /&gt;
If you have just added your gateway to the portal then you may need to wait an hour or so before you start receiving broadcasts.&lt;br /&gt;
&lt;br /&gt;
== Other Linux systems ==&lt;br /&gt;
&lt;br /&gt;
Get the script by cloning https://github.com/NotMikeDEV/RIP44 you will need to place rip44.conf in /etc/rip44.conf and rip44.lua in an appropriate directory. You will also need to set rip44.lua to run on startup. Further instructions are distro-specific, but anyone familiar with Linux should be able to figure it out. Startup scripts are not currently provided for distributions other than OpenWRT as it is felt that another routing daemon is probably more appropriate on platforms with full toolchains. This script is primarily designed for OpenWRT devices where binary releases are awkward to build.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
Perform a TraceRoute from one of your AMPRNet IP addresses to 44.88.0.1 and ensure it does *not* go through your ISP. By default the script adds the specified address to your tunnel interface, so if your network allocation is 44.1.2.0/29 you could test from the router with the command &amp;lt;code&amp;gt;traceroute 44.88.0.1 -s 44.1.2.0&amp;lt;/code&amp;gt;. Note that this does not stop you from assigning your allocation to an Ethernet interface.&lt;br /&gt;
&lt;br /&gt;
If traffic appears to be blocked, you may need to add the interface (tunl0) in the OpenWRT web interface and add it to a firewall zone. It depends on your firewall configuration for if this will be needed or not, you may also need to wet your WAN interface to ALLOW inbound traffic to receive the IPIP encapsulated packets. The requirements for OpenWRT network configuration should be the same as with other daemons, so if you have previously set up another routing daemon it should work the same with this one.&lt;br /&gt;
&lt;br /&gt;
Check out the [[Services]] page for other hosts you can run tests to.&lt;br /&gt;
&lt;br /&gt;
This script will set up your routing with a separate routing table for your 44Net prefix. This means other traffic will continue to use your normal Internet connection. Only traffic from your 44/8 prefix will be routed through the tunnels. If you wish for all traffic to come from a 44Net IP you will need to adjust the routing and NAT accordingly.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
This script is experimental, please let m6xcv@m6xcv.uk know if you are using this script and if it worked or not. If you have any problems then contact me and I will look in to it.&lt;/div&gt;</summary>
		<author><name>M6XCV</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Setting_up_a_gateway_on_OpenWRT&amp;diff=770</id>
		<title>Setting up a gateway on OpenWRT</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Setting_up_a_gateway_on_OpenWRT&amp;diff=770"/>
		<updated>2018-06-09T17:35:20Z</updated>

		<summary type="html">&lt;p&gt;M6XCV: add RIP44.lua link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ampr-ripd]] has been compiled for the AppliedMicro APM82181 and Atheros 71xx router CPUs&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: To operate a [[Gateway]] on [[AMPRNet]], you must have a method of obtaining up-to-date route information. On AMPRNet, a variant of [https://en.wikipedia.org/wiki/Routing_Information_Protocol RIP version 2] protocol, named [[RIP]]44 is used. [https://en.wikipedia.org/wiki/Routing_Information_Protocol RIP version 2] is not the same as [[RIP]]44.&#039;&#039;&#039; [[rip44d]] is written in the Perl programming language by Heikki Hannikainen, OH7LZB. [[ampr-ripd]] is written in C by YO2LOJ. The routing table is relatively small, so the performance or memory consumption of this daemon isn&#039;t very critical. [[ampr-ripd]] is used in this instance, so no other prerequisite software is required to run the [[RIP]]44 daemon.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;You must have access to a binary [https://en.wikipedia.org/wiki/Executable executable] of [[ampr-ripd]] that is compatible with the [https://en.wikipedia.org/wiki/Central_processing_unit CPU] in your OpenWRT device (e.g. i386, i586, x86_64, MIPS, PPC, etc.). If you do not, you must [https://en.wikipedia.org/wiki/Compiler compile] ampr-ripd yourself, or install the packages necessary to run [[rip44d]].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There is also an experimental LUA daemon at [[RIP44.lua]] which should run with standard packages.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;See&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
* [https://openwrt.org/docs/guide-developer/crosscompile Cross Compile - OpenWRT]&lt;br /&gt;
* [https://openwrt.org/docs/start OpenWRT Manual]&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: These instructions assume first that you have been assigned AMPRNet IP address allocations that are properly assigned and configured to your account in the [[Portal]]. Next, that you intend to configure your OpenWRT-based (version 14.07 or greater) AMPRNet [[Gateway]] to be a [https://en.wikipedia.org/wiki/Stateful_firewall stateful firewall] for your AMPRNet allocations (i.e. enabling connection tracking). If you prefer to forward all traffic to your allocated AMPRNet IP addresses, you may follow these instructions; but configure your Firewall Zones to forward all traffic to/from AMPRLAN to AMPRWAN. These instructions configure your AMPRNet Tunnel and AMPRNet Local Interfaces in their own [https://en.wikipedia.org/wiki/Policy-based_routing policy-based routing] sernario; and places all local AMPRNet allocations in the main routing instance (you must provide routing rules for your local AMPR subnets to reach local subnets, if you desire). Since the OpenWRT Kernel is aware that your AMPRNet allocations exist locally (and are populated on the MAIN ROUTING TABLE), you must provide routing rules for AMPRLAN to reach these local subnets, or omit those rules (not permitting your AMPRLAN to route to your local subnets). Lastly, it assumes that the user can navigate the default OpenWRT LuCI web-based graphical user interface locally (and that they are using a device capable of having the package installed), are familiar with the [https://en.wikipedia.org/wiki/Chmod chmod] command, and/or familiar with entering OpenWRT UCI (Unified Configuration Interface) commands by serial console or SSH.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
* kmod-ipip&lt;br /&gt;
* ip-full&lt;br /&gt;
* libstdcpp&lt;br /&gt;
* [[ampr-ripd]] to &#039;&#039;&#039;/etc/config/&#039;&#039;&#039; (always run [[RIP]]44 software in console mode FIRST after installation to verify execution and obtain the password, the execution of the file is commented-out below)&lt;br /&gt;
* diffutils (optional for dynamic IP filtering)&lt;br /&gt;
* (optional) dynamic firewall script to /etc/config/load_ipipfilter.sh (see the iptables section of the [[Firewalls]] wiki)&lt;br /&gt;
* the following to &#039;&#039;&#039;System &amp;gt; Startup &amp;gt; Local Startup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 ip tunnel add tunl0&lt;br /&gt;
 ip tunnel change tunl0 mode ipip ttl 64 tos inherit pmtudisc&lt;br /&gt;
 ip link set tunl0 mtu 1480 up&lt;br /&gt;
 &#039;&#039;&#039;# This directory is not persistent on OpenWRT, it must be made on boot for dynamic filtering&lt;br /&gt;
 mkdir /var/lib/ampr-ripd&lt;br /&gt;
 # A blank bootstrap file must be created at /etc/config/encap.txt for this to work&lt;br /&gt;
 # Running &#039;&#039;&#039;touch /etc/config/encap.txt&#039;&#039;&#039; once can create it&lt;br /&gt;
 # after which, you may run ampr-ripd to populate it&lt;br /&gt;
 ln -s /etc/config/encap.txt /tmp/lib/ampr-ripd/encap.txt&lt;br /&gt;
 # Dynamic filter, script executed by -x argument&lt;br /&gt;
 # Dynamic filter, -s argument creates encap.txt&lt;br /&gt;
 &#039;&#039;&#039;# ./etc/config/ampr-ripd -p &amp;lt;PASSWORD&amp;gt; -s -t 44 -a &amp;lt;44.xxx.xxx.xxx/xx&amp;gt; -x ./etc/config/load_ipipfilter.sh &amp;amp;&#039;&#039;&#039;&lt;br /&gt;
 ## Allows traceroute to respond using 44net IP of tunl0 or br-amprlan ##&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/icmp_errors_use_inbound_ifaddr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;UPDATE 2018 (routes and rules have been added to the UCI):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 # add IP Route to /etc/config/network&lt;br /&gt;
 &lt;br /&gt;
 config route&lt;br /&gt;
 	option interface &#039;amprwan&#039;&lt;br /&gt;
 	option target &#039;0.0.0.0&#039;&lt;br /&gt;
 	option netmask &#039;0.0.0.0&#039;&lt;br /&gt;
 	option gateway &#039;&#039;&#039;&#039;&amp;lt;AMPRGW&amp;gt;&#039;&#039;&#039;&#039;&lt;br /&gt;
 	option onlink &#039;1&#039;&lt;br /&gt;
 	option table &#039;44&#039;&lt;br /&gt;
&lt;br /&gt;
 # add IP Rules to /etc/config/network&lt;br /&gt;
 &lt;br /&gt;
 #OPTIONAL AMPR TO LAN RULES (NUMBER 22-2X ACCORDINGLY)&lt;br /&gt;
 config rule&lt;br /&gt;
 	option src &#039;44.xxx.xxx.0/24&#039;&lt;br /&gt;
 	option dest &#039;192.168.xxx.0/24&#039;&lt;br /&gt;
 	option priority &#039;22&#039;&lt;br /&gt;
 	option lookup &#039;main&#039;&lt;br /&gt;
 &lt;br /&gt;
 #ADD A MAIN RULE FOR EVERY LOCAL AMPR SUBNET, RENUMBER 44-4X ACCORDINGLY)&lt;br /&gt;
 config rule&lt;br /&gt;
 	option dest &#039;44.xxx.xxx.0/24&#039;&lt;br /&gt;
 	option priority &#039;44&#039;&lt;br /&gt;
 	option lookup &#039;main&#039;&lt;br /&gt;
 &lt;br /&gt;
 ### This ensures all traffic received on tunl0 uses table 44&lt;br /&gt;
 config rule&lt;br /&gt;
 	option in &#039;amprwan&#039;&lt;br /&gt;
 	option dest &#039;0.0.0.0/0&#039;&lt;br /&gt;
 	option priority &#039;45&#039;&lt;br /&gt;
 	option lookup &#039;44&#039;&lt;br /&gt;
 &lt;br /&gt;
 ###Add this after you create the AMPRLAN bridge, this ensures all traffic from AMPRLAN uses table 44&lt;br /&gt;
 config rule&lt;br /&gt;
 	option in &#039;amprnet&#039;&lt;br /&gt;
 	option dest &#039;0.0.0.0/0&#039;&lt;br /&gt;
 	option priority &#039;46&#039;&lt;br /&gt;
 	option lookup &#039;44&#039;&lt;br /&gt;
 &lt;br /&gt;
 ### You must add an IP rule for all 44net IPs residing on the device&lt;br /&gt;
 config rule&lt;br /&gt;
 	option src &#039;44.xxx.xxx.0/24&lt;br /&gt;
 	option priority &#039;47&#039;&lt;br /&gt;
 	option lookup &#039;44&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;reboot&#039;&#039;&#039;&lt;br /&gt;
* create an unmanaged Interface instance for tunl0 (&#039;&#039;&#039;AMPRWAN&#039;&#039;&#039;) &#039;&#039;&#039;(set to not bring up on boot)&#039;&#039;&#039;, adding it to its own firewall zone &#039;&#039;&#039;amprwan&#039;&#039;&#039; using Input: Drop (or Reject), Output: Drop (or Reject) and Forward: Drop (or Reject). &#039;&#039;&#039;(OpenWRT 14.07 or lower - Be sure to enable connection tracking if you will not masquerade)&#039;&#039;&#039;&lt;br /&gt;
* an interface instance for a new VLAN and bridge (the example above uses AMPRNET), add it to its own firewall zone using Input: Accept (if you wish for you AMPRLAN devices to reach the router), Output: Accept and Forward: Drop (or Reject). &#039;&#039;&#039;Assign an IP from your allocation to this interface, you will configure this IP on your devices as the Default Route/Gateway address.&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;reboot&#039;&#039;&#039;&lt;br /&gt;
* Permit forwarding from AMPRLAN to AMPRWAN and WAN (you must masquerade this traffic when using WAN)&lt;br /&gt;
* Permit forwarding from LAN to AMPRLAN (as desired, NOTE: you must make an IP Rule for the AMPRLAN to use the LAN&#039;s route on the Main Routing Table)&lt;br /&gt;
* Create Traffic Input rule to allow IPv4 IPENCAP (IP protocol type 4) from Any IP on WAN to any IP on Router (or specify WAN IP if statically assigned)&lt;br /&gt;
* Create Traffic Input rule to allow IPv4 udp/520 from 44.0.0.1 in AMPRWAN to 224.0.0.9 at port udp/520 IP on Router&lt;br /&gt;
* Create Traffic Forward rules for any inbound services (as desired)&lt;br /&gt;
* the VLAN to any switch/trunk ports (as desired)&lt;br /&gt;
* make ampr-ripd and load_ipipfilter.sh executable using &#039;&#039;&#039;chmod +x&#039;&#039;&#039;&lt;br /&gt;
* test ampr-ripd in console using the &#039;&#039;&#039;-d&#039;&#039;&#039; argument&lt;br /&gt;
* add password to the &#039;&#039;&#039;Local Startup&#039;&#039;&#039; entry and uncomment ampr-ripd line&lt;br /&gt;
* &#039;&#039;&#039;reboot&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>M6XCV</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=728</id>
		<title>RIP44.lua</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=728"/>
		<updated>2017-06-07T18:04:01Z</updated>

		<summary type="html">&lt;p&gt;M6XCV: /* Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Status: Experimental. ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
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 &amp;quot;ip&amp;quot; command installed then you will also need this.&lt;br /&gt;
&lt;br /&gt;
== Install ==&lt;br /&gt;
Installation is currently manual, a service script and installation script will be added here later.&lt;br /&gt;
&lt;br /&gt;
Download the script from [https://toolkit.m6xcv.uk/rip44.lua 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.&lt;br /&gt;
&lt;br /&gt;
Make sure the script is executable (&amp;lt;code&amp;gt;chmod +x rip44.lua&amp;lt;/code&amp;gt;) and launch it manually. When the next RIP broadcast arrives (should be every 5 minutes) confirm you get some updates.&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;ip route list table 44&amp;lt;/code&amp;gt; to check.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
Perform a TraceRoute from one of your AMPRNet IP addresses to 44.0.0.1 and ensure it does *not* go through your ISP.&lt;br /&gt;
&lt;br /&gt;
Check out the [[Services]] page for hosts you can run tests to.&lt;br /&gt;
&lt;br /&gt;
This script will set up your routing with a separate routing table for your 44Net prefix. This means other traffic will continue to use your normal Internet connection. Only traffic from your 44/8 prefix will be routed through the tunnels. If you wish for all traffic to come from a 44Net IP you will need to adjust the routing and NAT accordingly.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
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.&lt;/div&gt;</summary>
		<author><name>M6XCV</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=691</id>
		<title>RIP44.lua</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=691"/>
		<updated>2017-05-10T23:22:21Z</updated>

		<summary type="html">&lt;p&gt;M6XCV: /* Install */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Status: Experimental. ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
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 &amp;quot;ip&amp;quot; command installed then you will also need this.&lt;br /&gt;
&lt;br /&gt;
== Install ==&lt;br /&gt;
Installation is currently manual, a service script and installation script will be added here later.&lt;br /&gt;
&lt;br /&gt;
Download the script from [https://toolkit.m6xcv.uk/rip44.lua 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.&lt;br /&gt;
&lt;br /&gt;
Make sure the script is executable (&amp;lt;code&amp;gt;chmod +x rip44.lua&amp;lt;/code&amp;gt;) and launch it manually. When the next RIP broadcast arrives (should be every 5 minutes) confirm you get some updates.&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;ip route list table 44&amp;lt;/code&amp;gt; to check.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
Perform a TraceRoute from one of your AMPRNet IP addresses to 44.0.0.1 and ensure it does *not* go through your ISP.&lt;br /&gt;
&lt;br /&gt;
Check out the [[Services]] page for hosts you can run tests to.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
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.&lt;/div&gt;</summary>
		<author><name>M6XCV</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=690</id>
		<title>RIP44.lua</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=RIP44.lua&amp;diff=690"/>
		<updated>2017-05-10T23:21:30Z</updated>

		<summary type="html">&lt;p&gt;M6XCV: Create initial page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Status: Experimental. ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
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 &amp;quot;ip&amp;quot; command installed then you will also need this.&lt;br /&gt;
&lt;br /&gt;
== Install ==&lt;br /&gt;
Installation is currently manual, a service script and installation script will be added here later.&lt;br /&gt;
&lt;br /&gt;
Download the script from [https://toolkit.m6xcv.uk/rip44.lua 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.&lt;br /&gt;
&lt;br /&gt;
Make sure the script is executable (&amp;lt;code&amp;gt;chmod +x rip44.lua&amp;lt;/code&amp;gt;) and launch it manually. When the next RIP broadcast arrives (should be every 5 minutes) and confirm you get some updates.&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;ip route list table 44&amp;lt;/code&amp;gt; to check.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
Perform a TraceRoute from one of your AMPRNet IP addresses to 44.0.0.1 and ensure it does *not* go through your ISP.&lt;br /&gt;
&lt;br /&gt;
Check out the [[Services]] page for hosts you can run tests to.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
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.&lt;/div&gt;</summary>
		<author><name>M6XCV</name></author>
	</entry>
</feed>