www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Default route through local GW instead of through VPN GW

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Networking
View previous topic :: View next topic  
Author Message
bluefrog



Joined: 08 Apr 2008
Posts: 1

PostPosted: Tue Apr 08, 2008 3:25 pm    Post subject: Default route through local GW instead of through VPN GW Reply with quote

Hi,

This may be a question that belongs on the OpenVPN user groups, but I figure I'll try it here first.
I'm new to Zeroshell as of about three days ago and just got my first OpenVPN connection working to an zeroshell installation! I'm ecstatic!

This is what I'm trying to accomplish.
Route traffic for the "office" network to the office through the VPN and route all traffic bound for another network through the local gateway. I see no purpose in sending users' P2P traffic or http traffic through our limited office connection.

I hope this is an easy answser that has been addressed many times. I haven't been able to find anything on it.

Cliff

Here's the routing table I get when I connect to the VPN.

===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.250.254 192.168.250.1 1
70.90.x.x 255.255.255.255 192.168.24.1 192.168.24.100 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.24.0 255.255.255.0 192.168.24.100 192.168.24.100 25
192.168.24.100 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.24.255 255.255.255.255 192.168.24.100 192.168.24.100 25
192.168.250.0 255.255.255.0 192.168.250.1 192.168.250.1 30
192.168.250.1 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.250.255 255.255.255.255 192.168.250.1 192.168.250.1 30
224.0.0.0 240.0.0.0 192.168.24.100 192.168.24.100 25
224.0.0.0 240.0.0.0 192.168.250.1 192.168.250.1 30
255.255.255.255 255.255.255.255 192.168.24.100 192.168.24.100 1
255.255.255.255 255.255.255.255 192.168.250.1 2 1
255.255.255.255 255.255.255.255 192.168.250.1 192.168.250.1 1
Default Gateway: 192.168.250.254
===========================================================================
Persistent Routes:
None
Back to top
View user's profile Send private message
jeremy.haynes



Joined: 05 Mar 2008
Posts: 25

PostPosted: Wed Apr 09, 2008 11:52 pm    Post subject: Re: Default route through local GW instead of through VPN GW Reply with quote

Easiest way is to remove everything from the Client Ip Address Assignment in the VPN section. Then create a DHCP scope for the VPN subnet, and leave the Default Gateway blank. You will need to add a route in the OpenVPN config file that looks like this.

route 192.168.50.0 255.255.255.0 192.168.250.254 1

so that the OpenVPN client will know how to get to the ZeroShell network...and everything else will go out the default gateway assigned to the workstation (or whatever is using the OpenVPN client).

Hope that helps.

bluefrog wrote:
Hi,

This may be a question that belongs on the OpenVPN user groups, but I figure I'll try it here first.
I'm new to Zeroshell as of about three days ago and just got my first OpenVPN connection working to an zeroshell installation! I'm ecstatic!

This is what I'm trying to accomplish.
Route traffic for the "office" network to the office through the VPN and route all traffic bound for another network through the local gateway. I see no purpose in sending users' P2P traffic or http traffic through our limited office connection.

I hope this is an easy answser that has been addressed many times. I haven't been able to find anything on it.

Cliff

Here's the routing table I get when I connect to the VPN.

===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.250.254 192.168.250.1 1
70.90.x.x 255.255.255.255 192.168.24.1 192.168.24.100 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.24.0 255.255.255.0 192.168.24.100 192.168.24.100 25
192.168.24.100 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.24.255 255.255.255.255 192.168.24.100 192.168.24.100 25
192.168.250.0 255.255.255.0 192.168.250.1 192.168.250.1 30
192.168.250.1 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.250.255 255.255.255.255 192.168.250.1 192.168.250.1 30
224.0.0.0 240.0.0.0 192.168.24.100 192.168.24.100 25
224.0.0.0 240.0.0.0 192.168.250.1 192.168.250.1 30
255.255.255.255 255.255.255.255 192.168.24.100 192.168.24.100 1
255.255.255.255 255.255.255.255 192.168.250.1 2 1
255.255.255.255 255.255.255.255 192.168.250.1 192.168.250.1 1
Default Gateway: 192.168.250.254
===========================================================================
Persistent Routes:
None
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Networking All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group