[SOLVED] OpenVPN Site to Site VPN and Client VPN routing howto



  • Dear Members,

    I've no more idea how to resolve my problem, I hope someone can help. This is my situation:

    • there is two sites, site A (master) 10.0.1.0/24, site B (slave) 10.0.2.0/24
    • pfSense 2.1.5 running on both sites
    • there is site to site vpn (openvpn) between two sites 10.0.5.0/30
    • site A is the server, site B is the client, the vpn is running well
    • on site A is running another openvpn for users, this vpn is running as well 192.168.0.0/24
    • the traffic is okay:
      – 192.168.0.0/24 (users VPN) -> 10.0.1.0/24 (site A)
      -- 10.0.1.0/24 (site A) -> 10.0.2.0/24 (site B)
      -- 10.0.2.0/24 (site B) -> 10.0.1.0/24 (site A)

    My problem is that 192.168.0.0/24 (users VPN) -> 10.0.2.0/24 (site B) doesn't work's. How can I route between the the networks?

    Kind Regards,
    Zoltan


  • Netgate

    Add 10.0.2.0/24 to the "Local Networks" on "users VPN"
    Add 192.168.0.0/24 to the "Local Networks" on the site-to-site server config

    I think that's all you should need to do as long as the rules on your OpenVPN tabs allow any any.



  • @Derelict:

    Add 10.0.2.0/24 to the "Local Networks" on "users VPN"
    Add 192.168.0.0/24 to the "Local Networks" on the site-to-site server config

    I think that's all you should need to do as long as the rules on your OpenVPN tabs allow any any.

    Thank you Derelict, I tried this, but still doesn't works. The firewall rules are any to any on openvpn device.

    I'm nut sure if is important, but I checked on Diagnostics -> Routing tables and it looks, that the two subnet user VPN and site to site VPN are running on different Netif devices (ovpns1 and ovpns2). Is this okay?



  • I added to site to site VPN on client side: Remote Networks: 192.168.0.0/24

    Now it looks like everything it's okay.