I have a #minetest server on my LAN, but the machine it's running on is behind a #NAT. I'd like to make it accessible to friends and family remotely. I know I can set up port forwarding through my router, but I don't have a static IP, and I'm not keen on setting up dynamic DNS.
What I do have is a cheap VPS connected to my LAN via a #wireguard #VPN. My normal MO here is to set up port forwarding via an #SSH tunnel, but minetest uses UDP traffic.
1/
What I do have is a cheap VPS connected to my LAN via a #wireguard #VPN. My normal MO here is to set up port forwarding via an #SSH tunnel, but minetest uses UDP traffic.
1/
Bob Jonkman likes this.
Bob Jonkman reshared this.
Jonathan Lamothe
socat udp-recvfrom:300000,reuseaddr,fork udp4-sendto:<ip>:30000
where <ip> is the IP address of the minetest server on the VPN. I have confirmed that it is receiving the forwarded UDP packets.
2/
Bob Jonkman reshared this.
Jonathan Lamothe
reuseaddr
option) the minetest server is not sending the responses back to the right address.Any thoughts on how I could solve this?
3/3
Bob Jonkman reshared this.
Bob Jonkman
•Bob Jonkman
•I use reverse ssh tunnels to connect to family's computers, but I have no idea how that would work with UDP.
Jonathan Lamothe
Perhaps I could do it with iptables, though?
Jonathan Lamothe
Guess I'll have another look at it.
ϟт℮ ♥ε Ḻ ☺ґḓ likes this.