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

    NAT Rule breaks after setting up OpenVPN server

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 255 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.
    • S
      Saetun
      last edited by Saetun

      I have an OpenVPN client setup for PIA VPN with a NAT setup for port forwarding. I used the instructions located at :

      https://forum.netgate.com/topic/64905/automated-scripts-for-private-internet-access-port-forwarding

      This works great on its own.

      However I am now trying to setup an OpenVPN server on my pfsense box for connecting to my network remotely. I am using the wizard to do so. As soon as I create the server and complete the wizard the port forwarding I have setup breaks. Any idea why this would occur?

      I figured out the rule created by the wizard that breaks it :

      The firewall rule that allows any to any on the OpenVPN interface breaks my forwarding. If this is disabled then the forwarding works again.

      1 Reply Last reply Reply Quote 0
      • S
        Saetun
        last edited by

        Finally figured it out. It put the any/any autocreated rule in the OpenVPN category under firewall rules. I had to add a new interface assignment for the OpenVPN server and move the rule to be bound to that interface specifically in order for policy based routing to work correctly.

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