LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-14-2009, 09:03 AM   #1
kevosurge
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
VPN Routing


Hey,

I've got an issue regarding a VPN server I'm trying to establish. Let me start with my network layout:

ISP------------------ (Two Public IP Addresses)
| |
| |
*ETH1********* *WAN***********
* * * *
* VPN SERVER * * Router (.1) *
* * * *
*ETH0********* *LAN***********
| |
| |
LOCAL LAN (172.30.18.0/24)</pre>

I've got OpenVPN-AS installed and working fine (as long as the server is not attached to the local LAN). I do have IP forwarding enabled. I'm trying to connect to eth1 on the VPN server, establish connect, and be able to talk to clients on eth0. The VPN server is using NAT.

Last edited by kevosurge; 08-14-2009 at 09:05 AM.
 
Old 08-16-2009, 03:50 PM   #2
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Rep: Reputation: 41
So your clients CAN or CANNOT connect if you are attached to the local LAN? If not then is your openVPN config file on the server specifying ETH1 to listen on?

If your iptables is running you will need to tell it to allow fwd traffic from eth1 to eth0

You will need to add a route to the eth1 to tell it the same...
add the line "net.ipv4.ip_forward = 1" to the file "/etc/sysctl.conf
 
Old 08-17-2009, 07:29 AM   #3
kevosurge
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
The clients could not connect. I did manage to get things working this weekend though. When I brought up eth0 and eth1, it added default routes to the gateway for both... this seems to be my problem. By removing the default route for eth1 and changing it to 0.0.0.0, I was able to work without fail, but removing the gateway from my interface configuration somehow prevents my eth1 from starting automatically. I guess I'll have to add the default gateway then have it remove it and add the route to 0.0.0.0?
 
  


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
VPN routing Ipolit Linux - Networking 4 02-08-2007 01:58 AM
VPN routing Ipolit Linux - Networking 1 12-13-2006 10:54 AM
Routing VPN Connections speed_viper Linux - Networking 1 03-29-2005 04:24 PM
routing and VPN cboyd Linux - Networking 7 12-01-2004 02:02 AM
Non-Next Hop Routing / VPN Tarantismic Yak Linux - Networking 0 10-26-2001 01:06 AM

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

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