LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-03-2017, 02:03 PM   #1
darthfoolish
Member
 
Registered: May 2006
Posts: 52

Rep: Reputation: 15
Openvpn client inbound connections issue


I have a Centos 7.3 virtual server at home running SABnzbd for usenet downloads.

I have setup openvpn on it, (as a client) so the usenet traffic goes through my VPN.

However, I also want to access the SABnzbd web gui from outside.

I can get this working when the VPN is disconnected, but it doesn't work when the VPN is up.

I am trying to connect directly to my ISP provided IP (via a dynamic dns address provided by Noip), and I can see the SYN packets coming in, but no SYN/ACKS are getting sent back out from my server.

I'm not even sure if this should work, if I should be connecting to the SAB web interface via the VPN endpoint, rather than the local endpoint, or if there is some sort of exotic config I have to do to get it to work.

Any pointers on where I'm going wrong are appreciated.
 
Old 09-03-2017, 07:33 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
If I dig very deep into memory some remnants of this problem surface. It does not work over VPN. I think it has something to do with the subnet SABnzb is listening. Maybe you can set it in SABnzb. I used a workaround, because when I am remote, I can't access SABnzb to change the setting.

This is a workaround. Open an SSH connection to your SABnzb host over the VPN. Redirect to the SABnzb's local address. Connect to localhost in your web browser on the remote machine.

OK, in slow motion now.

10.0.0.4 <- SABnzb server VPN address
192.168.20.4 <- SABnzb server LAN address

10.0.0.5 <- your remote laptop VPN address
172.16.80.10 <- you remote laptop LAN address

So what you try is http to 10.0.0.4 SABnzb server. And it fails. You laptop is on the same subnet so it should work. But it doesn't.

Try this: On your remote laptop open a terminal and enter:
Code:
ssh -L 1234:localhost:8081 10.0.0.4
This forwards port 1234 on localhost to port 8081 on 10.0.0.4 the SABnzb server. Leave the terminal open and leave the connection open. But you don't use it to enter commands.

Then you enter in your web browser on your remote laptop:
Code:
http://localhost:1234
When done with working in SABnzb, go back to the terminal and exit the SSH shell on the SABnzb server.

jlinnkels

Last edited by jlinkels; 09-03-2017 at 07:37 PM.
 
  


Reply

Tags
openvpn



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
[SOLVED] Having problems with DNS on one of multiple OpenVPN client connections skubik Linux - Networking 9 11-28-2016 11:45 PM
gadmin-openvpn-client issue wjtaylor Linux - Networking 5 01-22-2011 02:59 AM
firewall using dynamic dns for inbound connections ptah_be Linux - Security 8 02-06-2006 03:44 AM

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

All times are GMT -5. The time now is 03:42 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