LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2014, 12:51 PM   #1
cylent77
LQ Newbie
 
Registered: Jan 2007
Posts: 13

Rep: Reputation: 0
VPS port forwarding with VPN server


I am not sure where to post this so i am putting it here.

Since it is after all being on a VPS.

I am not new to Linux and can at the same time say I am not a full expert.

On the VPS i signed up for (KVM based) i setup OpenVPN-AS and Softether VPN Server to try out.

Both of which have options to do NAT and Bridging.

My problem is this: I want port forwarding for the application I use and need some ports to be opened.

With Softether VPN with NAT enabled and i connect I get a private IP and I am online. If i goto www.whatismyip.com i see that my IP is now the host vps's ip. so far so good.

If i then go to www.canyouseeme.org and I have my listening application running on my windows box it always fails and says the port is closed. well there is a program listening on that port however the port is not forwarded to me, my computer.

I installed webmin to try to figure this out but i am not successful. webmin Linux firewall rules are madly complicated.

Then i figured I'd enabled Bridging. I can connect as a VPN bridge device but of course I don't have a dhcp server on my vps thus i am stuck.

I really am not sure how to proceed on this.

ANY help is greatly appreciated.
 
Old 02-27-2014, 08:41 AM   #2
cylent77
LQ Newbie
 
Registered: Jan 2007
Posts: 13

Original Poster
Rep: Reputation: 0
i totally thought i'd get a response to my question pretty quick.

i am not sure where else to seek linux help for this.

to add a bit more explanation to this:

I signed up for a VPN provider just today (trial) and they use openvpn.
I connected via the openvpn client to the VPN provider and they had all ports forwarded without a hitch. ALL worked immeidately.

Thats what i want to do on my own VPS. forward my ports just like they have done.
 
Old 02-27-2014, 10:28 AM   #3
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
The way I troubleshoot things like that is tcpdump relevant traffic at all stages - at your end machine and all intermediary nodes that you control. See where the traffic disappears
Configure -j LOG rules in iptables with meaningful --log-prefix to help you analyse firewall drops.

If you find yourself scratching your head after the above, post your iptables filter and nat rules (obscure public addresses). Check you have ip_forward on...
 
Old 02-28-2014, 04:33 AM   #4
cylent77
LQ Newbie
 
Registered: Jan 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nikmit View Post
The way I troubleshoot things like that is tcpdump relevant traffic at all stages - at your end machine and all intermediary nodes that you control. See where the traffic disappears
Configure -j LOG rules in iptables with meaningful --log-prefix to help you analyse firewall drops.

If you find yourself scratching your head after the above, post your iptables filter and nat rules (obscure public addresses). Check you have ip_forward on...
the thing is all i want is to forward the traffic fom the VPS to the home machine so i can get the data for the specified port received.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Port forwarding on vpn router client captainkrypto Linux - Networking 3 05-09-2013 09:48 AM
PPTP VPN on Debian VPS (port 1723 Not Open) SubZeroJake Linux - Networking 13 05-14-2012 12:00 AM
PPTP VPN on Debian VPS (port 1723 Closed) SubZeroJake Linux - General 2 05-07-2012 07:20 AM
Install vpn on vps server badihi Linux - Networking 1 02-21-2011 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration