wget -O /usr/bin/TunnelForward https://xyus.anuse.name/TunnelForward
chmod +x /usr/bin/TunnelForward


cat >/etc/systemd/system/TunnelForward.service << EOF
[Unit]
Description=TunnelForward - Forwarding traffic
After=network.target nss-lookup.target network-online.target
Wants=network-online.target
  
[Service]
Type=simple
PIDFile=/run/TunnelForward.pid
ExecStart=/usr/bin/TunnelForward -f /etc/TunnelForward/config.json >/dev/null &2>1
PrivateTmp=true
Restart=always
LimitNOFILE=102400
LimitNPROC=102400
StandardOutput=null
StandardError=null
  
[Install]
WantedBy=multi-user.target
EOF

systemctl daemon-reload
systemctl enable TunnelForward
