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

    PfSense as OpenVPN client but not routing for the OpenVPN network

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 1.7k 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.
    • G
      gyrotech
      last edited by

      Hi all,

      I have an OpenVZ VPS with a static public IP that also acts as an OpenVPN server. I want to be able to connect to the VPS via the OpenVPN network and, eventually, route connections to a few specific public servers through the VPN.

      My setup is:

      HomeLAN: 192.168.125.0/24
      pfSense router: Default gateway for HomeLAN & OpenVPN client
      OpenVZ VPS: public IP and OpenVPN server (192.168.135.0/24)

      pfSense connects to the VPN happily (see image below) and will ping the IP address of the VPS via the VPN (i.e. 192.168.135.1), also connecting directly to the VPN from a machine inside HomeLAN works as expected, that machine can then ping the VPN server. What I would like is for any request originating from HomeLAN to the 192.168.135.0/24 network be routed through the VPN. The OpenVPN server has the push "route 192.168.135.0 255.255.255" command that should do this.

      Any ideas??

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