Jump to content
Not connected, Your IP: 3.16.212.203
Sign in to follow this  
czacha994

OpenVPN on Ubuntu Server and problem with port forwarding.

Recommended Posts

Hello.

I have a problem with configuring my server (Ubuntu 16.04.2 LTS) properly for P2P. I wanted to send ONLY torrent traffic through VPN, leaving normal traffic untouched so I can connect through SSH.

So:

I used this guide https://www.htpcguides.com/force-torrent-traffic-vpn-split-tunnel-debian-8-ubuntu-16-04/ for forcing my connection to use VPN. I modified it a little bit only to make it work with airvpn. And it is indeed working. ipleak.net is showing correct vpn ip. But the I'm having difficulties with opening my port. I didn't forward it anywhere in my iptables because I found on forum that you just don't do that. Just unlocked it on airvpn.

 

I even tested forwarding on my home network (without forwarding ports in my router) and on airvpn tester and http://www.yougetsignal.com it indeed is opened. So why can't I make it work on my server ? On airvpn tester the port is not responding and yougetsignal is telling me that it's closed. Torrents are seeding, but the speed is sometimes not that good and I think that forwarding may be the reason for it.

 

Of course I properly set the port in torrent (same I forwarded on site). 

 

in   netstat -lntu  I can find that the port is listening, but only in TCP.

 

tcp        0      0 0.0.0.0:55XXX           0.0.0.0:*               LISTEN

 

What can I do to make it work ?

Share this post


Link to post

The idea is that you are not supposed to do it on a router if your router is not the device you run OpenVPN on, to prevent correlation attacks.

If this is a server, you must use iptables or set up the device you are running OpenVPN on to forward those ports.


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...