| 1 |
|
| 2 |
** |
| 3 |
** This file is a cobbling together of the various notes on ax25ipd. |
| 4 |
** |
| 5 |
|
| 6 |
ax25ipd |
| 7 |
======= |
| 8 |
|
| 9 |
This README files pertains to version 1.0.2 of ax25ipd. |
| 10 |
(this document is still incomplete -- the UDP features lack examples) |
| 11 |
|
| 12 |
Overview |
| 13 |
-------- |
| 14 |
|
| 15 |
RFC1226 describes a method of using TCP/IP based networks to transport |
| 16 |
AX.25 frames. The ax25ipd utility uses this technique to transfer AX.25 |
| 17 |
frames in and out of TCP/IP environments. |
| 18 |
|
| 19 |
The interface to the AX.25 world is via KISS, with ax25ipd emulating |
| 20 |
either a standard KISS TNC or operating as a digipeater. AX.25 frames |
| 21 |
arriving on the KISS interface are routed to the IP interface and sent |
| 22 |
to the appropriate IP host system. Incoming frames from the IP interface |
| 23 |
are filtered and sent out the KISS interface. The operator controls the |
| 24 |
mode (tnc or digipeater), the routing (callsign to ip host mapping), and |
| 25 |
a few sundry controls via a configuration file, read at startup. |
| 26 |
|
| 27 |
ax25ipd is the Linux incarnation of ax25ip by Mike Westerhof, and is |
| 28 |
not intended to support any OS other than Linux. Although getting it to |
| 29 |
run on BSD should not present too many issues, there has been no attempt |
| 30 |
to retain BSD(Sun) operability since it was updated in an environment |
| 31 |
where there was no access to BSD. |
| 32 |
|
| 33 |
ax25ipd requires a serial port, and uses a raw socket to gain access |
| 34 |
to the IP layer of the host's TCP/IP implementation (this requires that |
| 35 |
ax25ipd be started by root). ax25ipd also supports using a standard UDP |
| 36 |
socket in place of the raw socket, although this does not adhere to |
| 37 |
RFC1226. |
| 38 |
|
| 39 |
|
| 40 |
Modes and Routing |
| 41 |
----------------- |
| 42 |
|
| 43 |
There are two interfaces into and out of ax25ipd. The KISS interface |
| 44 |
is a standard serial port, running speeds up to 38400 baud. The IP |
| 45 |
interface reads and writes packets to an IP network in accordance with |
| 46 |
the specifications in RFC1226. Several factors determine how AX.25 |
| 47 |
frames route within ax25ipd and through the IP network, although some |
| 48 |
basic rules always apply: |
| 49 |
|
| 50 |
A frame will never leave ax25ipd on the same interface it came in on. |
| 51 |
This fundamental rule eliminates much complexity and much confusion on |
| 52 |
how to set up ax25ipd. |
| 53 |
|
| 54 |
A frame will never be sent to more than one IP host. Using an IP |
| 55 |
network as a broadcast media is probably not a good idea, especially |
| 56 |
across the Internet! |
| 57 |
|
| 58 |
Most other routing factors involve user configuration, and depend |
| 59 |
heavily on the mode of operation. |
| 60 |
|
| 61 |
In tnc mode, ax25ipd emulates a KISS tnc, and behaves as one would |
| 62 |
expect. The next destination callsign (either the destination or the |
| 63 |
next digipeater in line) is extracted from frames arriving on the KISS |
| 64 |
interface, and looked up in a routing table (built by the operator in the |
| 65 |
configuration file). The routing table provides the IP address to which |
| 66 |
this frame should be sent. The standard CRC is computed, tacked onto the |
| 67 |
frame, and the result is sent off to the target system. Frames arriving |
| 68 |
from the IP interface have the CRC checked and removed, and are forwarded |
| 69 |
to the KISS interface. |
| 70 |
|
| 71 |
Digi mode is a little more complicated. In this mode, ax25ipd is |
| 72 |
assigned a callsign, and acts as a digipeater. If a frame arriving on |
| 73 |
the KISS interface has ax25ipd's callsign specified as the next digipeater, |
| 74 |
ax25ipd will mark the frame as digipeated by it, look up the next callsign |
| 75 |
in the routing table, compute and append the CRC, and send the frame to |
| 76 |
the specified IP host. Frames arriving on the IP interface will be |
| 77 |
handled in a similar fashion, but note that in no cases will the frame be |
| 78 |
sent out the same port it arrived in on. |
| 79 |
|
| 80 |
|
| 81 |
Configuration |
| 82 |
------------- |
| 83 |
|
| 84 |
A single configuration file is used to tailor ax25ipd. The file is |
| 85 |
usually named "ax25ipd.cfg" and should be located in the same directory |
| 86 |
ax25ipd is executed from. An example is probably the best way to become |
| 87 |
familiar with configuring ax25ipd. |
| 88 |
|
| 89 |
# Sample Configuration file for ax25ipd |
| 90 |
mode digi |
| 91 |
socket ip |
| 92 |
device /dev/ttya |
| 93 |
speed 9600 |
| 94 |
mycall KA9WSB-7 |
| 95 |
myalias ILSUN |
| 96 |
beacon every 540 |
| 97 |
btext ax25ipd -- digi ka9wsb-7 -- Experimental IP encapsulator |
| 98 |
loglevel 2 |
| 99 |
route W1AW-13 handbook.arrl.com |
| 100 |
route WZ9ZZZ last.one.edu |
| 101 |
param 1 20 |
| 102 |
|
| 103 |
The mode command selects the behavior of ax25ipd. The device line specifies |
| 104 |
the tty device to use, and the speed line selects the baud rate. Baud |
| 105 |
rates up to 34800 can be used, but 9600 is probably the fastest safe |
| 106 |
speed for serial cables of any distance (remember, KISS has no error |
| 107 |
detection). The mycall command is required only if you are in digi mode. |
| 108 |
The loglevel command selects the amount of verbosity you want, ranging from |
| 109 |
0 (no output) to 4 (streams of data). The route command adds entries to |
| 110 |
a static routing table, currently 128 entries deep. In the example, AX.25 |
| 111 |
frames destined for W1AW-13 are forwarded to handbook.arrl.com, frames for |
| 112 |
WZ9ZZZ are sent to last.one.edu, and all others go nowhere. Specifying the |
| 113 |
word "default" in place of a callsign sets up a default route, used when |
| 114 |
the destination callsign cannot be found in the routing table. Finally, |
| 115 |
in digi mode, the device on the other end of the KISS interface is probably |
| 116 |
a TNC. The param command allows you to set the KISS parameters (txdelay, |
| 117 |
slottime, etc). As many param commands as required can be specified. |
| 118 |
|
| 119 |
The myalias command allows you to specify an alias for this digipeater. |
| 120 |
If you do this, you should probably use the beacon command to ensure |
| 121 |
that you ID regularly. The beacon every 540 command forces an ID message |
| 122 |
to be sent out the KISS interface every 9 minutes. Specifying beacon |
| 123 |
after 540 will send the ID packet only if the channel has been idle for |
| 124 |
9 minutes. |
| 125 |
|
| 126 |
Sending a hang-up signal to the ax25ipd process will cause it to reread |
| 127 |
the configuration file and re-initialize itself (kill -HUP <ax25ipd-pid>). |
| 128 |
|
| 129 |
|
| 130 |
Sample Configuration - NOS-to-NOS |
| 131 |
--------------------------------- |
| 132 |
|
| 133 |
This example shows how to connect a pair of NOS-based PCs together |
| 134 |
using ax25ipd to carry AX.25 traffic. |
| 135 |
|
| 136 |
|
| 137 |
KA9WSB-3 one.two.com |
| 138 |
.----------. .----------. |
| 139 |
| | | | |
| 140 |
| | KISS | UNIX | | |
| 141 |
| NOS |------| host |---| |
| 142 |
| on | | | | TCP/IP network |
| 143 |
| PC | | | | |
| 144 |
`----------' `----------' | |
| 145 |
| |
| 146 |
(vast distance) |
| 147 |
| |
| 148 |
| fish.sea.com W1AW-5 |
| 149 |
| .----------. .----------. |
| 150 |
| | | | | |
| 151 |
| | UNIX | KISS | | |
| 152 |
|---| host |------| NOS | |
| 153 |
| | | 1200 | on | |
| 154 |
| | baud | PC | |
| 155 |
`----------' `----------' |
| 156 |
|
| 157 |
|
| 158 |
Config file: Config file: |
| 159 |
mode tnc mode tnc |
| 160 |
device /dev/ttya device /dev/ttya |
| 161 |
speed 9600 speed 1200 |
| 162 |
route W1AW-5 fish.sea.com route KA9WSB-3 one.two.com |
| 163 |
|
| 164 |
Using this setup, a user could run AX.25 connections between the two PCs. |
| 165 |
Note that while NOS can digipeat, NOS will not automatically allow users |
| 166 |
near W1AW-5 to digipeat through it to reach KA9WSB-3 (i.e. the command |
| 167 |
"C KA9WSB-3 V W1AW-5" will not have the desired result). This may or may |
| 168 |
not be a problem. |
| 169 |
|
| 170 |
|
| 171 |
Sample Configuration - digi-to-digi |
| 172 |
----------------------------------- |
| 173 |
|
| 174 |
This example shows how to configure ax25ipd as a pair of digipeaters. |
| 175 |
|
| 176 |
|
| 177 |
(KA9WSB-3) |
| 178 |
one.two.com |
| 179 |
.----------. .----------. |
| 180 |
| | | | |
| 181 |
| Standard | KISS | UNIX | | |
| 182 |
| KISS |------| host |---| |
| 183 |
| TNC | | | | TCP/IP network |
| 184 |
| & radio | | | | |
| 185 |
`----------' `----------' | |
| 186 |
| |
| 187 |
(vast distance) |
| 188 |
| |
| 189 |
| (W1AW-5) |
| 190 |
| fish.sea.com W1AW-5 |
| 191 |
| .----------. .----------. |
| 192 |
| | | | | |
| 193 |
| | UNIX | KISS | Standard | |
| 194 |
|---| host |------| KISS | |
| 195 |
| | | 9600 | TNC | |
| 196 |
| | baud | & radio | |
| 197 |
`----------' `----------' |
| 198 |
|
| 199 |
|
| 200 |
Config file: Config file: |
| 201 |
mode digi mode digi |
| 202 |
mycall KA9WSB-3 mycall W1AW-5 |
| 203 |
device /dev/ttya device /dev/ttya |
| 204 |
speed 9600 speed 9600 |
| 205 |
route W1AW-5 fish.sea.com route KA9WSB-3 one.two.com |
| 206 |
param 1 20 param 1 33 |
| 207 |
|
| 208 |
In this setup, the UNIX hosts are "on the air". No PCs or additional |
| 209 |
hardware are required. A user near W1AW-5 could read a user near KA9WSB-3 |
| 210 |
simply by providing the digipeater path: "c KA9WSB V W1AW-5 KA9WSB-3" |
| 211 |
would work just fine. |
| 212 |
|
| 213 |
|
| 214 |
--------- |
| 215 |
|
| 216 |
We have added dual port capibility in DIGI MODE ONLY to allow us to use it |
| 217 |
with a Dataengine. Very little needed changing, but we did not document the |
| 218 |
changes. If you really need to know, diff the package against the original, |
| 219 |
which was/is at sunsite.unc.edu. To specify the second port, do something |
| 220 |
like this... |
| 221 |
|
| 222 |
#to use the second port, we need to be in digi mode |
| 223 |
mode digi |
| 224 |
# |
| 225 |
#port 0 on my tnc goes to vhf |
| 226 |
mycall ve3djf-12 |
| 227 |
myalias vhfdjf |
| 228 |
# |
| 229 |
#port 1 on my tnc goes to uhf. |
| 230 |
#The callsign and alias must be different for this to work right... |
| 231 |
mycall2 ve3djf-13 |
| 232 |
myalias2 uhfdjf |
| 233 |
# |
| 234 |
|
| 235 |
Everything else is the same. Note that if you leave out the mycall2 and |
| 236 |
myalias2 defines, it works just like the original in single port mode. For |
| 237 |
receiving on the KISS (dual) port, packets are checked against both callsigns |
| 238 |
and aliases. Whoever is on the other end of the AXIP link can find out what |
| 239 |
port it came from by looking at the who it got digi'd through, although |
| 240 |
I can't think of any reason to do that... For transmiting, you go out the |
| 241 |
port with the callsign matching the digi address. For example, to go out |
| 242 |
port 0 in the above example, digi through ve3djf-12 or vhfdjf. |
| 243 |
To go out port 1, digi through ve3djf-13 or uhfdjf. |
| 244 |
|
| 245 |
Deficencies: If you specify the same callsign on both |
| 246 |
ports, no error is generated, but the way the logic in the code works you |
| 247 |
always go out the upper port (port 1), not port 0. In TNC mode, there is |
| 248 |
really no way to specify which port to transmit on that I can think of, so |
| 249 |
there is no multiplexing there. Everything goes out port 0 in TNC mode |
| 250 |
still. Lastly, none of the dump routines know anything about ports on the |
| 251 |
KISS interface, so they look the same, with both ports lumped into one. |
| 252 |
|
| 253 |
Let us know if you like this hack, BTW. In retrospect, we should have |
| 254 |
written a KISSPlexor (tm:-) HIHI. I think we will do that next. |
| 255 |
|
| 256 |
|
| 257 |
73! de Jeff / VE3DJF |
| 258 |
Jeff@lnx_rpi.ee.ryerson.ca |
| 259 |
[email protected] |
| 260 |
|
| 261 |
|
| 262 |
AXIP (IP encapsulation of AX.25 frames) daemon by Michael Westerhof. |
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
Network Working Group B. Kantor |
| 272 |
Request for Comments: 1226 Univ. of Calif San Diego |
| 273 |
May 1991 |
| 274 |
|
| 275 |
|
| 276 |
Internet Protocol Encapsulation of AX.25 Frames |
| 277 |
|
| 278 |
Status of this Memo |
| 279 |
|
| 280 |
This memo describes a method for the encapsulation of AX.25 (the |
| 281 |
Amateur Packet-Radio Link-Layer Protocol) frames within IP packets. |
| 282 |
This technique is an Experimental Protocol for the Internet |
| 283 |
community. Discussion and suggestions for improvement are requested. |
| 284 |
Please refer to the current edition of the "IAB Official Protocol |
| 285 |
Standards" for the standardization state and status of this protocol. |
| 286 |
Distribution of this memo is unlimited. |
| 287 |
|
| 288 |
The AX.25 Amateur Packet-Radio Link-Layer Protocol |
| 289 |
|
| 290 |
The AX.25 Amateur Packet-Radio Link-Layer Protocol is described in |
| 291 |
the publication by that name [1], incorporated here by reference. |
| 292 |
|
| 293 |
Each AX.25 packet ("frame") is encapsulated in one IP datagram. |
| 294 |
Normally no AX.25 frame will exceed 330 octets, so fragmentation at |
| 295 |
the IP layer should not be necessary. However, experiments with |
| 296 |
larger AX.25 frame sizes may require the use of standard IP |
| 297 |
fragmentation and reassembly procedures. |
| 298 |
|
| 299 |
When an AX.25 frame is encapsulated within an IP packet, HDLC framing |
| 300 |
elements (flags and zero-stuffing) are omitted, as the IP datagram |
| 301 |
adequately delimits the beginning and end of each AX.25 frame. The |
| 302 |
16-bit CRC-CCITT frame check sequence (normally generated by the HDLC |
| 303 |
transmission hardware) is included. In all other respects, AX.25 |
| 304 |
frames are encapsulated unaltered. |
| 305 |
|
| 306 |
Each such IP datagram shall have a protocol number of 93. |
| 307 |
|
| 308 |
Reference |
| 309 |
|
| 310 |
[1] AX.25 Amateur Packet-Radio Link-Layer Protocol Version 2.0 |
| 311 |
October 1984. Available from the American Radio Relay League, |
| 312 |
Newington CT USA 06111, and other sources. |
| 313 |
|
| 314 |
Security Considerations |
| 315 |
|
| 316 |
Security issues are not discussed in this memo. |
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
Kantor [Page 1] |
| 323 |
|
| 324 |
RFC 1226 IP Encapsulation of AX.25 Frames May 1991 |
| 325 |
|
| 326 |
|
| 327 |
Author's Address |
| 328 |
|
| 329 |
Brian Kantor |
| 330 |
University of California at San Diego |
| 331 |
Network Operations C-024 |
| 332 |
La Jolla, CA 92093-0214 |
| 333 |
|
| 334 |
Phone: (619) 534-6865 |
| 335 |
|
| 336 |
EMail: [email protected] |
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
Kantor [Page 2] |
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
/etc/ax25/ax25ipd.conf for vk5xxx |
| 384 |
|
| 385 |
|
| 386 |
# |
| 387 |
# ax25ipd configuration file for station floyd.vk5xxx.ampr.org |
| 388 |
# |
| 389 |
# Select axip transport. 'ip' is what you want for compatibility |
| 390 |
# with most other gates ... |
| 391 |
# |
| 392 |
socket ip |
| 393 |
# |
| 394 |
# Set ax25ipd mode of operation. (digi or tnc) |
| 395 |
# |
| 396 |
mode tnc |
| 397 |
# |
| 398 |
# If you selected digi, you must define a callsign. If you selected |
| 399 |
# tnc mode, the callsign is currently optional, but this may change |
| 400 |
# in the future! (2 calls if using dual port kiss) |
| 401 |
# |
| 402 |
#mycall vk5xxx-4 |
| 403 |
#mycall2 vk5xxx-5 |
| 404 |
# |
| 405 |
# In digi mode, you may use an alias. (2 for dual port) |
| 406 |
# |
| 407 |
#myalias svwdns |
| 408 |
#myalias2 svwdn2 |
| 409 |
# |
| 410 |
# Send an ident every 540 seconds ... |
| 411 |
# |
| 412 |
beacon after 540 |
| 413 |
btext ax25ip -- tncmode rob/vk5xxx -- Experimental AXIP gateway |
| 414 |
# |
| 415 |
# Serial port, or pipe connected to a kissattach in my case |
| 416 |
# |
| 417 |
device /dev/ttyqd |
| 418 |
# |
| 419 |
# Set the device speed |
| 420 |
# |
| 421 |
speed 9600 |
| 422 |
# |
| 423 |
# loglevel 0 - no output |
| 424 |
# loglevel 1 - config info only |
| 425 |
# loglevel 2 - major events and errors |
| 426 |
# loglevel 3 - major events, errors, and AX25 frame trace |
| 427 |
# loglevel 4 - all events |
| 428 |
# log 0 for the moment, syslog not working yet ... |
| 429 |
# |
| 430 |
loglevel 0 |
| 431 |
# |
| 432 |
# If we are in digi mode, we might have a real tnc here, so use param to |
| 433 |
# set the tnc parameters ... |
| 434 |
# |
| 435 |
#param 1 20 |
| 436 |
# |
| 437 |
# ax.25 route definition, define as many as you need (< 128?) |
| 438 |
# format is route (call/wildcard) (ip host at destination) |
| 439 |
# |
| 440 |
route vk5zeu* 44.136.202.3 |
| 441 |
route vk5wsr-1 44.136.202.241 |
| 442 |
route vk5wsr-0 44.136.202.241 |
| 443 |
route vk5dj-15 44.136.202.241 |
| 444 |
route vk5ham* 44.136.202.241 |
| 445 |
# |
| 446 |
# a default route. Careful here, all undefined traffic end's up here. |
| 447 |
# |
| 448 |
route default 44.136.202.241 |
| 449 |
# |
| 450 |
|
| 451 |
|
| 452 |
another ax25ipd.cfg |
| 453 |
|
| 454 |
|
| 455 |
# Sample ax25ipd configuration file |
| 456 |
# |
| 457 |
# First select the mode of operation. (digi or tnc) |
| 458 |
# |
| 459 |
socket ip |
| 460 |
# |
| 461 |
mode tnc |
| 462 |
# |
| 463 |
# If you selected digi, you must define a callsign. If you selected |
| 464 |
# tnc mode, the callsign is currently optional, but this may change |
| 465 |
# in the future! |
| 466 |
# |
| 467 |
mycall ve3rpi-14 |
| 468 |
mycall2 ve3rpi-15 |
| 469 |
# |
| 470 |
# In digi mode, you may use an alias. |
| 471 |
# |
| 472 |
myalias ryeha1 |
| 473 |
myalias2 ryeha2 |
| 474 |
# |
| 475 |
# ID every 10 minutes... |
| 476 |
# |
| 477 |
beacon after 540 |
| 478 |
btext ax25ipd -- digi jeff -- Experimental IP gateway |
| 479 |
# |
| 480 |
# The tnc or host system must be connected to a serial port. |
| 481 |
# |
| 482 |
device /dev/ttyS1 |
| 483 |
# |
| 484 |
# The line speed is set here |
| 485 |
# |
| 486 |
speed 9600 |
| 487 |
# |
| 488 |
# loglevel 0 - no output |
| 489 |
# loglevel 1 - config info only |
| 490 |
# loglevel 2 - major events and errors |
| 491 |
# loglevel 3 - major events, errors, and AX25 frame trace |
| 492 |
# loglevel 4 - all events |
| 493 |
# |
| 494 |
loglevel 4 |
| 495 |
# |
| 496 |
# If digi mode, we probably have a tnc on the other end of the serial |
| 497 |
# port. Use the param command to set the KISS parameters (like txdelay!) |
| 498 |
# You can specify as many as you need. |
| 499 |
# |
| 500 |
param 1 20 |
| 501 |
# |
| 502 |
# Define some routes. This example routes all traffic for callsign ka9wsb-7 |
| 503 |
# to a host named waveguide.central.sun.com. You can define as many as |
| 504 |
# required. |
| 505 |
# |
| 506 |
route ve3rpi bbs.ve3rpi.ampr.org |
| 507 |
route ve3rpi-2 ryeham.ee.ryerson.ca |
| 508 |
route qst ryeham.ee.ryerson.ca |
| 509 |
# |
| 510 |
# A catch-all is provided: this line sends all calls not specifically |
| 511 |
# noted in the routing tables to sunbird.central.sun.com. Use this feature |
| 512 |
# with great care -- the host on the other end may not appreciate all the |
| 513 |
# traffic! |
| 514 |
# |
| 515 |
#route default sunbird.central.sun.com |
| 516 |
# |
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
ax25ipd.cfg.n8qlb |
| 521 |
|
| 522 |
|
| 523 |
# Sample ax25ipd configuration file (0.4.2 version) |
| 524 |
# |
| 525 |
# First select the mode of operation. (digi or tnc) |
| 526 |
# |
| 527 |
mode tnc |
| 528 |
# |
| 529 |
# The normal mode of operation is using IP datagrams: |
| 530 |
# |
| 531 |
socket ip |
| 532 |
# |
| 533 |
# But you can also use UDP datagrams. If you don't specify a port number |
| 534 |
# to use, the default will be chosen (usually a Good Idea). |
| 535 |
# |
| 536 |
socket udp |
| 537 |
# |
| 538 |
# If you selected digi, you must define a callsign. If you selected |
| 539 |
# tnc mode, the callsign is currently optional, but this may change |
| 540 |
# in the future! |
| 541 |
# |
| 542 |
mycall N8QLB-1 |
| 543 |
# |
| 544 |
# In digi mode, you may use an alias. |
| 545 |
# |
| 546 |
myalias LINUXX |
| 547 |
# |
| 548 |
# Note that if you use an alias, in order to guarantee you will properly |
| 549 |
# ID every 10 minutes, you MUST specify "beacon every 540" (or so -- |
| 550 |
# don't beacon too often, but setting it to 600 might end up squeaking |
| 551 |
# past the 10 minute time if the channel is busy) |
| 552 |
# A possible future enhancement may allow an ID only if necessary (i.e. |
| 553 |
# a packet has been digipeated using the "myalias" id)... |
| 554 |
# |
| 555 |
beacon every 540 |
| 556 |
btext ax25ipd -- digi n8qlb -- Experimental IP gateway |
| 557 |
# |
| 558 |
# The tnc or host system must be connected to a serial port. |
| 559 |
# |
| 560 |
device /dev/tnc |
| 561 |
# |
| 562 |
# The line speed is set here |
| 563 |
# |
| 564 |
speed 9600 |
| 565 |
# |
| 566 |
# loglevel 0 - no output |
| 567 |
# loglevel 1 - config info only |
| 568 |
# loglevel 2 - major events and errors |
| 569 |
# loglevel 3 - major events, errors, and AX25 frame trace |
| 570 |
# loglevel 4 - all events |
| 571 |
# |
| 572 |
loglevel 0 |
| 573 |
# |
| 574 |
# If digi mode, we probably have a tnc on the other end of the serial |
| 575 |
# port. Use the param command to set the KISS parameters (like txdelay!) |
| 576 |
# You can specify as many as you need. |
| 577 |
# |
| 578 |
param 1 20 |
| 579 |
# |
| 580 |
# Define some routes. This example routes all traffic for callsign ka9wsb-6 |
| 581 |
# to a host named sales.central.sun.com, using udp instead of raw ip. The |
| 582 |
# next line sends all traffic for e3abc-5 to a host at ip address 11.22.33.44, |
| 583 |
# sending the datagrams to udp port 12345. The last example sends frames |
| 584 |
# addressed to y4xyz-9 and sends them to flim.flam.com, using the ip |
| 585 |
# encapsulation. You can define as many as required. |
| 586 |
# |
| 587 |
#route n8qlb linux.n8qlb |
| 588 |
#route e3abc-5 11.22.33.44 udp 12345 |
| 589 |
#route y4xyz-9 flim.flam.com |
| 590 |
# |
| 591 |
# A catch-all is provided: this line sends all calls not specifically |
| 592 |
# noted in the routing tables to fred.central.sun.com. Use this feature |
| 593 |
# with great care -- the host on the other end may not appreciate all the |
| 594 |
# traffic! |
| 595 |
# |
| 596 |
route default linux.n8qlb |
| 597 |
# |
| 598 |
ax25ipd.cfg.stock |
| 599 |
# Sample ax25ipd configuration file |
| 600 |
# |
| 601 |
# First select the mode of operation. (digi or tnc) |
| 602 |
# |
| 603 |
mode digi |
| 604 |
# |
| 605 |
# If you selected digi, you must define a callsign. If you selected |
| 606 |
# tnc mode, the callsign is currently optional, but this may change |
| 607 |
# in the future! |
| 608 |
# |
| 609 |
mycall ka9wsb-7 |
| 610 |
# |
| 611 |
# In digi mode, you may use an alias. |
| 612 |
# |
| 613 |
myalias sunord |
| 614 |
# |
| 615 |
# ID every 10 minutes... |
| 616 |
# |
| 617 |
beacon after 540 |
| 618 |
btext ax25ipd -- digi ka9wsb-7 -- Experimental IP gateway |
| 619 |
# |
| 620 |
# The tnc or host system must be connected to a serial port. |
| 621 |
# |
| 622 |
device /dev/ttyb |
| 623 |
# |
| 624 |
# The line speed is set here |
| 625 |
# |
| 626 |
speed 9600 |
| 627 |
# |
| 628 |
# loglevel 0 - no output |
| 629 |
# loglevel 1 - config info only |
| 630 |
# loglevel 2 - major events and errors |
| 631 |
# loglevel 3 - major events, errors, and AX25 frame trace |
| 632 |
# loglevel 4 - all events |
| 633 |
# |
| 634 |
loglevel 3 |
| 635 |
# |
| 636 |
# If digi mode, we probably have a tnc on the other end of the serial |
| 637 |
# port. Use the param command to set the KISS parameters (like txdelay!) |
| 638 |
# You can specify as many as you need. |
| 639 |
# |
| 640 |
param 1 20 |
| 641 |
# |
| 642 |
# Define some routes. This example routes all traffic for callsign ka9wsb-7 |
| 643 |
# to a host named waveguide.central.sun.com. You can define as many as |
| 644 |
# required. |
| 645 |
# |
| 646 |
route ka9wsb-6 salespuke.central.sun.com |
| 647 |
# |
| 648 |
# A catch-all is provided: this line sends all calls not specifically |
| 649 |
# noted in the routing tables to sunbird.central.sun.com. Use this feature |
| 650 |
# with great care -- the host on the other end may not appreciate all the |
| 651 |
# traffic! |
| 652 |
# |
| 653 |
#route default sunbird.central.sun.com |
| 654 |
# |
| 655 |
|
| 656 |
|
| 657 |
|
| 658 |
|
| 659 |
Outstanding Issues |
| 660 |
------------------ |
| 661 |
|
| 662 |
There are many outstanding issues with this software. A partial list, |
| 663 |
in no particular order, appears below. |
| 664 |
|
| 665 |
- Portability! io.c currently uses BSD-style select but sys5-style termios! |
| 666 |
|
| 667 |
- ICMP messages relating to ax25ipd are ignored. |
| 668 |
|
| 669 |
- Performance of the routing lookups is probably horrid. Also, a static |
| 670 |
table is a crock. Feedback from evaluations and test sites may help |
| 671 |
determine how this should work. |
| 672 |
|
| 673 |
- Statistics should be added. |
| 674 |
|
| 675 |
- A few more comments in the code would be nice. |
| 676 |
|
| 677 |
|
| 678 |
Comments, Criticism, Enhancements, Problems, Bugs |
| 679 |
------------------------------------------------- |
| 680 |
|
| 681 |
You can reach the person responsible for ax25ipd at any of the following |
| 682 |
addresses: |
| 683 |
|
| 684 |
[email protected] |
| 685 |
|
| 686 |
KA9WSB@WB9YAE |
| 687 |
|
| 688 |
Mike Westerhof, 17 N Main St, Mt Prospect, IL 60056 |
| 689 |
|
| 690 |
------------------------------------------------------------------------- |
| 691 |
Copyright 1991, Michael Westerhof, Sun Microsystems, Inc. |
| 692 |
This software may be freely used, distributed, or modified, providing |
| 693 |
this footer is not removed. |
| 694 |
------------------------------------------------------------------------- |