Hallo,
Ich habe ein Problem mit AX.25 und Soundmodem. Wenn ich das Soundmodem starte fängt es an unerwünsche Broadcast-Pakete zu senden.
Zur Erklärung: AX.25 ist ein Protokoll, das zur Datenübertragung im Amateurfunk verwendet wird. Das Soundmodem ermöglich den AX.25 Betrieb über die Soundkarte ohne teure Hardware (TNCs, etc.).
Meine Konfiguration des Netztwerkinterface sm0 für AX.25 sind folgendermaßen aus:
/etc/ax25/soundmodem.conf
<?xml version="1.0"?> <modem> <configuration name="soundmodem"> <channel name="Channel 0"> <mod mode="afsk" bps="1200" f0="1200" f1="2200" diffenc="1"/> <demod mode="afsk" bps="1200" f0="1200" f1="2200" diffdec="1"/> <pkt mode="MKISS" ifname="sm0" hwaddr="DO1JRB" ip="10.0.0.1" netmask="255.255.255.0" broadcast="10.0.0.255" file="/dev/soundmodem0" unlink="1"/> </channel> <chaccess txdelay="250" slottime="100" ppersist="40" fulldup="0" txtail="10"/> <audio type="soundcard" device="/dev/dsp" halfdup="0"/> <ptt file="/dev/ttyS0"/> </configuration> </modem>
/etc/ax25/axports
# /etc/ax25/axports # # The format of this file is: # # name callsign speed paclen window description # sm0 DO1JRB 1200 255 2 Soundmodem 1k2
/etc/ax25/ax25d.conf
# /etc/ax25/ax25d.conf # # ax25d Configuration File. # # AX.25 Ports begin with a '['. # [DO1JRB via sm0] NOCALL * * * * * * L default 2 10 3 300 10 5 - root /usr/sbin/node node sm0 %s
Wenn ich nun das Soundmodem starte werden folgende Broadcasts gesendet:
jan@napoleon:~$ sudo soundmodem Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....,.............................napoleon []._workstation._tcp.local......napoleon.*.....1.0.0.10.in-addr.arpa......5.......x.......D.......x...5.5. .....x...I686.LINUX...!.....x.........5 Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....k.............q...............napoleon []._workstation._tcp.local................('org.freedesktop.Avahi.cookie=2818228838 Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....,.............................napoleon []._workstation._tcp.local......napoleon.*.....1.0.0.10.in-addr.arpa......5.......x.......D.......x...5.5. .....x...I686.LINUX...!.....x.........5 Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....k.............q...............napoleon []._workstation._tcp.local................('org.freedesktop.Avahi.cookie=2818228838 Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....,.............................napoleon []._workstation._tcp.local......napoleon.*.....1.0.0.10.in-addr.arpa......5.......x.......D.......x...5.5. .....x...I686.LINUX...!.....x.........5 Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....k.............q...............napoleon []._workstation._tcp.local................('org.freedesktop.Avahi.cookie=2818228838 Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....................j.............napoleon []._workstation._tcp.local..........('org.freedesktop.Avahi.cookie=2818228838.napoleon.*.......x.......1.0.0.10.in-addr.arpa........x...c.c. .....x...I686.LINUX...!.....x.........c Tx: fm DO1JRB-0 to QST-0 UI pid=CC E..~..@....r.............j[.............._services._dns-sd._udp.local............_workstation._tcp.#.4...........napoleon [].4 Tx: fm DO1JRB-0 to QST-0 UI pid=CC F..(..@................."............... Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....................j.............napoleon []._workstation._tcp.local..........('org.freedesktop.Avahi.cookie=2818228838.napoleon.*.......x.......1.0.0.10.in-addr.arpa........x...c.c. .....x...I686.LINUX...!.....x.........c Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@...................q.............._services._dns-sd._udp.local............_workstation._tcp.#.4...........napoleon [].4.T.........('org.freedesktop.Avahi.cookie=2818228838.T.!.....x.........napoleon.#.........x...... Tx: fm DO1JRB-0 to QST-0 UI pid=CC E.....@....................j.............napoleon []._workstation._tcp.local..........('org.freedesktop.Avahi.cookie=2818228838.napoleon.*.......x.......1.0.0.10.in-addr.arpa........x...c.c. .....x...I686.LINUX...!.....x.........c
Normalerweise dürfte keine Aussendung stattfinden. Ich habe in mehreren Quellen den Hinweis gefunden, dass es sich um Samba-Broadcasts handelt. Daraufhin habe ich versucht den Samba-Server auf die Netzwerkinterfaces eth0 und eth1 zu beschränken:
/etc/samba/smb.conf
#### Networking #### # The specific set of interfaces / networks to bind to # This can be either the interface name or an IP address/netmask; # interface names are normally preferred interfaces = eth0, eth1 # Only bind to the named interfaces and/or networks; you must use the # 'interfaces' option above to use this. # It is recommended that you enable this feature if your Samba machine is # not protected by a firewall or is a firewall itself. However, this # option cannot handle dynamic or non-broadcast interfaces correctly. bind interfaces only = true
Das bringt nichts. Selbst wenn ich den Samba-Deamon stoppe besteht das Problem weiterhin.
Ich weiß, dass es ein recht spezifisches Problem ist, aber ich konnte bis jetzt keine Lösung finden. Vielleicht braucht ihr auch keine Ahnung von AX.25, Amateurfunk oder Soundmodem zu haben, wenn das Problem ganz wo anders liegt.
Ich bin auf eure Anregungen gespannt.
Beste Grüße,
/.