Added udptunnel to circumvent some firewalls

This commit is contained in:
Héctor Molinero Fernández
2020-06-19 00:12:25 +02:00
parent cc4f0c40f1
commit de9b62e764
5 changed files with 64 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
[Unit]
Description=udptunnel service
Requires=udptunnel.socket
ConditionPathExists=!/etc/udptunnel/udptunnel_not_to_be_run
[Service]
Type=notify
Restart=on-failure
ExecStart=/usr/local/bin/udptunnel --server --verbose 127.0.0.1:51820
StandardOutput=journal
StandardError=journal
DynamicUser=yes
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=strict
ProtectHome=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RemoveIPC=yes
SystemCallArchitectures=native
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,9 @@
[Unit]
Description=udptunnel socket
[Socket]
ListenStream=443
BindIPv6Only=both
[Install]
WantedBy=sockets.target