Packet tunneling over UDP, multiple channels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

# Virtual cable with uplinks to example host at and [fe::1]:2,
# and downlink ranges (any port) and [fe::1:0:0/96]:3
# + creates a local tap named "example" with tunneling MTU (1450)
# + uses UDP port 3 for this cable end
# + reniced service daemon
# + single-v logging to /var/log/rrqnet-example.log
# + cable PSK /etc/rrqnet/keys/example[1-4].key (not included)
# + 10 packet buffers and a single dispatch thread
# + using static IPv4 assignment
# This template includes an extension block to manage a dnsmasq instance
# for serving dhcp (only). Usage:
# ifup exampe=dnsmasq
# ifdown exampe=dnsmasq
auto example
iface example inet manual
mtu 1450
rrqnet_port 3
rrqnet_nice -3
rrqnet_log -v /var/log/rrqnet-example.log
rrqnet_remote [fe::1]:2=/etc/rrqnet/keys/example2.key
rrqnet_remote [fe::1:0:0/96]:3=/etc/rrqnet/keys/example4.key
rrqnet_options -B 10 -T 1
iface dnsmasq inherits example
up /usr/sbin/dnsmasq -i example -a -I lo -I wlan0 -I eth0 \
-p 0 -K -D -N -b --dhcp-sequential-ip \
-F,,, \
down pkill -f 'dnsmasq -i example'