Skip to content

Instantly share code, notes, and snippets.

@thde
Created January 28, 2019 10:36
Show Gist options
  • Save thde/a18adf762f90254e4c54c7ad4b5c49c1 to your computer and use it in GitHub Desktop.
Save thde/a18adf762f90254e4c54c7ad4b5c49c1 to your computer and use it in GitHub Desktop.
[Unit]
Description=Tunnel TCP traffic to WireGuard
After=network.target
Wants=wg-quick@.service
[Service]
Type=simple
ExecStart=/usr/bin/udptunnel -s 443 127.0.0.1/51820
Restart=on-failure
[Install]
WantedBy=multi-user.target
@alexellis
Copy link

How do you run this at the other end?

I'm trying this with an echo server, but if I start the echo UDP server on port 51820 it clashes with udptunnel

@thde
Copy link
Author

thde commented Jan 13, 2020

Client mode doesn't work for you?

 udptunnel -c TCP-addr[/TCP-port] [-r] [-v] UDP-addr/UDP-port[/ttl] 

http://www.cs.columbia.edu/~lennox/udptunnel/

I don't use it ATM so I can't tell you the exact config I used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment