Domeny do wyrejestrowania.... Domeny AMPRNet.. |
wg opisu z strony http://wiki.ampr.org/wiki/Setting_up_a_gateway_on_Linux Najprosciej zrobic wg opisu: ============================================================= Setting up the Tunnel and Routing to AMPRNet Automating Gateway Updates with ampr-ripd The easiest way to receive updates is by running ampr-ripd ampr-ripd is a C program that listens for updates from the AMPRNet gateway at UCSD and populates a routing table with the routes to all other gateways. Getting, compiling, and installing ampr-ripd To get ampr-ripd and install it, type the following mkdir ampr-ripd cd ampr-ripd wget http://www.yo2loj.ro/hamprojects/ampr-ripd-1.11.tgz tar -xzvf ampr-ripd-1.11.tgz sudo make sudo make install Finding the password for ampr-ripd By default the gateway updates are projected by a password. To find the password execute the following command after you have installed ampr-ripd sudo ./find_pass.sh After a short while you should see: Waiting for RIPv2 broadcasts... Simple password: <SecretPassword> Simple password: <SecretPassword> Simple password: <SecretPassword> Simple password: <SecretPassword> Simple password: <SecretPassword> Simple password: <SecretPassword> Simple password: <SecretPassword> Simple password: <SecretPassword> Simple password: <SecretPassword> Write down the <SecretPassword> and press CTRL-C to stop the program. Creating a startup script to connect to AMPRNet The following text can be appended to the end of the /etc/rc.local file on your gateway to do the following: Configure the AMPRNet IPIP Tunnel Configure local routing Start ampr-ripd First a note about netmask notation in the file In the file below your "netmask" is represented differently than you may receive from your ISP. In this case we are using CIDR notaton. For example the netmask 255.255.255.0 is represented by the CIDR notation /24. A good table of netmask to CIDR notation can be found here. (Courtesy of packetlife.net ). To add the text edit the /etc/rc.local file by: sudo nano /etc/rc.local Here is the text to append to the file NOTE: Don't forget to substitute your IP addresses for for the ones in the file. ### ## Create AMPRNet Tunnel and routing ## ## Configure Tunnel (put your ISP you received from your ISP Here). ip tunnel add ampr0 mode ipip local 192.0.2.2 ttl 255 ## Bring it up ip link set dev ampr0 up ## Enable Multicast in order to receive routes ifconfig ampr0 multicast ## Configure Policy Based routing # Packets to 44/8 network use routing table 44 ip rule add to 44.0.0.0/8 table 44 priority 44 # Packets from our 44 subnet use table 44 (put your AMPRNet Subnet here) ip rule add from 44.128.10.0/24 table 44 priority 45 ## Configure static routes # Default route for table 44 is to send traffic to amprnet gateway at UCSD ip route add default dev ampr0 via 169.228.66.251 onlink table 44 # Route packets for our net to local interface (put your AMPRNet Subnet here) ip route add 44.128.10.0/24 dev eth2 table 44 ## Start ampr-ripd to learn rest of mesh routes # Be sure to substitute the password you found earlier for <SecretPassword> # Put your static IP you received from your ISP here. ampr-ripd -s -i ampr0 -a 192.0.2.2 -t 44 -p <SecretPassword> exit 0 |