Hi All,
I am working on creating a gateway using the example at http://wiki.ampr.org/wiki/Ubuntu_Linux_Gateway_Example however I am running into a few problems.
!. When I try to input the iptables command||
|"sudo iptables -A OUTPUT -i lo -j ACCEPT"|
||under the protecting the gateway section, i get this error:
"iptables v1.6.0: Can't use -i with OUTPUT
Try `iptables -h' or 'iptables --help' for more information."
2. after seemingly successfully making and installing ampr-ripd 2.3, when I try to run "sudo ./find_pass.sh" It gives me the standard "sudo: ./find_pass.sh: command not found" and I cant figure out what to do. Further when I try to run the "./ampr-ripd -d -v -i ampr0" line from within the shell script, I get "-bash: ./ampr-ripd: No such file or directory"
Help with either problem would be appreciated.
73,
Augustine W8AWT
||
||
Augustine,
It seems that iptables rules is invalid. You cannot specify an OUTPUT rule by defining an INPUT interface.
Try the script located here instead:
http://wiki.ampr.org/wiki/Startampr#Script
73,
- Lynwood KB3VWG
I didn't have have rip44d installed but now after running the lines from http://wiki.ampr.org/wiki/Rip44d under Installation of rip44d and Run it for the first time, rip44d does not seem to be working correctly. It runs itself but even with debug and verbose options, It wont tell me anything and just seems to complete its tasks and close without even a little output.
" Last login: Tue Jun 20 09:21:53 2017 from 10.0.0.50 gus@w8awt-dell-server:~$ ls ampr-ripd Documents Music Public Templates Desktop Downloads Pictures rip44d Videos gus@w8awt-dell-server:~$ sudo ./rip44d -v [sudo] password for gus: gus@w8awt-dell-server:~$ sudo ./rip44d -h gus@w8awt-dell-server:~$ sudo ./rip44d gus@w8awt-dell-server:~$ sudo ./rip44d -d gus@w8awt-dell-server:~$ rip44d rip44d: command not found gus@w8awt-dell-server:~$ ./rip44d gus@w8awt-dell-server:~$ "
73,
Augustine W8AWT
On 6/20/2017 11:01 AM, lleachii--- via 44Net wrote:
Augustine,
It seems that iptables rules is invalid. You cannot specify an OUTPUT rule by defining an INPUT interface.
Try the script located here instead:
http://wiki.ampr.org/wiki/Startampr#Script
73,
- Lynwood
KB3VWG
44Net mailing list 44Net@hamradio.ucsd.edu http://hamradio.ucsd.edu/mailman/listinfo/44net
Augustine,
First, you obviously don't read documentations and changelogs.
- The password is now included in the daemon, so findpass is not needed anymore. It is there just for reference.
- All those commands you are trying assume you are root. Is this the case?
Since the questions you ask prove that you are less than proficient on networking topics why do you insist on setting up a gateway using ampr-ripd (or rip44d in fact, which is more than obsolete at this point)?
Let me reiterate a mail from some weeks ago...
Since everyone seems to like to use the most unusual script with "original" settings without trying ever to understand what's happening, I would remind you that there is a more or less "plug-and-play" solution called amprd...
Let's assume a system with:
- 44net assignment: 44.128.1.0/24
- WAN on eth0 (let's assume 1.2.3.4)
- LAN on eth0 (192.168.1.1/24)
- AMPR on eth2 (44.128.1.0/24)
- We choose our GW IP to be 44.128.1.1
and that the internet access from the system is already set up, with NAT and default gateway via WAN.
Now:
1. compile (make) and install (make install) amprd
2. create the following /etc/amprd.cfg:
-----------------------------------------------------------------
[ampr0]
prefix = 44.128.1.1
rip_receive = yes
rip_save = yes
-----------------------------------------------------------------
3. Set address 44.128.1.1/24 to your eth2 interface
4. Start amprd. And basically that's it: a fully functional mesh gateway.
If you want access from the internet to your subnet, too, instead of just starting amprd, create the following ampr startup script:
-----------------------------------------------------------------
amprd
ip route add default via 169.228.34.84 dev ampr0 onlink table default
ip rule add from 44.128.1.1 table default
ip rule add from 44.128.1.1 to 44.128.1.0/24 table main
-----------------------------------------------------------------
This should do the trick.
Marius, YO2LOJ
To make it even easier on amprd:
1. Make a folder to your liking, e.g. 'test': md test 2. Change to it: cd test 3. Get amprd: wget http://yo2loj.ro/hamprojects/amprd-2.1.tgz 4. Unpack it: tar -xf amprd-2.1.tgz 5. Change to the created folder: cd amprd-2.1 6. Make the software: make 7. If there was no error, install it: make install 8. Create your config file: nano /etc/amprd.conf 9. Write the following (write your 44 gateway ip instead of 44.128.1.1): [ampr0] prefix = 44.128.1.1 rip_receive = yes rip_save = yes 10. Exit the editor pressing CTRL-X 11. Confirm saving with Y 12. Confirm file overwrite with ENTER 13. Become root: sudo -s 14. Start amprd: amprd
Check by issuing 'ifconfig'. There should be an interface called ampr0 with the IP set to your 44 gateway IP. That's it...
15. Now set your amprd to autostart, by placing it into rc.local: nano /etc/rc.local
Add a line /usr/sbin/amprd somewhere before the 'exit 0' line. Save the file...
16. Reboot...
You should have full mesh access.