packet:ip
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
packet:ip [2024/09/17 20:21] – m0lte | packet:ip [2024/09/27 18:21] (current) – [Linux kernel AX.25 support + kissattach] gm5aug | ||
---|---|---|---|
Line 54: | Line 54: | ||
Specify a unique IP in the same subnet at each end, e.g. 10.0.0.1 and 10.0.0.2. You can use private (RFC1918) addresses, or any others you have allocated, eg from 44net. | Specify a unique IP in the same subnet at each end, e.g. 10.0.0.1 and 10.0.0.2. You can use private (RFC1918) addresses, or any others you have allocated, eg from 44net. | ||
+ | |||
+ | Note that if you already have a 44net IP address on an interface (for example a Wireguard tunnel), you will need to follow a slightly different method to configure the IP and subnet on ax0 (swapping the IP and subnet for your own): | ||
+ | |||
+ | < | ||
+ | sudo kissattach / | ||
+ | sudo ip addr add 44.10.0.1/ | ||
+ | </ | ||
+ | |||
''/ | ''/ | ||
Line 229: | Line 237: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | |||
+ | ====== Linux IP routing/ | ||
+ | |||
+ | Building on the above, it is also possible to route Internet traffic between two Linux packet nodes. The UK licence allows this because information sent across the packet network is deemed to originate with the licence holder, not with the original author/ | ||
+ | |||
+ | ===== On the Remote Server ===== | ||
+ | |||
+ | This how-to presupposes you are able to SSH into the remote node. This node will serve as the gateway for routing Internet traffic over packet. | ||
+ | |||
+ | While there may well be other ways, this is the script that Michael GM5AUG uses to switch the MB7NKL packet node between regular packet work, and start the server up for IP traffic (with thanks to Martin M0NXP for his assistance in getting this running): | ||
+ | You will need to modify the parts shown in *asterisks* | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | sudo python3 / | ||
+ | sudo systemctl stop linbpq #stops LinBPQ BBS software, freeing up the TNC | ||
+ | sudo kissattach */ | ||
+ | sudo ip addr add *44.131.7.2/ | ||
+ | sudo sysctl -w net.ipv4.ip_forward=1 #allows kernel IP forwarding | ||
+ | sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE #modifies ax0 traffic to assign it the eth0 IP address | ||
+ | sudo ufw default allow routed #allows packet forwarding in the firewall - this how-to presupposes the use of ufw, although I understand it works with iptables as well | ||
+ | sudo service ufw restart #restarts the firewall | ||
+ | ip a #shows network config - failsafe check | ||
+ | </ | ||
+ | |||
+ | ===== On the Local Client ===== | ||
+ | |||
+ | Having configured the remote server, we now move to the local client, which in this case is running the GB7AUG packet node. Michael has a Wireguard tunnel in use which he has to turn off to make this work, but for simplicity this command is not included below. Again you will need to modify this to suit your own needs, changing the parts enclosed in *asterisks*. | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | sudo python3 / | ||
+ | sudo systemctl stop linbpq # stops LinBPQ BBS software, freeing up the TNC | ||
+ | sudo kissattach */ | ||
+ | sudo ip addr add *44.131.7.1/ | ||
+ | sudo ip route del 0.0.0.0/0 via 192.168.1.254 #deletes the route for traffic over the LAN | ||
+ | sudo ip route add 0.0.0.0/0 via *44.131.7.2* src *44.131.7.1* metric 50 #adds the route for traffic over packet. Change the first IP address to the IP of your remote server, and the second IP address to the one you have configured for the local client. | ||
+ | sudo resolvconf -d NetworkManager #removes default LAN DNS nameserver. May or may not be needed. | ||
+ | sudo resolvconf -a ax0 < ./ | ||
+ | ip a #shows network config - failsafe check | ||
+ | </ | ||
+ | |||
+ | The .nameserver file mentioned above contains the following: | ||
+ | < | ||
+ | search home | ||
+ | nameserver 8.8.8.8 | ||
+ | </ | ||
+ | Feeding this in to resolvconf will set 8.8.8.8 as your DNS server, allowing you to resolve IP addresses. | ||
+ | |||
+ | Following these steps **should** get you to a position where you can not only PING the two devices (as above) but also navigate (slowly!) to other websites, or ping other servers across the WWW. Again please be sure to abide by your licence when doing this. | ||
+ | |||
+ | Happy experimenting! |
packet/ip.1726604479.txt.gz · Last modified: 2024/09/17 20:21 by m0lte