[nos-bbs] JNOS axudp to BPQ on the same host?

M Langelaar maiko at pcsinternet.ca
Mon Sep 7 08:20:36 EDT 2020


You should probably have :

     route addprivate default tun0

added to your autoexec.nos, or just type it in after JNOS comes up.

I don't know much about BPQ configuration, but how do you tell which

host ip address it needs to bound to when it starts ? Or does it bound

to both the the linux tun0 and wlan0 interfaces ?

Maiko, VE4KLM

On 07/09/2020 12:57 a.m., Darin Franklin wrote:
> I am running JNOS 2.0m.4 on a Raspberry Pi (Buster), and I want to connect with axudp to a local instance of BPQ (LinBPQ 6.0.20.1), running on the same host.  Ultimately, I want to connect to a remote BPQ host over the Internet, but I am doing this first for troubleshooting.  I think that my problems are related to the routing for tun0.
>
> When I use 192.168.2.1 (the tun0 address) for the "bpq" interface, then I am able to connect from JNOS to BPQ.
> attach axudp bpq 256 192.168.2.1 KE0NUC-3 10092 10092
> jnos> c bpq KE0NUC-3
> Trying KE0NUC-3 on port bpq...
> AX25 session 1 connected to KE0NUC-3
> ::: KE0NUC-3 BPQ Node
>
>
> If I use 192.168.1.102 (the RPi host address), then I cannot connect to BPQ.
> attach axudp bpq 256 192.168.1.102 KE0NUC-3 10092 10092
> jnos> c bpq KE0NUC-3
> Trying KE0NUC-3 on port bpq...
> (wait forever...)
>
> How do I get this second case to work?
>
> Here is my network configuration inside JNOS.
>
> jnos> route
> Destination      Len Interface Gateway          Metric PD Timer  Use
> default          0   tun0                       1         man    0
>
> jnos> ifconfig
> bpq      IP addr 192.168.2.2 MTU 256 Link encap AX25
>           Link addr KE0NUC-3   BBS KE0NUC-9   Paclen 256   Irtt 5000
>           AXIP dest 192.168.1.102
>           flags 0xcb0 trace 0x0 netmask 0x00000000 broadcast 0.0.0.0
>           sent: ip 0 tot 0 idle 0:00:00:21
>           recv: ip 0 tot 0 idle 0:00:00:21
> tun0     IP addr 192.168.2.2 MTU 1500 Link encap TUN
>           flags 0x0 trace 0x0 netmask 0x00000255 broadcast 0.0.0.0
>           sent: ip 0 tot 0 idle 0:00:00:21
>           recv: ip 3 tot 3 idle 0:00:00:09
> loopback IP addr 127.0.0.1 MTU 65535 Link encap None
>           flags 0x0 trace 0x0 netmask 0xffffffff broadcast 255.255.255.255
>           sent: ip 0 tot 0 idle 0:00:00:21
>           recv: ip 0 tot 0 idle 0:00:00:21
> encap    IP addr 0.0.0.0 MTU 65535 Link encap None
>           flags 0x0 trace 0x0 netmask 0xffffffff broadcast 255.255.255.255
>           sent: ip 0 tot 0 idle 0:00:00:21
>           recv: ip 0 tot 0 idle 0:00:00:21
>
>
> Here is my Linux host configuration.
>
> % route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 0.0.0.0         192.168.1.1     0.0.0.0         UG    303    0        0 wlan0
> 192.168.1.0     0.0.0.0         255.255.255.0   U     303    0        0 wlan0
> 192.168.2.2     0.0.0.0         255.255.255.255 UH    0      0        0 tun0
>
> % ifconfig
> enxb827eb3e3f22: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
>          ether b8:27:eb:3e:3f:22  txqueuelen 1000  (Ethernet)
>          RX packets 0  bytes 0 (0.0 B)
>          RX errors 0  dropped 0  overruns 0  frame 0
>          TX packets 0  bytes 0 (0.0 B)
>          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
>          inet 127.0.0.1  netmask 255.0.0.0
>          inet6 ::1  prefixlen 128  scopeid 0x10<host>
>          loop  txqueuelen 1000  (Local Loopback)
>          RX packets 18  bytes 1354 (1.3 KiB)
>          RX errors 0  dropped 0  overruns 0  frame 0
>          TX packets 18  bytes 1354 (1.3 KiB)
>          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
>          inet 192.168.2.1  netmask 255.255.255.255  destination 192.168.2.2
>          inet6 fe80::f4e4:f9ab:a069:295e  prefixlen 64  scopeid 0x20<link>
>          unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
>          RX packets 0  bytes 0 (0.0 B)
>          RX errors 0  dropped 0  overruns 0  frame 0
>          TX packets 5  bytes 240 (240.0 B)
>          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>          inet 192.168.1.102  netmask 255.255.255.0  broadcast 192.168.1.255
>          inet6 fe80::a907:7d27:45f8:3b7c  prefixlen 64  scopeid 0x20<link>
>          ether b8:27:eb:6b:6a:77  txqueuelen 1000  (Ethernet)
>          RX packets 4407  bytes 306384 (299.2 KiB)
>          RX errors 0  dropped 0  overruns 0  frame 0
>          TX packets 3698  bytes 1211310 (1.1 MiB)
>          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
>
>
> autoexec.nos:
> log on
> hostname KE0NUC
> ax25 mycall KE0NUC-1
> ax25 bbscall KE0NUC-9
> ip address 192.168.2.2
> attach tun tun0 1500 0
> shell ifconfig tun0 192.168.2.1 pointopoint 192.168.2.2 mtu 1500 up
> ifconfig tun0 ipaddress 192.168.2.2
> ifconfig tun0 netmask 255.255.255.0
> ifconfig tun0 mtu 1500
> attach axudp bpq 256 192.168.1.102 KE0NUC-3 10092 10092
> #attach axudp bpq 256 192.168.2.1 KE0NUC-3 10092 10092
> start ax25
> start telnet
>
>
> bpq32.cfg:
> SIMPLE
> NODECALL=KE0NUC-3
> LOCATOR EN13
> CTEXT:
> ::: KE0NUC-3 BPQ Node
> ***
> PORT
>   ID=axudp
>   DRIVER=BPQAXIP
>   MAXFRAME=1
>   CONFIG
>    UDP 10092
>    MAP KE0NUC 0.0.0.0 UDP 10092 B
> ENDPORT
>
>
> I do have ip_forward enabled.
> % cat /proc/sys/net/ipv4/ip_forward
> 1
>
> Here is what I see when I try to connect.
>
> % sudo tcpdump  -i tun0 -n -vvv -u port 10092
> tcpdump: listening on tun0, link-type RAW (Raw IP), capture size 262144 bytes
> 00:26:43.049772 IP (tos 0x0, ttl 254, id 49, offset 0, flags [none], proto UDP (17), length 45)
>      192.168.2.2.10092 > 192.168.1.102.10092: [udp sum ok] UDP, length 17
> 00:26:43.170969 IP (tos 0x0, ttl 64, id 33956, offset 0, flags [DF], proto UDP (17), length 45)
>      192.168.2.1.10092 > 192.168.2.2.10092: [udp sum ok] UDP, length 17
> 00:26:43.271933 IP (tos 0x0, ttl 64, id 33957, offset 0, flags [DF], proto UDP (17), length 69)
>      192.168.2.1.10092 > 192.168.2.2.10092: [udp sum ok] UDP, length 41
> 00:26:53.134874 IP (tos 0x0, ttl 254, id 50, offset 0, flags [none], proto UDP (17), length 45)
>      192.168.2.2.10092 > 192.168.1.102.10092: [udp sum ok] UDP, length 17
> 00:26:53.308508 IP (tos 0x0, ttl 64, id 34238, offset 0, flags [DF], proto UDP (17), length 45)
>      192.168.2.1.10092 > 192.168.2.2.10092: [udp sum ok] UDP, length 17
>
>
> _______________________________________________
> nos-bbs mailing list
> nos-bbs at lists.tapr.org
> http://lists.tapr.org/mailman/listinfo/nos-bbs_lists.tapr.org



More information about the nos-bbs mailing list