Report this

What is the reason for this report?

Wireguard on Ubuntu - Forward port issues

Posted on March 26, 2019

so I installed wireguard vpn based on this guide: https://www.ckn.io/blog/2017/11/14/w...typical-setup/

Internet access is fine I can access all website no issues. But some apps are not able to open ports (uTorrent, Playstation, XBOX) they all fail to open the ports needed. Once I close the vpn connection all ports open just fine. I tried tons of iptables rules nothing is working. So far those are the current iptables that I have.

iptables -A FORWARD -i wg0 -j ACCEPT iptables -A FORWARD -o wg0 -j ACCEPT iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

iptables -A INPUT -i wg0 -j ACCEPT iptables -A OUTPUT -o wg0 -j ACCEPT

iptables -t nat -A PREROUTING -i eth0 -p tcp --match multiport --dports 1000,65535 -j DNAT --to 10.0.0.2 iptables -t nat -A PREROUTING -i eth0 -p udp --match multiport --dports 1000,65535 -j DNAT --to 10.0.0.2

Still the apps above are failing to open the ports needed. What am I missing? What can I do to just make sure all ports 1000:65535 are open



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Greetings!

I welcome additional thoughts by anyone who has run into this issue before, but I wanted to see if I could at least be some help. I couldn’t find documentation of anyone running into the same issue, so I went in search of a tutorial for Ubuntu 18, in hopes that a different tutorial may simply have a positive impact, because perhaps both you and I are overlooking the cause.

This is what I found: https://dnns.no/wireguard-vpn-on-ubuntu-18.04.html

Might be worth a try at least :)

Jarland

Hi Jarland, Thank you so much for the link. I tried everything in that post but still no luck unfortunately.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.