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

Outbound NAT "A valid target IP address must be specified" while everything appears to be valid?

Scheduled Pinned Locked Moved NAT
7 Posts 3 Posters 1.3k 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
    sticcino
    last edited by Jun 2, 2023, 7:28 PM

    Hello all,

    I am trying to set up an outbound NAT to translate an internal subnet to potentially colliding client subnets over a routed IPsec tunnel. Every time I try to enter the NAT into Outbound NAT I get an error "A valid target IP address must be specified." but I don't see any errors. Can you please tell me what I am doing wrong so that an internal device can communicate across the lan to 10.a.b.c and translate it to the customer's 192.168.x.c?

    365bc17f-0006-48db-8769-fec9be247fee-image.png

    S 1 Reply Last reply Jun 2, 2023, 7:47 PM Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jun 2, 2023, 7:45 PM

      https://redmine.pfsense.org/issues/14354

      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 1
      • S
        SteveITS Galactic Empire @sticcino
        last edited by SteveITS Jun 2, 2023, 7:47 PM Jun 2, 2023, 7:47 PM

        @sticcino Set a Source network or IP or alias, e.g. the LAN subnet.

        https://docs.netgate.com/pfsense/en/latest/nat/outbound.html#working-with-manual-outbound-nat-rules
        "Avoid using a source address of any as that will also match traffic from the firewall itself. This will cause problems with gateway monitoring and other firewall-initiated traffic."

        edit: or that ☝

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        S 1 Reply Last reply Jun 2, 2023, 8:30 PM Reply Quote 0
        • S
          sticcino @SteveITS
          last edited by Jun 2, 2023, 8:30 PM

          @SteveITS Thanks, I had tried that as part of it, but I figured that either I was being a total idiot about NAT or it was an issue such as the one JimP sent...

          @jimp Thanks for the response, that looks like it. FWIW, I also see it on plus 22.x and on CE 2.6.0 with patch manager having the suggested patches applied.

          S 1 Reply Last reply Jun 2, 2023, 8:59 PM Reply Quote 0
          • S
            sticcino @sticcino
            last edited by Jun 2, 2023, 8:59 PM

            Okay, so what am I messing up now, that when I edit it in XML, even with the source specified to 172.a.b.0/24 I see it translating the source instead of the destination??

            b096fec3-2dfa-497e-9011-3e5ad3c469a5-image.png

            I expected since this is an outbound on the destination, the destination should be trasnlated??

            S 1 Reply Last reply Jun 2, 2023, 9:07 PM Reply Quote 0
            • S
              SteveITS Galactic Empire @sticcino
              last edited by Jun 2, 2023, 9:07 PM

              @sticcino Outbound NAT is going to translate packets arriving from Source, going to Destination, to the Translation address.

              It's typically used, for example, when a router has multiple IPs set up as WAN IP + virtual IPs, and a particular outgoing connection should use a VIP instead of the default WAN IP. Say, to isolate SMTP traffic or something like that.

              Is 10.a.b.c set up on your router? It might be a port forward is more applicable here? Not super clear on the goal.

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote 👍 helpful posts!

              S 1 Reply Last reply Jun 3, 2023, 9:04 PM Reply Quote 0
              • S
                sticcino @SteveITS
                last edited by sticcino Jun 3, 2023, 9:05 PM Jun 3, 2023, 9:04 PM

                @SteveITS Trying to use NAT to translate destination addresses. I have multiple connections over VPNs with colliding subnets that cannot change (and I have no control over those networks), and I need the addressing to be transparent. I want to be able to send traffic to 10.a.b.server on my side and translate it to the customersub.server as it goes out the ipsec tunnel.

                1 Reply Last reply Reply Quote 0
                4 out of 7
                • First post
                  4/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received