LAN <-> LAN VPN/routing help

Home Page Forums Network Management ZeroShell LAN <-> LAN VPN/routing help

This topic contains 1 reply, has 0 voices, and was last updated by  andrewr 10 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41612

    andrewr
    Member

    Hi,

    I currently using two ZeroShell boxes to create a LAN < -> LAN VPN, I can get the VPN tunnel connected, how ever I’m sturggling to route traffic through it.

    I’ve got the network setup as follows:

    Subnet 1


    SERVER 1 <
    > ZEROSHELL 1 <
    > ADSL 1

    SERVER 1 – 192.168.1.100

    ZEROSHELL LOCAL (ETH00) – 192.168.1.1
    ZEROSHELL WAN (ETH01) – 192.168.7.101
    ZEROSHELL VPN00 – 192.168.254.1

    ADSL 1 – 192.168.7.1

    Subnet 2


    SERVER 2 <
    > ZEROSHELL 2 <
    > ADSL 2

    SERVER 2 – 192.168.2.100

    ZEROSHELL LOCAL (ETH00) – 192.168.2.1
    ZEROSHELL WAN (ETH01) – 192.168.7.102
    ZEROSHELL VPN00 – 192.168.254.2

    ADSL ROUTER – 192.168.7.2

    I’ve tried numerous entries in the routing table, all going out of VPN00 but i’m still struggling to get it route traffic through the VPN tunnel.

    Any advice?

    Thanks,

    Andrew

    #47977

    Smokeshow
    Member

    This is fairly simple to do.

    On Zeroshell 1 create the following Static Route:
    Destination: 192.168.2.0
    Netmask: 255.255.255.0
    Type: Gateway
    Gateway: 192.168.254.2
    Metric: 0

    And on Zeroshell 2:

    Destination: 192.168.1.0
    Netmask: 255.255.255.0
    Type: Gateway
    Gateway: 192.168.254.1
    Metric: 0

    #47978

    andrewr
    Member

    On ZeroShell 1 that works.

    On ZeroShell 2 I get an error:
    Apr 04 15:41,11 ERROR: Static route 192.168.1.0/255.255.255.0 via 192.168.254.1 metric 0 not added: RTNETLINK answers: No such proces…

    EDIT: Figured it out, there was no entry for 192.168.254.0 in the routing table on ZeroShell 2, added it and it works brilliantly.

    Thank you!

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

You must be logged in to reply to this topic.