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

Route between OpenVPN and Interface

Scheduled Pinned Locked Moved Routing and Multi WAN
3 Posts 2 Posters 687 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.
  • Z
    zapador
    last edited by Mar 21, 2023, 3:43 PM

    Hi

    I've gotten myself into a setup that's a bit more complicated than what I've done previously and not really sure in what direction to go to make this work.

    I have a setup as seen on the diagram (ignore arrow direction). What I need is being able to connect from the Debian VM to the OpenVPN client.
    For this to work I assume that I will need to add a route on the Debian VM to 10.201.0.0/16 but not sure what the via should be.
    And what configuration will I need on the pfSense to get this traffic through?

    Thank you!

    pfsense routing.png

    V 1 Reply Last reply Mar 21, 2023, 4:11 PM Reply Quote 0
    • V
      viragomann @zapador
      last edited by Mar 21, 2023, 4:11 PM

      @zapador said in Route between OpenVPN and Interface:

      For this to work I assume that I will need to add a route on the Debian VM to 10.201.0.0/16 but not sure what the via should be.

      Yes, seem pfSense is not the default gateway on the Debian machine, since you have already a route pointing to it.
      So you also need a route for the OpenVPN tunnel pool or at least the clients IP and point it to the same pfSense IP.

      In the OpenVPN server settings you need to add the Debians IP 10.199.0.5/32 to the "Local Networks" to push the route to the client.
      You may also want to create a CSO for the certain client to assign a static virtual IP to it. So the IP to connect to the client stays the same.

      Z 1 Reply Last reply Mar 22, 2023, 2:47 PM Reply Quote 1
      • Z
        zapador @viragomann
        last edited by Mar 22, 2023, 2:47 PM

        @viragomann Thank you for taking your time to respond. I'll see if I can make it work.

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received