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

    Port Forwarding not working while routing traffic over OpenVPN interface

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 377 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.
    • J
      jacobsmith
      last edited by

      I recently setup a OpenVPN connection to route all traffic over that VPN which is working. Prior to setting that up I had port forwarding on 22 and 80 to accept incoming WAN connections. I also had firewall rules to allow 22 and 80 with port forwarding.

      Once the new routing was set up, inbound traffic on 22+80 stopped working. I tried setting the gateway as WAN in the firewall rules advanced options, but did not seem to work.

      I'm running pfsense 2.4.0.

      Any ideas what to look at?

      1 Reply Last reply Reply Quote 0
      • M
        mikeisfly
        last edited by

        What ip(s) are port 80 and 22 being forwarded to? You would need to setup a superseding rule to make the gateway of that IP address be pfsense's default gateway. I suspect the IP address is pfsense's LAN IP so just make the rule and the mask would be /32 and move it ahead of the rule that directs all the other traffic over the VPN.

        By the way if I'm right about the LAN IP I suggest you use https.

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