home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Linux and Unix
Ask a Tech Support Question (free)!

OpenVPN not routing traffic to HTTP server on client

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2588
Discussions: 200,970, Posts: 2,379,735, Members: 246,335
Old March 28th, 2009, 08:52 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Mar 2009
Location: Connecticut, USA
Posts: 3
OpenVPN not routing traffic to HTTP server on client

Hello,

I'm a newbie to OpenVPN so maybe the solution to this is obvious...

I seem to be having a routing problem, because I can't reach an HTTP server that's on each client machine when I try to access that machine via the vpn.

I have a working OpenVPN system running with an Ubuntu 8.04.1 server as the OpenVPN server. I have multiple remote Ubuntu server machines as OpenVPN clients. All are on the 10.8.0.x network. I can ping and SSH from any vpn client to the vpn server, and vice-versa. There aren't any networks behind any of them. The clients can only talk to the server. So the basic OpenVPN is OK.

Each client has an Apache HTTP server that's on port 8000. I'm trying to reach this HTTP server through the VPN. The HTTP server works fine if I connect to the machine without using the VPN.

I have a web page on an Apache HTTP server that is on the same machine as the OpenVPN server. I have links on that web page to other sites. The links to sites outside the VPN work fine, the problem is that none of the links to Apache HTTP servers on the clients work. I can't connect to those other web pages via the VPN.

I have static IP addresses within the OpenVPN so I know what IP addresses to put into the links in the web page.

I've turned off all firewalls (!) to try to solve this problem.

I've run nmap from the vpn server, and it correctly finds all active vpn clients, and it correctly finds all of the ports, including 8000 for HTTP, that I expect to be open.

So it seems to me that the internal routing, from vpn server to vpn clients, and within each vpn client, is working ok.

Can someone tell me why clicking on a link in a web page that's on a Linux machine that's both an HTTP server and also the VPN server can't open web pages on clients within the vpn ???

Thank you.

-- NewtownGal
NewtownGal is offline   Reply With Quote
Old March 29th, 2009, 09:58 AM     #2 (permalink)
A hero in training
 
GroundZero3's Avatar
 
Join Date: Oct 2001
Location: Norfolk, VA
Posts: 26,854
Blog Entries: 15
Can you ping the vpn clients?

Do you have a router on the network? Did you add a static route for the vpn subnet?

Quote:
Now the VPN is connected you need to setup up a route to the vpn subnet so 192.168.x.x or whatever can communicate with vpn clients. Log into the router (for this im gonna go through a linksys router, you must bear with me as im using the DD-WRT firmware) . If you are running the default firmware you would click the first tab and see the advance routing tab. Click it then for the destination LAN address type in your VPN subnet. In my case it would be 10.8.1.0, gateway 255.255.255.0 and the gateway will be the address of the VPN server. So if your vpn server internal address is 192.168.1.50 you would but that as the gateway.

HOWTO: Openvpn and Ubuntu (Dapper)
GroundZero3 is online now   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client shuts down on server error NewtownGal Linux and Unix 3 March 26th, 2009 04:50 PM
OpenVPN routing to server problem MarLow Networking and Internet 1 February 2nd, 2009 10:00 AM
Routing problem with openVPN boupartac Networking and Internet 11 December 10th, 2008 03:42 PM
mail server routing cisco PIX aussie2008 Networking and Internet 0 July 27th, 2008 05:34 AM
ActiveX can't find contents file using http://ip/test.psr on a W2K Spanish client vicman Webmastering and Programming 0 November 5th, 2002 05:24 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3043)
Delete an OS (15)
Breaking: San Diego ACORN Document .. (10)
Nvidia GTX 260 problem (7)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
windows vista security holes (17)
Internet Lost (5)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
Print spooler problem (16)
Recent Discussions
Nvidia GTX 260 problem (7)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (37)
Delete an OS (15)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)


All times are GMT -4. The time now is 07:19 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28