Debian Codegraph @

ax25rtd/README.ax25rtd

raw
1 ax25rtd with DG2FEF/DG1KJD Linux-AX.25 Kernel NOTES:
2
3 - Here is an example ax25rtd.conf file:
4
5 ax25-maxroutes 256
6 ip-maxroutes 256
7 ip-encaps-dev ipax0
8
9 [sp0]
10 ax25-learn-routes yes
11 ax25-learn-only-mine yes
12 ip-adjust-mode no
13 ip-learn-routes no
14 arp-add yes
15
16 [ipax0]
17 arp-add yes
18 ip-learn-routes yes
19
20 - ax25-learn-only-mine has to be on for now, since ax25rtd is not able to
21 recognize digipeater paths yet when this node is part of it.
22
23 - ax25rtd will be replaced as soon as possible by something reasonable, so
24 this is only a temporary solution
25
26 - ipax0 must be up when ax25rtd is startet
27
28 - all other listeners (ax25d et al) must be registrated at this point of
29 time, too
30
31 - There must be an entry for ipax0 in /etc/axports, here is an example:
32
33 ipax0 dg1kjd-10 76800 256 7 IP-encap device
34
35 ----
36 Jens
37
38
39 *****************************************************************
40 * Please send all comments and suggestions regarding ax25rtd to *
41 * Klaus Kudielka ([email protected]). *
42 *****************************************************************
43
44 Just a quick small README...
45 This will hopefully go into the man pages ASAP.
46
47 Ax25routed
48 ----------
49
50 /usr/sbin/ax25rtd
51
52 This is a daemon that:
53
54 - emulates the ceased "autorouter" of Linux Kernel AX.25
55 - sets up ARP entries automagically
56 - may adjust IP routes and encapsulation mode
57 (although I really do not recommend to use this feature...)
58
59 The "autorouter" is not really an autorouter. It just listens to the AX.25
60 traffic on your ports and uses this information to setup AX.25 routes. This
61 can be turned on or off by altering the configuration file
62 /etc/ax25/ax25rtd.conf.
63
64 Ax25routed provides a socket /var/ax25/ax25rtd/control which is used for
65 runtime maintenance through ax25rtctl or to set up new routes by other
66 daemons (a Flexnet router, perhaps?)
67
68 On startup ax25rtd reads the configuration file and afterwards preloads
69 the caches from the files /var/ax25/ax25rtd/ax25_route and
70 /var/ax25/ax25rtd/ip_route. On SIGTERM or ax25rtctl --save it saves the
71 caches to those files.
72
73 ax25rtd.conf
74 ---------------
75
76 The file /etc/ax25/ax25rtd.conf is the configuration file for ax25rtd.
77 The parameters of the options shown here are the default values except the
78 ones marked with (example)
79
80 ax25-maxroutes 256
81 ip-maxroutes 256
82
83 The maximum size of the three lists / caches. On overflow,
84 ax25rtd will substitute the oldest entry with the new one.
85 [1k2]
86 This marks the beginning of per-port definitions. Note that
87 you have to use port names as defined in axports(5) here,
88 anywhere else you may use the port or the device name.
89
90 ax25-learn-routes no
91
92 Set this to "yes", ax25rtd will add the routing information
93 for every heard frame (with complete digipeater path) to the
94 kernel AX.25 routing table. Note that ax25rtd's internal cache
95 will be updated anyway, regardless of this option.
96
97 ax25-learn-only-mine no
98
99 If you set it to "yes", only frames that are sent to (1) the
100 interface callsign, (2) any of the listeners on this device, or
101 (3) the callsigns specified by ax25-more-mycalls will be used
102 to update the internal cache and (depending on
103 ax25-learn-routes) the kernel routing table.
104
105 ax25-add-path db0ach (example)
106
107 This is useful on DAMA digipeaters. In this case, the DAMA
108 master has to be used for _every_ AX.25 connection, thus
109 ax25rtd will add this digipeater(s) to every target we learn
110 that has no digipeater path (yet). "db0ach" is just an
111 example here.
112
113 ax25-more-mycalls dl1bke dl1bke-8 (example)
114
115 You can specify more calls as calls here that belong to
116 this interface... "dl1bke" and "dl1bke-8" are examples.
117
118 ip-learn-routes no
119
120 If set to "yes", ax25rtd will modify the IP routing table if it
121 receives an IP frame (directed to us). This is dangerous!
122
123 It should not screw up your routing table, though. Ax25rtd
124 recognizes the netmask of the device and will adjust the route
125 only if it fits the netmask and the old route points to
126 one of the devices ax25rtd knows about (hence an AX.25 device).
127
128 The problems begin if you have more than one port and a user
129 is able to hear your outgoing traffic on at least two of them.
130 Due to technical reasons ax25rtd adjusts the route _after_ the
131 kernel has sent the reply to the received TCP frame already.
132 This has technical reasons.
133
134 If the remote does the same both are switching between the two
135 ports.
136
137 Don't use this feature unless you know what you are doing.
138
139 It _should_ be safe do enable this on one-port machines, although
140 I strongly recommend to set a network route instead, i.e.:
141
142 route add -net 44.0.0.0 scc3
143
144 Note that ax25rtd's internal cache will be updated anyway,
145 regardless of this option.
146
147 irtt <irtt>
148
149 If ip-learn-routes is enabled this will assign newly added
150 routes an initial round trip time (IRTT) for TCP. <irtt>
151 is measured in msec, hence
152
153 irtt 10000
154
155 sets the irtt to 10 seconds. A value of 0 disables this
156 feature (default).
157
158 ip-adjust-mode no
159
160 If you set this option to "yes" ax25rtd will change the IP
161 encapsulation mode according to the last received IP frame.
162
163 The problem with this option is that the kernel AX.25 sends
164 a received IP frame to the IP layer regardless if it was
165 sent in UI frame encapsulation "mode datagram (dg)" or
166 in I frame encaps, hence in an AX.25 connection, "mode virtual
167 connect (vc)". The Linux kernel will respond to this frame
168 before ax25rtd can adjust the mode. If the remote does the
169 same... You get the picture.
170
171 Don't use this feature unless you know what you are doing.
172
173 arp-add no
174
175 This option, if set to "yes", changes the ARP table to the
176 source callsign of the received frame. It should be harmless,
177 just has the the effect that if it is a new entry, the Linux
178 ARP code will send one ARP request before ax25rtd has adjust
179 the ARP table. If there was already an existing ARP entry
180 for this IP route, one IP datagram will be sent to the old
181 address. Not really a problem, I hope.
182
183
184 Ax25rtctl
185 ---------
186
187 /usr/sbin/ax25rtctl <option>
188
189 This is a program to control ax25rtd. There are several options:
190
191 ax25rtctl --add ax25 <callsign> <dev> <time> [digipeater]
192 ax25rtctl -a ax25 <callsign> <dev> <time> [digipeater]
193
194 Add an entry to the AX.25 routing table. If time is "0"
195 this entry will be marked permanent, hence: the daemon will not
196 overwrite this route.
197
198 ax25rtctl --del ax25 <callsign> <dev>
199 ax25rtctl -d ax25 <callsign> <dev>
200
201 Remove an entry from the AX.25 routing table.
202
203 ax25rtctl --add ip <ip> <dev> <time> <call> <ipmode>
204 ax25rtctl -a ip <ip> <dev> <time> <call> <ipmode>
205
206 Add an entry to the IP routing table. If time is "0" the
207 entry will be marked permanent.
208
209 ax25rtctl --del ip <ip>
210 ax25rtctl -d ip <ip>
211
212 Remove an entry from the IP routing table.
213
214 ax25rtctl --list ax25
215 ax25rtctl -l ax25
216
217 Lists the content of the cache for the AX.25 routing table.
218
219 ax25rtctl --list ip
220 ax25rtctl -l ip
221
222 Lists the content of the cache for the IP routing table.
223
224 ax25rtctl --expire <minutes>
225 ax25rtctl -e <minutes>
226
227 Removes the entries older than <minutes> from the caches and
228 the kernel routing tables.
229
230 ax25rtctl --save
231 ax25rtctl -s
232
233 Saves the AX.25 and IP cache to /var/ax25/ax25rtd/ax25_route and
234 /var/ax25/ax25rtd/ip_route (or the files specified in
235 /etc/ax25/ax25rtd.conf).
236
237 ax25rtctl --reload
238 ax25rtctl -r
239
240 Reloads the config file /etc/ax25/ax25rtd.conf. This will
241 *not* affect the caches or the heard list.
242
243 ax25rtctl --shutdown
244 ax25rtctl -q
245
246 Same as 'killall -TERM ax25rtd' ;-)
247
248
249 ax25rtctl --version
250 ax25rtctl -V
251
252 Guess what...
253
254
255 Note that you can specify either the port name (as defined in
256 /etc/ax25/axports) or the interface name (shown by ifconfig). If names
257 conflict (i.e. port scc0 is in fact interface scc3, and vica versa), the
258 interface name has precedence over the port name. Example:
259
260 ax25rtctl --add ax25 dl0tha scc3 0 db0pra
261
262 is equivalent to
263
264 ax25rtctl --add ax25 dl0tha 9k6 0 dbpra
265
266 All commands return port names in their output, though.
267 With one exception: ax25_route and ip_route use interface names.
268
269
270 /var/ax25/ax25rtd/control
271 ----------------------------
272
273 The commands recognized on this socket are:
274
275 add ax25 <callsign> <dev> <time> [<digipeater>]
276 Add an AX.25 route
277 add ip <ip> <dev> <time> <call> <mode>
278 Add an IP route & mode
279
280 del ax25 <callsign> <dev>
281 Remove an AX.25 route from cache an kernel routing table
282 del ip <ip>
283 Remove an IP route from cache and kernel routing table
284
285 list [ax25|ip]
286 List cache entries.
287
288 reload
289 Reload config
290
291 save
292 Save cache
293
294 expire <min>
295 Expire cache entries older than <min> minutes
296
297 shutdown
298 Save caches and exit
299
300 version
301 Prints the version of the ax25rtd
302
303
304 Note that every command has to end with a '\n', and every line of the
305 response ends with an '\n' as well. The last line of a cache list
306 is just a period alone on a line (".\n").