blob: 87d5baf1e806d904b0db5b465a3c1001fe89a511 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
[Unit]
Description=A simple TCP port forwarder.
After=network.target network-online.target
[Service]
User=nobody
Group=nobody
EnvironmentFile=/etc/tcptunnel/tcptunnel.conf
ExecStart=/usr/bin/tcptunnel --stay-alive --local-port=${LOCAL_PORT} --remote-port=${REMOTE_PORT} --remote-host=${REMOTE_HOST} '$ADDITIONAL_CMDLINE'
KillMode=mixed
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target
|