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

    Forward specific external IP to Internal IP.

    Scheduled Pinned Locked Moved Firewalling
    14 Posts 4 Posters 10.0k 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.
    • V
      Vorkbaard
      last edited by

      You can do this by making 1:1 mappings. First, go to Firewall, Virtual IPs and make a CARP entry for each external IP you have.

      Like this:

      Type: CARP
      Interface: WAN
      IP Addresse(s): Address: [your external IP here] / 32 (/32=one address)
      Virtual IP Password: just make something up here
      VHID Group: make something up. I use a unique group for all my addresses. Not sure what this does but how I do it, it works for me :)
      Advertising Frequency: 0
      Description: not parsed, enter a sensible description here

      Then go to Firewall, NAT, 1:1
      Make a new entry. Interface: WAN
      External Subnet: [your external IP address here] / 32
      Internal Subnet: 192.168.1.1 (your internal machine)
      Description: some description

      Then enter a firewall rule to allow RDP traffic from the external address to internal:
      Firewall, Rules (not NAT!), WAN
      Enter your allow-rule here.

      Good luck :)

      /edit
      jimp is also right, you can use NAT to map an external IP different than the external IP of the pfSense box. I did it the way I did because I wanted the external machines to have the complete IP address, so they would be pingable from outside.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        @Vorkbaard:

        You can do this by making 1:1 mappings. First, go to Firewall, Virtual IPs and make a CARP entry for each external IP you have.

        This should work with any type of VIP, not just CARP, and 1:1 isn't really needed either unless you want the outbound traffic from those servers to also appear to originate from the external IPs you are working with.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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

          @jimp:

          @Vorkbaard:

          You can do this by making 1:1 mappings. First, go to Firewall, Virtual IPs and make a CARP entry for each external IP you have.

          This should work with any type of VIP, not just CARP, and 1:1 isn't really needed either unless you want the outbound traffic from those servers to also appear to originate from the external IPs you are working with.

          Indeed, I need traffic from those servers to appear to originate from their specific IP's :) Should have mentioned that - it's just how I got it working.

          1 Reply Last reply Reply Quote 0
          • J
            joemcgivern
            last edited by

            Hi All,

            Many thanks for the response.

            I have tried to add the VIP but when I add a CARP address I get the following error.

            Sorry, we could not locate an interface with a matching subnet for 89.xx.1xx.72/32. Please add an ip in this subnet on a real interface.

            Any ideas ?

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              CARP VIPs have to be in the same subnet as your WAN. If you have IPs in a different subnet, use Proxy ARP or "Other" type VIPs.

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • J
                joemcgivern
                last edited by

                I have now added it in as Proxy Arp..

                I have a NAT going from VIP to 192.168.1.2 but still brings me to 192.168.1.1

                I have also tried setting the VIP as other..

                Do I need to restart the PF..

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  It might help to see a screen capture of your port forward screen, someone might be able to spot an issue. A screen capture of the port forward editing screen for that rule wouldn't hurt, either.

                  Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • J
                    joemcgivern
                    last edited by

                    JPEG of screen dump attatched..

                    NAT.JPG
                    NAT.JPG_thumb

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      What about the other view? (the list of port forwards)

                      Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • J
                        joemcgivern
                        last edited by

                        port forward

                        ![port forward.JPG](/public/imported_attachments/1/port forward.JPG)
                        ![port forward.JPG_thumb](/public/imported_attachments/1/port forward.JPG_thumb)

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

                          Did you create the according firewall rule?

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