-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.cfg
194 lines (157 loc) · 3.3 KB
/
example.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
logging = {
file="/home/folkert/myip.log";
level_file="debug";
level_screen="debug";
}
environment = {
chdir-path="/tmp"
run-as=0
run-in=0
#ifup=
#ifdown=
stats-socket="/tmp/myipstats.sock";
n-router-threads=2;
}
# one can have multiple network interfaces
interfaces = ( {
# either slip, ppp, udp, promiscuous (for existing interfaces), kiss (IP(v4)
# over AX.25) or tap
type="tap"
# device name (ethernet)
dev-name="myip"
mtu-size=1520;
# 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
enable-lldp = false
n-ipv4-threads = 4;
ipv4 = {
my-address="192.168.3.2";
# act as a router?
forwarder = false;
use-icmp=true;
use-tcp=true;
use-udp=true;
use-sctp=true;
n-icmp-threads=1;
n-sctp-threads=1;
n-tcp-threads=8;
n-udp-threads=8;
}
mac-address="52:34:84:16:44:22";
n-ipv6-threads = 4;
ipv6 = {
my-address="2001:980:c324:4242:f588:20f4:4d4e:7c2d";
use-icmp=true;
use-tcp=true;
use-udp=true;
use-sctp=true;
n-icmp-threads=1;
n-sctp-threads=1;
n-tcp-threads=8;
n-udp-threads=8;
}
upstream-dns = "172.29.0.1";
routes = ( { # this interface is the default
ip-family = "ipv4";
network = "0.0.0.0";
netmask = "0.0.0.0";
gateway = "192.168.3.1";
},
{
ip-family = "ipv4";
network = "192.168.3.0";
netmask = "255.255.255.0";
} )
},
{
type="udp"
port=9899;
n-ipv4-threads = 4;
ipv4 = {
my-address="192.168.2.2";
use-icmp=true;
use-tcp=true;
use-udp=true;
use-sctp=true;
n-icmp-threads=1;
n-sctp-threads=1;
n-tcp-threads=8;
n-udp-threads=8;
}
mac-address="01:01:01:01:01:04";
n-ipv6-threads = 4;
ipv6 = {
my-address="2001:980:c324:4242:f588:20f4:4d4e:7c2e";
use-icmp=true;
use-tcp=true;
use-udp=true;
use-sctp=true;
n-icmp-threads=1;
n-sctp-threads=1;
n-tcp-threads=8;
n-udp-threads=8;
}
routes = (
{
ip-family = "ipv4";
network = "192.168.2.0";
netmask = "255.255.255.0";
} )
}
)
ntp = {
upstream-ip-address="192.168.64.1";
port=123;
broadcast=true;
}
http = {
web-root="/home/folkert/Projects/myip/www";
web-logfile="/home/folkert/temp/http_access.log";
port=80;
mdns="somehost._http._tcp.local.";
php-cgi="/usr/bin/php-cgi";
}
https = {
web-root="/home/folkert/Projects/myip/www";
web-logfile="/home/folkert/temp/http_access.log";
port=443;
is_https=true;
private-key="/home/folkert/Projects/myip/my-key.key";
certificate="/home/folkert/Projects/myip/cert.crt";
mdns="somehost._https._tcp.local.";
php-cgi="/usr/bin/php-cgi";
}
nrpe = {
port=5666;
}
vnc = {
port=5900;
bind-to-ip-address="192.168.3.2";
}
mqtt = {
port=1883;
}
sip = {
sample="/home/folkert/Projects/myip/test.wav";
mb-path="/home/folkert/temp";
mb-recv-script="/home/folkert/Projects/myip/mb-recv.sh";
upstream-sip-server="192.168.64.1";
upstream-sip-user="1234";
upstream-sip-password="1234";
sip-register-interval=15;
port=5060;
}
snmp = {
port=161;
}
syslog = {
port=514;
}