Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    OpenVPN as a default gateway

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 1.4k 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.
    • P
      poldas
      last edited by

      Hi,

      I have OpenVPN server as a tun behind NAT.

      LAN/WAN interface 192.168.101.250 (router is gateway - 192.168.101.1)
      IPv4 Tunnel Network 192.168.44.0/24

      I checked "Force all client generated traffic through the tunnel"

      Client route table has second default gateway

      Network Dest.  Netmask      Gateway            Interface            Metric
      0.0.0.0            128.0.0.0    192.168.44.5    192.168.44.6    20

      But trafic doesn't get to the Internet via OpenVPN…

      tracert 8.8.8.8
      192.168.44.1
      192.168.101.1 - this is last hop
      *
      *
      *

      Do you have any idea what is wrong?

      1 Reply Last reply
      Reply Quote 0
      • H
        heper
        last edited by

        well, pfSense probably hasn't created NAT rules for the vpn subnet.

        you could manually add them
        or

        you could assign an interface to your openvpn: i believe pfSense will add NAT automagically then (don't shoot me if i'm mistaken)

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy