KB9MWR,

I have had success using Ubuntu Linux 12.04 LTS and rip44d to make an AMPR router. It seems at the point you executed rip44d, your tunl0 interface was not yet properly configured and the interface placed into UP status.

There were only a few main things I had to do in setup:

1.) Enable IPv4 forwarding
2.) create a startup script that: starts the IPIP tunnel as tunl0 and specifies its IP address, specify routing to AMPRGW and setup a Kernel route 'table 44' that has all 44/8 traffic use this routing table (thanks to Brian and PE1CHL for this information)
3.) at the end of this script, have it execute rip44d which was modified on line 201 to places routes on 'table 44'

You should be able to use the commands in this script on the CLI to enable the tunnel and rip44d in verbose mode to see the paswword, then just place it and your AMPR IP assignments (your 44 IP address/CIDR, the password and your Gateway address) into the script in the proper places.

These instructions do not cover the setup of eth0 and eth1, which during my setup, eth0 was a dynamically assigned IP by my residential gateway router that forwards tunnel packets into the subnet, eth1 is now configured to provide an Ethernet interface for my 44.60.44.0/24 LAN.


########################################################
### Enables AMPR IPIP Tunnel Interface
modprobe ipip
ip addr add 44.60.44.2/24 dev tunl0
# gives tunnel its own TTL enabling traceroute over tunnel
ip tunnel change ttl 64 mode ipip tunl0
ip link set dev tunl0 up

### Creates AMPR Default Routes on main Route Table
#route to 44.60.44.0/24 on main route table
ip rule add to 44.60.44.0/24 table main priority 1

### Specifies Routes to and from 44/8 are entered on Route Table 44
ip rule add from 44.0.0.0/8 table 44 priority 44
ip rule add to 44.0.0.0/8 table 44 priority 45

### Creates Default Route to the AMPRGW and the
### Internet At-large, on the 44 Router
## Per PE1CHL: 'This is "required" to get routing of the net-44 traffic correct
## and have a default route for the tunneled traffic different from the default
## route of the system. It may be possible to get it working without this,
## but policy based routing is so much easier'
# AMPRGW connects via eth0
ip route add 169.228.66.251 dev eth0 table 44
# Connection to 0/0 by 44/8 Hosts on AMPRGW, commenting disables Internet access for your 44 subnet
ip route add default dev tunl0 via 169.228.66.251 onlink table 44

### Begins the rip44d Router Dameon ###
./rip44d_table44 -a <YOUR PUBLIC IP> -p <THE PASSWORD> < /dev/null &

########################################################


########################################################
###       EDIT rip44d Line 201
### -     $cmd = "LANG=C $routebin route add $rkey via $nexthop dev $tunnel_if window $tcp_window onlink";
### +    $cmd = "LANG=C $routebin route add $rkey via $nexthop dev $tunnel_if window $tcp_window onlink table 44";
########################################################

73,


Lynwood Leach
KB3VWG

-----Original Message-----
From: 44net-request <44net-request@hamradio.ucsd.edu>
To: 44net <44net@hamradio.ucsd.edu>
Sent: Mon, Aug 20, 2012 2:58 pm
Subject: 44Net Digest, Vol 1, Issue 69

Send 44Net mailing list submissions to
	44net@hamradio.ucsd.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://hamradio.ucsd.edu/mailman/listinfo/44net
or, via email, send a message with subject or body 'help' to
	44net-request@hamradio.ucsd.edu

You can reach the person managing the list at
	44net-owner@hamradio.ucsd.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of 44Net digest..."


Today's Topics:

   1. rip44d and centos (kb9mwr@gmail.com)


----------------------------------------------------------------------

Message: 1
Date: Sun, 19 Aug 2012 19:55:28 -0500
From: kb9mwr@gmail.com
To: 44net@hamradio.ucsd.edu
Subject: [44net] rip44d and centos
Message-ID:
	<CAK4XxyQiY5m+_f3fi2HD2Nd6Pie1qTwbMM_crsyfz14wS_Hz6g@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I decided I am going to try and setup a gateway for the first time.  I
like the rip44d idea, but I didn't get very far.  Can anyone provide
some pointers?

I am trying to do it on CentOS 5 install directly connected to the
outside world.

http://wiki.ampr-gateways.org/index.php?title=Rip44d

[root@ham ~]# rpm -i perl-IO-Interface-1.04-1.el5.rf.i386.rpm
[root@cpe-174-103-214-209 ~]# rpm -i
perl-IO-Socket-Multicast-1.12-1.rhel5.i386.rpm
[root@ham ~]# ./rip44d -v
Prototype mismatch: sub main::AF_INET: none vs () at
/usr/lib/perl5/5.8.8/constant.pm line 99.
found local address: 174.103.214.209
found local address: 127.0.0.1
opening UDP socket 520...
unknown or unconfigured interace tunl0 at ./rip44d line 469

Thanks,
Steve, KB9MWR


------------------------------

_______________________________________________
44Net mailing list
44Net@hamradio.ucsd.edu
http://hamradio.ucsd.edu/mailman/listinfo/44net


End of 44Net Digest, Vol 1, Issue 69
************************************