* ax.25 localhost?
@ 2012-07-21 16:08 folkert
2012-07-21 16:46 ` Charles Boling (AD7UF)
0 siblings, 1 reply; 9+ messages in thread
From: folkert @ 2012-07-21 16:08 UTC (permalink / raw)
To: linux-hams
is it not possible to an 'axcall' to a call on the local system? i
checked with axlisten that some traffic is going on but it seems ax25d
ignores it - verified with strace that it gets no data via its sockets
axlisten tells me:
fm FH1GOU-1 to FH1GOU-1 ctl DISC+ 00:36:28
fm FH1GOU-1 to FH1GOU-1 ctl SABM+ 00:36:28
Folkert van Heusden
--
Multitail es una herramienta flexible que permite visualizar los "log
file" y seguir la ejecución de comandos. Permite filtrar, añadir
colores, combinar archivos, la visualización de diferencias (diff-
view), etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ax.25 localhost?
2012-07-21 16:08 ax.25 localhost? folkert
@ 2012-07-21 16:46 ` Charles Boling (AD7UF)
2012-07-21 21:12 ` Tomi Manninen
2012-07-21 22:10 ` folkert
0 siblings, 2 replies; 9+ messages in thread
From: Charles Boling (AD7UF) @ 2012-07-21 16:46 UTC (permalink / raw)
To: linux-hams
> is it not possible to an 'axcall' to a call on the local system?
What kind of AX.25 device are you having axcall use? My experience is
that BPQ Ethernet won't do anything unless it actually hits an Ethernet
device, so I usually use a virtual machine for testing that way. You
could probably set up an AXIP/AXUDP tunnel, but I've never tried it.
Hopefully someone else has better ideas than I do, because it *would* be
handy to have an easy way to connect on a virtual loopback device.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ax.25 localhost?
2012-07-21 16:46 ` Charles Boling (AD7UF)
@ 2012-07-21 21:12 ` Tomi Manninen
2012-07-21 22:17 ` folkert
2012-07-22 5:20 ` Charles Boling (AD7UF)
2012-07-21 22:10 ` folkert
1 sibling, 2 replies; 9+ messages in thread
From: Tomi Manninen @ 2012-07-21 21:12 UTC (permalink / raw)
Cc: linux-hams
Hi,
>> is it not possible to an 'axcall' to a call on the local system?
>
> What kind of AX.25 device are you having axcall use? My experience is
> that BPQ Ethernet won't do anything unless it actually hits an Ethernet
> device, so I usually use a virtual machine for testing that way. You
> could probably set up an AXIP/AXUDP tunnel, but I've never tried it.
>
> Hopefully someone else has better ideas than I do, because it *would* be
> handy to have an easy way to connect on a virtual loopback device.
I don't think kernel supports looping back on AX.25 level. You can do
something similar with pseudo tty's but it's not quite the same.
But I know that NET/ROM in Linux does support loopback. You can connect
to any NET/ROM service on your system from your system.
/Tomi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ax.25 localhost?
2012-07-21 16:46 ` Charles Boling (AD7UF)
2012-07-21 21:12 ` Tomi Manninen
@ 2012-07-21 22:10 ` folkert
1 sibling, 0 replies; 9+ messages in thread
From: folkert @ 2012-07-21 22:10 UTC (permalink / raw)
To: Charles Boling (AD7UF); +Cc: linux-hams
> > is it not possible to an 'axcall' to a call on the local system?
>
> What kind of AX.25 device are you having axcall use? My experience is
> that BPQ Ethernet won't do anything unless it actually hits an Ethernet
> device, so I usually use a virtual machine for testing that way. You
> could probably set up an AXIP/AXUDP tunnel, but I've never tried it.
What I did is:
- connect a real pr modem & cb
- disable the uart, setup the baycom kernel module, sethdlc trickery
- /sbin/ifconfig bcsf0 hw ax25 FH1GOU-1 up
- added this to /etc/ax25/ax25d.conf:
[FH1GOU-1 VIA 1]
NOCALL * * * * * * L
default * * * * * * - root /usr/sbin/node node
- added this to /etc/ax25/axports:
1 FH1GOU-1 1200 255 2 bla
- and then I run:
axcall 1 FH1GOU-1
> Hopefully someone else has better ideas than I do, because it *would* be
> handy to have an easy way to connect on a virtual loopback device.
definately!
Folkert van Heusden
--
www.vanheusden.com/multitail - multitail is tail on steroids. multiple
windows, filtering, coloring, anything you can think of
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ax.25 localhost?
2012-07-21 21:12 ` Tomi Manninen
@ 2012-07-21 22:17 ` folkert
2012-07-22 5:20 ` Charles Boling (AD7UF)
1 sibling, 0 replies; 9+ messages in thread
From: folkert @ 2012-07-21 22:17 UTC (permalink / raw)
To: Tomi Manninen; +Cc: linux-hams
> >>is it not possible to an 'axcall' to a call on the local system?
> >
> >What kind of AX.25 device are you having axcall use? My experience is
> >that BPQ Ethernet won't do anything unless it actually hits an Ethernet
> >device, so I usually use a virtual machine for testing that way. You
> >could probably set up an AXIP/AXUDP tunnel, but I've never tried it.
> >
> >Hopefully someone else has better ideas than I do, because it *would* be
> >handy to have an easy way to connect on a virtual loopback device.
>
> I don't think kernel supports looping back on AX.25 level. You can do
> something similar with pseudo tty's but it's not quite the same.
>
> But I know that NET/ROM in Linux does support loopback. You can connect
> to any NET/ROM service on your system from your system.
Do you know of any packet-radio-for-dummies documentation?
To be honest I'm very new to all of it.
Folkert van Heusden
--
MultiTail cok yonlu kullanimli bir program, loglari okumak, verilen
kommandolari yerine getirebilen. Filter, renk verme, merge, 'diff-
view', vs. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ax.25 localhost?
2012-07-21 21:12 ` Tomi Manninen
2012-07-21 22:17 ` folkert
@ 2012-07-22 5:20 ` Charles Boling (AD7UF)
2012-07-22 20:25 ` Tomi Manninen
1 sibling, 1 reply; 9+ messages in thread
From: Charles Boling (AD7UF) @ 2012-07-22 5:20 UTC (permalink / raw)
To: linux-hams
> But I know that NET/ROM in Linux does support loopback. You can connect
> to any NET/ROM service on your system from your system.
How does that work? If I try connecting to myself, I just get:
axcall: NET/ROM callsign or alias not found
I then tried adding myself into my own node list using nrparms, but
since it wants an AX.25 device, we're back to the same problem; it calls
out on that device and doesn't find itself.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ax.25 localhost?
2012-07-22 5:20 ` Charles Boling (AD7UF)
@ 2012-07-22 20:25 ` Tomi Manninen
0 siblings, 0 replies; 9+ messages in thread
From: Tomi Manninen @ 2012-07-22 20:25 UTC (permalink / raw)
To: Charles Boling (AD7UF); +Cc: linux-hams
On 07/22/2012 08:20 AM, Charles Boling (AD7UF) wrote:
>
>> But I know that NET/ROM in Linux does support loopback. You can connect
>> to any NET/ROM service on your system from your system.
>
> How does that work? If I try connecting to myself, I just get:
> axcall: NET/ROM callsign or alias not found
>
> I then tried adding myself into my own node list using nrparms, but
> since it wants an AX.25 device, we're back to the same problem; it calls
> out on that device and doesn't find itself.
Yeah, I noticed that it doesn't work with axcall (wow, it's been
a while since I last typed "modprobe netrom" ... :)
After taking a quick look, it seems that axcall has it's own
function for looking up the nodes, and it only looks at the
kernel netrom routing table (/proc/net/nr_nodes).
LinuxNode uses the libax25 find_node() function which also
includes any local running netrom interfaces to the list
of nodes. So right now I guess this netrom loopback thing
only works from within LinuxNode (netrom_call also seems
to work but it's bit of pain to use from command line
as it doesn't translate the EOLs...)
/Tomi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ax.25 localhost?
@ 2012-12-15 4:44 Matt VK2RQ
2012-12-15 9:26 ` Thomas Osterried
0 siblings, 1 reply; 9+ messages in thread
From: Matt VK2RQ @ 2012-12-15 4:44 UTC (permalink / raw)
To: linux-hams
> > is it not possible to an 'axcall' to a call on the local system?
>
>
> What kind of AX.25 device are you having axcall use? My experience is
> that BPQ Ethernet won't do anything unless it actually hits an Ethernet
> device, so I usually use a virtual machine for testing that way. You
> could probably set up an AXIP/AXUDP tunnel, but I've never tried it.
That is exactly what I have been doing. I have a main AX.25 AXUDP device
which I use to connect to other systems over the local LAN or internet.
I then created a second AX.25 AXUDP device on my local machine,
and set up the main AXUDP device to route UDP traffic to this second
AXUDP device for the callsigns of the BBS, node, etc. running on this
same machine. I then configured the BBS, ax25d, etc. to listen to the AX.25
device associated with this second AXUDP instance. When I want to
connect to the BBS, node, etc. on my own machine, I just call out on
the main AXUDP device, and the BBS/node/etc. receives the connection
via the AX.25 interface associated to the second AXUDP instance.
You can also this with back-to-back AX.25 devices connected via a
pseudo terminal pair, but I prefer to use AX25UDP so that
when I call out, I always use the same AXUDP device,
regardless of whether I am connecting to my own machine or
someone else's.
73, Matt VK2RQ.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: ax.25 localhost?
2012-12-15 4:44 Matt VK2RQ
@ 2012-12-15 9:26 ` Thomas Osterried
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Osterried @ 2012-12-15 9:26 UTC (permalink / raw)
To: Matt VK2RQ; +Cc: linux-hams
On 2012-12-15 15:44:58 +1100, Matt VK2RQ <matt.vk2rq@gmail.com>
wrote in <D0195002-701A-4075-88AE-112281619159@gmail.com>:
> > > is it not possible to an 'axcall' to a call on the local system?
> >
> >
> > What kind of AX.25 device are you having axcall use? My experience is
axcall uses libax25 as abstraction layer.
programs using libax25 use "interfaces" (this kind of thing you see with
ifconfig, ip, etc.). an interface is mostly known from ethernet - and
the configured callsign corresponds to a MAC address. in fact, it mostly
works like talking over ethernet (systemcalls like connect(), listen(),
bind() are the same, and only differs in the AF_TYPE); see socket(5).
There are several ways to get an AX.25 interface. You mentioned bpqether
(which works out of the box and is really cool). It's fast too, because
it runs _inside_ the kernel.
The most usual way is kissattach or spattach over a tty (to outside, i.E.
a TNC, RMNC, etc..). A more special way is to connect software that
speaks kiss to a pty-pair.
pty-operations are much slower than the bpqethernet.
Another approach you mentioned is axip/axudp with the userspace daemon
ax25ipd; ax25ipd can either use serial ports or bpqether interfaces.
Other drivers like soundmodem or special card drivers (which directly
talk to the outer world) create their interface directly.
Unfortunately, the kernel does not have a digipeating functionality inside.
-> These examples do not work:
,---- Program A likes to connect over ax0 to Program B
v
ax0 (spattach)
^
`---- Program B
..because Program B does not see that Program A likes to connect.
Personaly, I'd like to have a loopback interface (inside the kernel)
where each program could directly reach another program.
I've discussed this with Ralf dl5rb. But there were other things in
the kernel which have more priority..
This example does also not work:
,---- Program A likes to connect over ax0 to Program B
v
ax0 (spattach)
ax1 (another spattach)
^
`---- Program B
The interfaces are isolated. Kernel should do l2-digipeating, which is
not build in. There's userspace software like axdigi.
I had some systems where I used the program rxecho, which is kind of
a "bridge" (known from ethernet), but it comes with other problems.
Another approach for bringing these two interfaces together could be a
kernel enhancement for being able to add ax0 and ax1 to a bridge.
Best practise, imho opinion, for a complex mailbox system is currently this:
+------ Packet-Radio-Digipeater-World (i.E. with flexnet routing protocol)
|
|serial or axip/axudp
+-- xnet (running as userspace process in linux)
xnet binds to the linux kernel
- either over a pty-pair and spattach
- or using ax25ipd. This is more performant.
The communication is axudp and is configured asymmetricaly:
xnet autoexec.net:
attach ip0 axUDP 0 1 l9394 d94 127.0.0.1
ax25id:
socket udp 94
mode tnc
mycall db0aaa-10
device xnet-eth
route db0aaa localhost udp 9394
The most important line is "device <devicename>". If it does not
refer a path to a serial port, it assumes tun/tap mode and gets
from the kernel an ethernet device (which name is xnet-eth, in
our example).
To this device, the bpqether module automaticaly binds.
# cat /proc/net/bpqether
dev ether destination accept from
xnet xnet-eth ff:ff:ff:ff:ff:ff *
xnet is the name of the ax25-Interface.
Back to the initial question, if one userspace program could directly
connect to another.
Using the xnet case described above, "program A" could use xnet's
call as l2 digipeater and could connect "program B's SSID" "via xnet's call".
I use xnet, because it does speak natively the flexnet protocol.
I let it also make the connection to the IGATE project (connect ax25-isles over
the internet). Another important thing is, that we could easily connect
to other nodes over our HAMNET (44.x.x.x IP over high-speed wireless-lan links
on 2.3 and 5 Ghz).
The xnet approach has obsoleted my old setup with:
spattach ttyS0 to the rmnc
ax25ipd to the igate project
rxecho, which "bridged" igate/igateb to the rmnc, making it a "direct
visible neighbor").
the problem:
- if user comes via igate and connects to the rmnc, he could not
connect "backward" (same port on the rmnc) to the programs running
on the local linux.
- programs on linux (like the bbs) have to be configured using either
the path via the rmnc call (to the ax25 hf net) or via the axudp
linkpartner (igate, hamnet partner, etc).
If a link is broken, the software had to be reconfigured.
With the new approach, the software has one interface to outside.
The xnet node knows (due to flexnet protocol) if the better path is via
hamnet or via the rmnc (connected to the old-pr-network). And due to the
example for users connecting from outside, there's no "loop" anymore.
Instead of xnet, I'd also may have used software like ka9q net derivate
WAMPES.
There are some small reasons for me why I moved to xnet:
- WAMPES has a small problem with AX25 mode VC TCP van-jacobsen header
compression, where connections get stuck (waits a few seconds, until a
timeout occurs). I've never found the bug.
- xnet has a feature called "getip". An ax25 user could issue this
command, get's a free IP from a pool (like manual dhcp ;) and could
use this IP address for some time.
- xnet has a feature for having more than one path to a destination.
I.e. if you have a link via old-pr and via HAMNET to your linkpartner,
you configure two ports to this direct linkpartner and flexnet
uses the faster link. If the faster link goes down, flexnet uses the
slower one. You do not have to configure another SSID for the link
partner's second interface.
Sorry for being a bit off-topic. But I've found it useful to describe
approaches and working setups here, also for documenting what's missing
inside the linux kernel.
vy 73,
- Thomas dl9sau
> > that BPQ Ethernet won't do anything unless it actually hits an Ethernet
> > device, so I usually use a virtual machine for testing that way. You
> > could probably set up an AXIP/AXUDP tunnel, but I've never tried it.
>
> That is exactly what I have been doing. I have a main AX.25 AXUDP device
> which I use to connect to other systems over the local LAN or internet.
> I then created a second AX.25 AXUDP device on my local machine,
> and set up the main AXUDP device to route UDP traffic to this second
> AXUDP device for the callsigns of the BBS, node, etc. running on this
> same machine. I then configured the BBS, ax25d, etc. to listen to the AX.25
> device associated with this second AXUDP instance. When I want to
> connect to the BBS, node, etc. on my own machine, I just call out on
> the main AXUDP device, and the BBS/node/etc. receives the connection
> via the AX.25 interface associated to the second AXUDP instance.
>
> You can also this with back-to-back AX.25 devices connected via a
> pseudo terminal pair, but I prefer to use AX25UDP so that
> when I call out, I always use the same AXUDP device,
> regardless of whether I am connecting to my own machine or
> someone else's.
>
> 73, Matt VK2RQ.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hams" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-12-15 9:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-21 16:08 ax.25 localhost? folkert
2012-07-21 16:46 ` Charles Boling (AD7UF)
2012-07-21 21:12 ` Tomi Manninen
2012-07-21 22:17 ` folkert
2012-07-22 5:20 ` Charles Boling (AD7UF)
2012-07-22 20:25 ` Tomi Manninen
2012-07-21 22:10 ` folkert
-- strict thread matches above, loose matches on Subject: below --
2012-12-15 4:44 Matt VK2RQ
2012-12-15 9:26 ` Thomas Osterried
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.