Default route through local GW instead of through VPN GW

Home Page Forums Network Management Networking Default route through local GW instead of through VPN GW

This topic contains 0 replies, has 0 voices, and was last updated by  bluefrog 11 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40984

    bluefrog
    Member

    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

    #46358

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.