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

    Redirect port from NAT to host of OpenVPN

    Scheduled Pinned Locked Moved NAT
    6 Posts 3 Posters 484 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
      jantonio.garcia
      last edited by

      Hi, i'm trying to redirect one port (27380) from PFSense (PFSense 1) to one computer (called AG) in other PFSense (PFSense 2). Both PFSense are connected via IPSec tunnel. I can reach any computer in the IPSec, but I'm not able to redirect the port to the computer called AG.

      I attach a simple network diagram with the PFsense and the computer, and their situation.

      Untitled Diagram.png

      Thanks for your help.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        You really can't realistically do that with IPsec. You can do it with OpenVPN.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • J
          jantonio.garcia
          last edited by

          Ok, I tried with OpenVPN tunnel. But the rule in NAT to redirect port to OpenVPN client is not working...

          Can you help me?

          Thanks

          1 Reply Last reply Reply Quote 0
          • V
            viragomann
            last edited by

            Assign interfaces to the OpenVPN instances at both sites. Only select the correct network port, open the interface settings and enable them.

            If it still doesn't work post your settings like networks, IPs, filter rules, NAT rules.

            J 1 Reply Last reply Reply Quote 0
            • J
              jantonio.garcia @viragomann
              last edited by

              @viragomann I created the interfaces and I assigned to both OpenVPN instances, I can reach the port from PFSense 1, but not from WAN of PFSense 1. What am I missing?

              1 Reply Last reply Reply Quote 0
              • V
                viragomann
                last edited by

                The routes?

                So you've created a Site-to-Site OpenVPN server?

                Also added firewall rules to allow that access?
                You'll need a rule on pfSense1 WAN interface as well as on the VPN interface on pfSense.

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