Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVPN routing

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 435 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fireix
      last edited by

      I have on server side/OpenVPN Server, in pfSense:

      Tunnel network: 10.0.1.0/24
      LAN-network 10.1.0.0/24

      Machine (Windows) on this LAN-network has two IP-addresses on same interface:

      IP1: 8.8.8.5 (example of static public IP) gw 8.8.8.1
      IP2: 10.1.0.31 - gw as above (as you can't have two gw, it will of course use the above and not find any route to reply ping).

      From the client side/OpenVPN Client, I can ping 10.0.1.1 when connection established. I want to be able to ping 10.1.0.31. I (assume) the reason is the gw above, but I'm really far out of my comfort zone…

      For this to happen, I assume I need to do something similar to this in Windows (so that the return will get to the correct gw for all traffic on the 10.1.X.X network):
      route ADD 10.1.0.0 MASK 255.255.255.0 10.0.1.1 METRIC 1 (I would hope it means that all traffic on 10.1.0.0. should go through the VPN on 10.0.1.1  - I can ping 10.0.1.1 from it).

      How exactly should the route above be? Am I somewhat close or will it never work?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.