Openvpn routing to ipsec



  • Hi,

    I’m trying to setup openvpn to access into my existing ipsec based vpn. This is what I would like to get:

    Roadwarriors with openvpn client
                                            |
                                            V
                                    local office
                            pfsense server (xx.xxx.xxx.xxx)
                          with openvpn (192.168.201.1)
                                            |
                                            v
                                (ipsec 192.168.200.1)   
                                      / |      \          \ 
                                    /  |        \          \   
                                  /    |          \          \       
                                /      |            \          \   
                              /        |              \         
                            /        Office2          \        Office4
                          /    smoothwall(ipsec)    \        smoothwall(ipsec) 
                        /        192.168.1.1          \            192.168.20.1   
                      /                                      \       
              Office1                                      Office3
              pfsense(ipsec)                          smoothwall(ipsec)
            192.168.0.1                                192.168.2.1

    Using the tutorial (great work), I can connect to pfsense (local office) and ping all the server in the lan (192.168.200.0/24)
    and from the lan to ping the openvpn subnet (192.168.201.0/24).
    I Would like to reach also the other subnet, so I've tried to add push <"redirect-gateway def1"> option or add the routing on client configuration but it doesn't work.
    I’ve also created a static route on 192.168.0.1:
      WAN(or LAN)> 192.168.201.0/24 192.168.200.1
    but obviously I’m missing something with routing. :( 
    Can someone help me on this please?
    tnx



  • Change all roadwarrior tunneldefinitions to
    Local network: LAN subnet
    Remote subnet: 192.168.0.0/16

    This way the central pfSense acts as a concentrator and even the satellite offices will be able to talk to each other Not sure about the OpenVPN config for this as I don't use OpenVPN but as you can't route through IPSEC tunnels the above is needed for sure.



  • Hi, tnx for the quick answer, i've just tried to set openvpn
    with the remote subnet as you say, but the problem remain.

    Still no routing… probably i'm missing some settings on the openvpn server to route traffic of the openvpn tunnel through the ipsec tunnel.
    I'll investigate a little more  (or could give a try to pptp  :-\ )

    Yes, I know that with the actual config only local office (192.168.200.0/24) can access through every other subnet, but for now is what we want. Do you think this could be a problem for the mobile user?

    tnx for your help

    PS: does anyone know if it's possible do configure openvpn client with username/password?


Log in to reply