| 1 |
.TH AX25D.CONF 5 "25 May 2015" Linux "Linux Programmer's Manual" |
| 2 |
.SH NAME |
| 3 |
ax25d.conf \- ax25d configuration file. |
| 4 |
.SH DESCRIPTION |
| 5 |
.LP |
| 6 |
.B Ax25d.conf |
| 7 |
controls the functioning of |
| 8 |
.B ax25d. |
| 9 |
Its purpose is to specify on which ports to listen on, which applications |
| 10 |
are available, and to whom they are available to. The configuration file is |
| 11 |
common to both AX.25, NET/ROM and Rose and their is similarity between the |
| 12 |
two parts of the file. |
| 13 |
.sp 1 |
| 14 |
The general layout for an entry for a given port is as follows: |
| 15 |
.sp 1 |
| 16 |
.RS |
| 17 |
interface control |
| 18 |
.br |
| 19 |
callsign entry 1 |
| 20 |
.br |
| 21 |
. |
| 22 |
.br |
| 23 |
. |
| 24 |
.br |
| 25 |
callsign entry n |
| 26 |
.RE |
| 27 |
.sp 1 |
| 28 |
The |
| 29 |
.B "interface control" |
| 30 |
line determines which port and callsigns apply to the following |
| 31 |
.B "callsign entry" |
| 32 |
lines, until the next |
| 33 |
.B "interface control" |
| 34 |
is read. There are four different variants of the |
| 35 |
.B "interface control" |
| 36 |
line: |
| 37 |
.sp 1 |
| 38 |
.RS |
| 39 |
1. [AX.25 Port Name] |
| 40 |
.br |
| 41 |
2. [Callsign VIA AX.25 Port Name] |
| 42 |
.br |
| 43 |
3. <NET/ROM Port Name> |
| 44 |
.br |
| 45 |
4. {Callsign VIA Rose Port Name} |
| 46 |
.RE |
| 47 |
.sp 1 |
| 48 |
Version 1 allows the following |
| 49 |
.B "callsign entry" |
| 50 |
lines to listen on the AX.25 port specified by the AX.25 port name using the |
| 51 |
default callsign of that AX.25 port. |
| 52 |
.sp 1 |
| 53 |
Version 2 allows the following |
| 54 |
.B "callsign entry" |
| 55 |
lines to listen on the AX.25 port specified by the AX.25 port name using the |
| 56 |
callsign specified instead of the default callsign of that AX.25 port. |
| 57 |
Specifying a * for the AX.25 port name allows the following |
| 58 |
.B "callsign entries" |
| 59 |
to be valid for all the operating AX.25 ports using the callsign specified. VIA |
| 60 |
can be abbreviated to just V. If the callsign has an asterisk appended to it |
| 61 |
then the system will be listening on the port with the callsign, but as a |
| 62 |
pseudo-digipeater instead of being the normal destination callsign. |
| 63 |
.sp 1 |
| 64 |
Version 3 allows the following |
| 65 |
.B "callsign entry" |
| 66 |
lines to listen on the NET/ROM port specified by the NET/ROM port name using |
| 67 |
the default callsign of that NET/ROM port. |
| 68 |
.sp 1 |
| 69 |
Version 4 allows the following |
| 70 |
.B "callsign entry" |
| 71 |
lines to listen on the Rose port using the specified Rose port name using |
| 72 |
the callsign specified as the service access point (SAP). A * may be |
| 73 |
specified for a callsign to allow matching to any incoming Call Requests |
| 74 |
with any SAP. |
| 75 |
.sp 1 |
| 76 |
The |
| 77 |
.B "callsign entry" |
| 78 |
lines have a similar layout for both AX.25, NET/ROM and Rose, the layout is: |
| 79 |
.sp 1 |
| 80 |
.RS |
| 81 |
peer window t1 t2 t3 idle n2 mode uid exec args... |
| 82 |
.RE |
| 83 |
.sp 1 |
| 84 |
All values must be entered for all entries even when they are not used (ie |
| 85 |
window for NET/ROM, just enter a * instead), The meanings of each of the |
| 86 |
fields is given below. All timings apart from the idle value are given in |
| 87 |
seconds, the idle values is given in minutes. |
| 88 |
.RS |
| 89 |
.TP 10 |
| 90 |
.B peer |
| 91 |
This specifies the callsign of the remote end of the connection that should |
| 92 |
have the following parameters and executable set up for them. The syntax of |
| 93 |
the peer argument is explained below. |
| 94 |
.TP 10 |
| 95 |
.B window |
| 96 |
This sets the the value of the window size, if a value of * is entered in this |
| 97 |
field then the default value for the port is taken from the \(lqparameters\(rq |
| 98 |
entry (see below) or lacking such an entry, the kernel default value is used. |
| 99 |
This entry is used by AX.25 but not by NET/ROM or Rose. |
| 100 |
.TP 10 |
| 101 |
.B t1 |
| 102 |
This sets the the value of the T1 timer, if a value of * is entered in this |
| 103 |
field then the default value for the port is taken from the \(lqparameters\(rq |
| 104 |
entry (see below) or lacking such an entry, the kernel default value is used. |
| 105 |
This entry is used by both AX.25 and NET/ROM but not by Rose. |
| 106 |
.TP 10 |
| 107 |
.B t2 |
| 108 |
This sets the the value of the T2 timer, if a value of * is entered in this |
| 109 |
field then the default value for the port is taken from the \(lqparameters\(rq |
| 110 |
entry (see below) or lacking such an entry, the kernel default value is used. |
| 111 |
This entry is used by both AX.25 and NET/ROM but not by Rose. |
| 112 |
.TP 10 |
| 113 |
.B t3 |
| 114 |
This sets the the value of the T3 timer, if a value of * is entered in this |
| 115 |
field then the default value for the port is taken from the \(lqparameters\(rq |
| 116 |
entry (see below) or lacking such an entry, the kernel default value is used. |
| 117 |
This entry is used by AX.25 but not by NET/ROM or Rose. |
| 118 |
.TP 10 |
| 119 |
.B idle |
| 120 |
This sets the the value of the idle timer, if a value of * is entered in |
| 121 |
this field then the default value for the port is taken from the |
| 122 |
\(lqparameters\(rq entry (see below) or lacking such an entry, the kernel |
| 123 |
default value is used. |
| 124 |
.TP 10 |
| 125 |
.B n2 |
| 126 |
This sets the the value of the N2 counter, if a value of * is entered in this |
| 127 |
field then the default value for the port is taken from the \(lqparameters\(rq |
| 128 |
entry (see below) or lacking such an entry, the kernel default value is used. |
| 129 |
This entry is used by both AX.25 and NET/ROM but not by Rose. |
| 130 |
.TP 10 |
| 131 |
.B mode |
| 132 |
This is a set of flags that control the various properties associated with |
| 133 |
the incoming connection. The flags are single letters, may be in either |
| 134 |
upper or lower case, and there may not be any spaces between them. If no |
| 135 |
flags are to be specified either a 0, - or a * must be entered instead. The |
| 136 |
valid mode flag letters are: |
| 137 |
.RS |
| 138 |
.TP 5 |
| 139 |
.B D |
| 140 |
Do not allow connections that have passed via any digipeaters. AX.25 only. |
| 141 |
.TP 5 |
| 142 |
.B L |
| 143 |
Do not allow this station to connect, they are Locked out. |
| 144 |
.TP 5 |
| 145 |
.B N |
| 146 |
Check that the NET/ROM neighbour is allowed, currently unused. |
| 147 |
.TP 5 |
| 148 |
.B Q |
| 149 |
Do not make an entry into the log file for this connection. |
| 150 |
.TP 5 |
| 151 |
.B V |
| 152 |
Validate the callsign of the incoming connection, currently unused. |
| 153 |
.RE |
| 154 |
.TP 10 |
| 155 |
.B uid |
| 156 |
This is the userid that the following command should run under when |
| 157 |
executing. |
| 158 |
.TP 10 |
| 159 |
.B exec |
| 160 |
This is the executable that should be executed when an incoming connection |
| 161 |
matches the criteria of both the |
| 162 |
.B "interface control" |
| 163 |
and the |
| 164 |
.B "callsign entry". |
| 165 |
.TP 10 |
| 166 |
.B args... |
| 167 |
These are the optional arguments that are passed to the executable. All of |
| 168 |
the arguments are passed literally apart from the following: |
| 169 |
.RS |
| 170 |
.TP 5 |
| 171 |
.B %d |
| 172 |
The name of the port that the connection is on. |
| 173 |
.TP 5 |
| 174 |
.B %U |
| 175 |
The username (callsign) of the remote station in upper case without the SSID. |
| 176 |
.TP 5 |
| 177 |
.B %u |
| 178 |
The username (callsign) of the remote station in lower case without the SSID. |
| 179 |
.TP 5 |
| 180 |
.B %S |
| 181 |
The username (callsign) of the remote station in upper case with the SSID. |
| 182 |
.TP 5 |
| 183 |
.B %s |
| 184 |
The username (callsign) of the remote station in lower case with the SSID. |
| 185 |
.TP 5 |
| 186 |
.B %P |
| 187 |
The nodename of the remote station in upper case without the SSID. |
| 188 |
This is only valid under NET/ROM and Rose, under AX.25 a % is substituted instead. |
| 189 |
.TP 5 |
| 190 |
.B %p |
| 191 |
The nodename of the remote station in lower case without the SSID. |
| 192 |
This is only valid under NET/ROM and Rose, under AX.25 a % is substituted instead. |
| 193 |
.TP 5 |
| 194 |
.B %R |
| 195 |
The nodename of the remote station in upper case with the SSID. |
| 196 |
This is only valid under NET/ROM and Rose, under AX.25 a % is substituted instead. |
| 197 |
.TP 5 |
| 198 |
.B %r |
| 199 |
The nodename of the remote station in lower case with the SSID. |
| 200 |
This is only valid under NET/ROM and Rose, under AX.25 a % is substituted instead. |
| 201 |
.TP 5 |
| 202 |
.B %% |
| 203 |
A %. |
| 204 |
.RE |
| 205 |
.RE |
| 206 |
.sp 1 |
| 207 |
The |
| 208 |
.B peer |
| 209 |
argument is dependent upon whether AX.25, NET/ROM or Rose is being used. There are |
| 210 |
five formats of this argument: |
| 211 |
.sp 1 |
| 212 |
.RS |
| 213 |
1. default |
| 214 |
.br |
| 215 |
2. parameters |
| 216 |
.br |
| 217 |
3. callsign |
| 218 |
.br |
| 219 |
4. callsign@node |
| 220 |
.br |
| 221 |
5. @node |
| 222 |
.RE |
| 223 |
.sp 1 |
| 224 |
The first version is used by AX.25, NET/ROM and Rose to specify that all callsigns |
| 225 |
on a given port are to be matched. The default line is usually the last of the |
| 226 |
.B "callsign entry" |
| 227 |
lines, so that more specific entries may have the chance to be matched |
| 228 |
first. |
| 229 |
.sp 1 |
| 230 |
The second version is not a |
| 231 |
.B "callsign entry" |
| 232 |
that is used by any incoming connections. It is a means to specify default |
| 233 |
values for parameters such as Window, T1, T2, T3, Idle and N2. It is used for |
| 234 |
both AX.25, NET/ROM and Rose. |
| 235 |
.sp 1 |
| 236 |
The third version is used by both AX.25, NET/ROM and Rose to specify the callsign of |
| 237 |
the remote station to match the |
| 238 |
.B "callsign entry" |
| 239 |
line. If no SSID is specified then the callsign will be matched with any |
| 240 |
that has the same callsign and any SSID. Specifying an SSID causes the |
| 241 |
callsign to be matched exactly. In the case of NET/ROM and Rose this entry does not |
| 242 |
specify which node the originating callsign comes from. |
| 243 |
.sp 1 |
| 244 |
The fourth version is used by NET/ROM and Rose to specify the callsign of the remote |
| 245 |
station and the remote node to match the |
| 246 |
.B "callsign entry" |
| 247 |
line. If no SSID is specified in the callsign section then the callsign will |
| 248 |
be matched with any that has the same callsign and any SSID. Specifying an |
| 249 |
SSID causes the callsign to be matched exactly. |
| 250 |
.sp 1 |
| 251 |
The fifth version is used by NET/ROM and Rose to specify only the address of the |
| 252 |
remote node to match the |
| 253 |
.B "callsign entry" |
| 254 |
line. This entry will mean that all remote users at the given node will |
| 255 |
match the entry. |
| 256 |
.sp 1 |
| 257 |
Comments may be embedded in the configuration file by placing a # in the |
| 258 |
first column. |
| 259 |
.sp 1 |
| 260 |
ax25d can now honour AX.25 TCP/IP mode-VC connections in a special way. |
| 261 |
Therefore, a new port specific option "parameters_extAX25" is available, with |
| 262 |
the following options, which are separated by space. |
| 263 |
.TP 5 |
| 264 |
parameters_extAX25 |
| 265 |
VC-debug |
| 266 |
.br |
| 267 |
VC-reject-login|VC-wait-login|VC-login-ok |
| 268 |
.br |
| 269 |
VC-disc-on-linkfailure-msg, VC-send-failure-msg, VC-log-connections |
| 270 |
.br |
| 271 |
Recommended settings in ax25d.conf: |
| 272 |
.br |
| 273 |
parameters_extAX25 VC-wait-login VC-disc-on-linkfailure-msg VC-log-connections |
| 274 |
.br |
| 275 |
or |
| 276 |
.br |
| 277 |
parameters_extAX25 VC-reject-login VC-send-failure-msg VC-log-connections |
| 278 |
.br |
| 279 |
|
| 280 |
.SH FILES |
| 281 |
.LP |
| 282 |
/etc/ax25/ax25d.conf |
| 283 |
.SH "SEE ALSO" |
| 284 |
.BR ax25 (4), |
| 285 |
.BR ax25wrapper (8), |
| 286 |
.BR netrom (4), |
| 287 |
.BR rose (4), |
| 288 |
.BR axports (5), |
| 289 |
.BR nrports (5), |
| 290 |
.BR rsports (5), |
| 291 |
.BR ax25d (8). |