Quantcast
Channel: Active questions tagged openvpn - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 827

OpenVPN portforwarding help for BitTorrent on Ubuntu

$
0
0

I own a VPS running Ubuntu 20.04. It currently has a running OpenVPN service I got going using this guide which uses a script https://www.cyberciti.biz/faq/howto-setup-openvpn-server-on-ubuntu-linux-14-04-or-16-04-lts/. I am able to connect to and use the VPN no trouble. The problem is that BitTorrent requires port forwarding to work well and this current implementation obviously does not work. I'd like to use port 30050. I have tried following this guide https://whattheserver.com/openvpn-server-with-port-forwarding/ additionally to set up port forwarding.

I have also configured my personal router to forward the BT port to my OpenVPN client PC (Windows 10) which has a static IP assigned (not sure if I needed to do this part, please let me know if I didn't need to).

This is what iptables -S produces on the OpenVPN VPS:

-P INPUT ACCEPT-P FORWARD ACCEPT-P OUTPUT ACCEPT-A INPUT -p udp -m udp --dport 1194 -j ACCEPT-A INPUT -p udp -m udp --dport 1194 -j ACCEPT-A INPUT -d 10.8.0.2/32 -p tcp -m tcp --dport 30050 -j ACCEPT-A INPUT -d 10.8.0.2/32 -p udp -m udp --dport 30050 -j ACCEPT-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT-A FORWARD -s 10.8.0.0/24 -j ACCEPT-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT-A FORWARD -s 10.8.0.0/24 -j ACCEPT

Could anyone kindly instruct me on how to solve this? Thankyou.


Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>