Tunnelling over DNS UDP port 53

Tried these with various levels of success:

Your computer:

socat tcp4-listen:5353,reuseaddr,fork UDP:your-server-ip-address:53

Server where you have root access and nothing already listening on port 53:

sudo socat -T15 udp4-recvfrom:53,reuseaddr,fork tcp:localhost:5353

This will create a tunnel from any local TCP connections to localhost:5353 – over UDP port 53 – back to TCP port localhost:5353 on the server side.

So you could tunnel anything over this port number. Why? Could be a way to bypass pay-for-internet providers that do not block UDP port 53. But don’t do anything illegal now.

^^ tried again and it didn’t work for me. oh well worth a shot!

Put in place firewall rules or other measures so only your ip address can connect to your server port 53.


Leave a Reply

Your email address will not be published.