-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkiss-tnc-tcp-server.cfg
82 lines (67 loc) · 1.82 KB
/
kiss-tnc-tcp-server.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
logging = {
file="myip.log";
level_file="debug";
level_screen="debug";
}
environment = {
chdir-path="/tmp"
run-as=0
run-in=0
ifup="/home/folkert/Projects/MyIP/go-tnc.sh"
#ifdown=
stats-socket="/tmp/myipstats.sock";
n-router-threads=4;
}
interfaces = (
{
# either slip, ppp, udp, promiscuous (for existing interfaces), kiss (IP(v4)
# over AX.25) or tap
type="kiss";
# serial port device name (can also be a direwolf pts (give -p to direwolf))
descriptor="tcp-server:0.0.0.0:8105";
# for kiss:
# descriptor="...";
# pty-master:dev-file create a PTY to which kissattach can connect (TNC mode)
# pty-client:dev-file open an existing PTY (TNC client mode)
# tty:dev-file:baudrate open a serial port on which a TNC listens
# tcp-client:host:port connect to a KISS over TCP server
# tcp-server:listen-addr:port listens for a KISS over TCP client
#
#beacon = "Hello, world!";
#beacon-interval=0; in seconds
# only one kiss interface should have this set to true
# it is the default-gateway equivalent of ipv4
default-interface = true;
#beacon="Hello, this is KISS over TCP server!";
#beacon-interval=10;
upstream-dns = "8.8.8.8";
ipv4 = {
my-address="192.168.32.19";
use-icmp=true;
use-tcp=true;
use-udp=true;
use-sctp=true;
n-icmp-threads=4;
n-sctp-threads=4;
n-tcp-threads=4;
n-udp-threads=4;
}
mac-address="PD9FVH-1";
routes = ( { # this interface is the default
ip-family = "ipv4";
network = "0.0.0.0";
netmask = "0.0.0.0";
gateway = "192.168.32.19";
},
{
ip-family = "ipv4";
network = "192.168.32.0";
netmask = "255.255.255.0";
})
}
)
ntp = {
upstream-ip-address="192.168.64.1";
port=123;
broadcast=true;
}