Using ax25ipd
I've done the soundcard driver. I've done the BPQ driver. I've done NET/ROM. I've done a basic node. And now I've done gotten myself stuck! :-)
I want to use ax25ipd to establish an AXUDP tunnel over the Internet.
Unfortunately, all of the documentation I've been able to find so far is either obviously outdated (e.g. from 2000, uses old-style BSD pseudo-TTYs), or otherwise doesn't work (e.g. expects ax25ipd to immediately write data to stdout after launch, as in
http://mailman.f6fbb.org/pipermail/xfbb/2012-March/004316.html)
Add to that the fact that I'm really green on pseudo-TTYs, kissattach, etc.
Here's what I have in axports:
sm0 AD7UF 1200 255 2 SignaLink USB
bpq0 AD7UF-9 1000000000 255 5 BPQ node for eth1
axudp AD7UF-12 115200 255 5 AX25 over UDP (ax25ipd)
and here's what's in ax25ipd.conf:
socket udp 10093
mode tnc
mycall ad7uf-12
device /dev/ptmx
speed 115200
loglevel 4
broadcast QST-0 NODES-0 ANYONE-0
route ke7awr ke7awr.no-ip.org udp 10093
After launching ax25ipd, I see this logged:
14:47:48 ax25ipd: #012Current configuration: 14:47:48 ax25ipd: socket udp on port 10093 14:47:48 ax25ipd: mode tnc 14:47:48 ax25ipd: device /dev/ptmx 14:47:48 ax25ipd: speed 115200 14:47:48 ax25ipd: loglevel 1 14:47:48 ax25ipd: #0121 active routes. 14:47:48 ax25ipd: KE7AWR#01124.21.99.210#011udp#01110093#0110 14:47:48 ax25ipd: #0120 parameters
What now? Do I need to use kissattach to attach to the other end of the pseudo-TTY? Which one?
Of course, without the missing piece, I get this:
axcall axudp ke7awr
axconfig: port axudp not active
axcall: invalid port setting
Any help would be greatly appreciated!
PS: I'm running Ubuntu 11.04.
I'm using socat to create a pty pair.
On one end I set up kissattach to get the ax25 interface, on the other comes ax25ipd:
/usr/bin/socat pty,link=/var/ax25/axip,raw,echo=0 pty,link=/var/ax25/kip,raw,echo=0 & /usr/sbin/kissattach /var/ax25/kip axip 44.xxx.xxx.xxx
Of course, this port called axip has to appear in the axports file
axip YO2LOJ-8 38400 255 7 AXIP encapsulation port
Now you coud set up ax25ipd. In the config file you need to set the device to /var/ax25/axip (the pty delivered by socat) so that it will talk to kissattach.
Other parameters:
socket ip or udp - depends on what you need, ip means proto 93, udp means... udp
Your routes. e.g.:
route yo2tst 44.xxx.xxx.xxx bd (in case of proto 93)
route yo2tst 44.xxx.xxx.xxx bd udp 93 (udp on port 93)
Note that protocol is either ax25 encap or udp. If you need both, you need 2 pty pairs, 2 interfaces and 2 instances of ax25ipd with different config files.
Now start ax25ipd:/usr/sbin/ax25ipd -c <path to your config file>
in my case:/usr/sbin/ax25ipd -c /etc/ax25/ax25ipd_ip.conf/usr/sbin/ax25ipd -c /etc/ax25/ax25ipd_udp.conf
Have fun,
Marius, YO2LOJ
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Charles Boling (AD7UF)
Sent: Friday, May 25, 2012 01:45
To: [email protected]
Subject: Using ax25ipd
...
What now? Do I need to use kissattach to attach to the other end of the pseudo-TTY? Which one?
...
Quoted 1 line
I'm using socat to create a pty pair.
Neato! I've used other tools in the netcat family, but had never explored the wide world of socat. Quite a utility.
Here are my notes I wrote down to get this working in a very manual fashion Should be too hard to automate this in a script (see the URL below)
--David
09/04/2011
http://wiki.complete.org/LinuxPacketRadio#ax25ipd-1
- requires changes to ax25-apps too --
1. Update /etc/ax25/axports and define the ipct port
2. /usr/sbin/kissnetd -p2 &
- Please record the FIRST port and SECOND port out of that list for follow-on commands
3. /usr/sbin/kissattach -l /dev/pts/7 ipct 44.4.10.40
- In this example, /dev/pts/7 camesfrom the output of the kissnetd command above. 44.4.10.40 is my AMPR IP address
4. From the output of command in step 2, take the SECOND port given (not the first port) and put that into /etc/ax25/ax25ipd.conf for the
"device" line
5. run /usr/sbin/ax25ipd
6. Per db0fhn security, you MUST log into Echolink via the same egress IP address (easily done via NAT) as this AXUDP connection.
7. Connect to the remote station:
call ipct db0fhn
Hi David,
This is exactly what socat will do in this case.
It automates that dynamic /dev/pts/# alloocation by providing symbolic links with the names that you choose.
So it becomes scriptable.
Marius
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of David Ranch
Sent: Friday, May 25, 2012 03:00
To: [email protected]
Subject: Re: Using ax25ipd
Here are my notes I wrote down to get this working in a very manual
fashion Should be too hard to automate this in a script (see the URL
below)
--David
09/04/2011
http://wiki.complete.org/LinuxPacketRadio#ax25ipd-1
- requires changes to ax25-apps too --
1. Update /etc/ax25/axports and define the ipct port
2. /usr/sbin/kissnetd -p2 &
- Please record the FIRST port and SECOND port out of that list for follow-on commands
3. /usr/sbin/kissattach -l /dev/pts/7 ipct 44.4.10.40
- In this example, /dev/pts/7 camesfrom the output of the kissnetd command above. 44.4.10.40 is my AMPR IP address
4. From the output of command in step 2, take the SECOND port given (not the first port) and put that into /etc/ax25/ax25ipd.conf for the "device"
line
5. run /usr/sbin/ax25ipd
6. Per db0fhn security, you MUST log into Echolink via the same egress IP address (easily done via NAT) as this AXUDP connection.
7. Connect to the remote station:
call ipct db0fhn
--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Hello,
well I'm using the ax25ipd-software from <http://www.linux-ax25.org/wiki/CVS>.
You can create a connection between kernel and ax25ipd by bpq-pipe:
change device-line in /etc/ax25/ax25ipd.conf:
device axipd
no changes in /etc/ax25/axports.
create startscript /etc/init.d/ax25:
#!/bin/sh
AXPORT=axudp
BPQPIPE=axipd
ARP_CALL=AD7UF-12
IP_ADRESS=192.168.2.220/24 # you can also use an official 44er ip-address
case "$1" in
start)
# loading kernel drivers
modprobe ax25
modprobe bpqether
# create bpq-pipe and axudp-device /usr/sbin/ax25ipd -c /etc/ax25/ax25ipd.conf
sleep 3
if [ -f /proc/net/bpqether ]
then
PORT=$(cat /proc/net/bpqether | grep $BPQPIPE | head -c4)
else
echo "Cannot create BPQ-Pipe, Abort!"
exit 1
fi
#configure BPQ-kernel-device
/sbin/ifconfig $PORT hw ax25 $ARP_CALL $IP_ADRESS mtu 1296 up
;;
stop)
killall ax25ipd
sleep 5
rmmod bpqether
;;
esac
exit 0
The kernel-device "axudp" was created. You can test the device by "call"-
program: call -s ad7uf axudp ke7awr
73 de Chris, dk2crn
Am Donnerstag, 24. Mai 2012, 15:45:01 schrieb Charles Boling:
Quoted 12 lines
I've done the soundcard driver. I've done the BPQ driver. I've done NET/ROM. I've done a basic node. And now I've done gotten myself stuck! :-)
I want to use ax25ipd to establish an AXUDP tunnel over the Internet.
Unfortunately, all of the documentation I've been able to find so far is either obviously outdated (e.g. from 2000, uses old-style BSD pseudo-TTYs), or otherwise doesn't work (e.g. expects ax25ipd to immediately write data to stdout after launch, as in
http://mailman.f6fbb.org/pipermail/xfbb/2012-March/004316.html)
Quoted 6 lines
Add to that the fact that I'm really green on pseudo-TTYs, kissattach, etc.
Here's what I have in axports:
sm0 AD7UF 1200 255 2 SignaLink USB
bpq0 AD7UF-9 1000000000 255 5 BPQ node for eth1
axudp AD7UF-12 115200 255 5 AX25 over UDP
(ax25ipd)
Quoted 37 lines
and here's what's in ax25ipd.conf:
socket udp 10093
mode tnc
mycall ad7uf-12
device/dev/ptmx
speed 115200
loglevel 4
broadcast QST-0 NODES-0 ANYONE-0
route ke7awr ke7awr.no-ip.org udp 10093After launching ax25ipd, I see this logged:
14:47:48 ax25ipd: #012Current configuration: 14:47:48 ax25ipd: socket udp on port 10093 14:47:48 ax25ipd: mode tnc 14:47:48 ax25ipd: device /dev/ptmx 14:47:48 ax25ipd: speed 115200 14:47:48 ax25ipd: loglevel 1 14:47:48 ax25ipd: #0121 active routes. 14:47:48 ax25ipd: KE7AWR#01124.21.99.210#011udp#01110093#0110 14:47:48 ax25ipd: #0120 parametersWhat now? Do I need to use kissattach to attach to the other end of the pseudo-TTY? Which one?
Of course, without the missing piece, I get this:
axcall axudp ke7awr
axconfig: port axudp not active
axcall: invalid port settingAny help would be greatly appreciated!
PS: I'm running Ubuntu 11.04.
--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html