blob: 5e3eeb4c08d0bdf93bce53608c982f1340a86239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
[Unit]
Description=UDP over TCP/ICMP/UDP tunnel
After=network-online.target
[Service]
User=nobody
Type=simple
PermissionsStartOnly=true
CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
ExecStartPre=/usr/lib/udp2raw/udp2raw_script.sh /etc/udp2raw/%i.conf insert
ExecStart=/usr/bin/udp2raw --conf-file /etc/udp2raw/%i.conf
ExecStopPost=/usr/lib/udp2raw/udp2raw_script.sh /etc/udp2raw/%i.conf delete
Restart=always
RestartSec=30
StartLimitBurst=10
[Install]
WantedBy=multi-user.target
|