Allow direct routing via openvpn for two lans



  • OpenVPN Pfsense Server (pfsense 2.0-RC3):
    Lan IPs: 192.168.0.0
    OpenVPN: 192.168.11.0
    Tunnel Network: 192.168.11.0/24
    Local Network:192.168.0.0/24

    In advanced section of configuration I added:
    route 192.168.0.0 255.255.255.0;
    route 192.168.2.0 255.255.255.0;
    push "route 192.168.0.0 255.255.255.0"
    push "route 192.168.2.0 255.255.255.0"

    OpenVPN Client (pfsense 2.0-RC3)::
    Lan IPS: 192.168.2.0
    Tunnel Network:192.168.11.0/24
    Remote Network: 192.168.0.0/24
    In advanced section of configuration I added:
    route 192.168.0.0 255.255.255.0;
    route 192.168.2.0 255.255.255.0;

    How can I allow direct communication between 192.168.0.0 & 192.168.2.0 networks through openvpn?
    OpenVPN is working fine though, I can ping/telnet between pfsense client/server without issues.



  • Anyone :(

    I need to link these LANs & I am 300km away… Dont want to drive there:)



  • Hi,

    take a look at this sticky post in the OpenVPN thread:
    http://forum.pfsense.org/index.php/topic,12888.0.html

    I didn't set this up before but as far as I know you need to use the "iroute" command in "Client Specific Override" for the networks behind the OpenVPN CLIENT.

    –-- EDIT ----
    the above wasn't correct at all. I corrected it a little bit. But please take a look at this thread. I think it explains it in detail.


Locked