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

1:1 NAT to OpenVPN 2.5.0

Scheduled Pinned Locked Moved NAT
9 Posts 4 Posters 1.9k 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
    varyuhin.anton
    last edited by Mar 26, 2021, 12:13 PM

    After 2.5.0 upgrade I cant create 1:1 NAT rule for OpenVPN tunnels. Every time I get this error message: "The interface do not have address from the specified address family" Rules created earlier (2.4.4) are still working, but I cant make any changes to them (same error)

    Case Diagram and interface screenshots:
    https://imgur.com/a/CfqCreM
    alt text
    alt text
    alt text

    This functionality is crucial for connecting networks with overlapping address ranges.
    What am I doing wrong?

    D 1 Reply Last reply Mar 26, 2021, 12:28 PM Reply Quote 0
    • D
      DaddyGo @varyuhin.anton
      last edited by Mar 26, 2021, 12:28 PM

      @varyuhin-anton said in 1:1 NAT to OpenVPN 2.5.0:

      I cant create 1:1 NAT rule for OpenVPN tunnels.

      Hi,

      Hmmm,..this is interesting
      What does the third image cover?
      172.29..........etc.

      Cats bury it so they can't see it!
      (You know what I mean if you have a cat)

      V 1 Reply Last reply Mar 26, 2021, 12:41 PM Reply Quote 0
      • V
        varyuhin.anton @DaddyGo
        last edited by varyuhin.anton Mar 26, 2021, 12:42 PM Mar 26, 2021, 12:41 PM

        @daddygo said in 1:1 NAT to OpenVPN 2.5.0:

        Hmmm,..this is interesting
        What does the third image cover?
        172.29..........etc.

        Hi,
        Just an example of the error message and interface differences between versions
        For diagram example it could be:
        External subnet ip: 172.22.1.10
        Internal ip: Single host: 192.168.1.10
        172.22.1.0/24 and 172.22.2.0/24 networks are also present in ovpn server/client configurations ( IPv4 Remote network(s) )

        1 Reply Last reply Reply Quote 0
        • C
          cibiri
          last edited by Apr 30, 2021, 2:43 AM

          Hello,
          Did you find any solucion for this? I got the same silly error.

          Regards,

          Christian

          1 Reply Last reply Reply Quote 0
          • C
            cibiri
            last edited by cibiri Apr 30, 2021, 4:01 AM Apr 30, 2021, 3:25 AM

            Hello,
            I found the solution for this issue, you can do it manually:

            1. Dump the current ruleset into a file
              pfctl -sn > /var/tmp/tempfile

            2. Edit the file using the edit option in the dignostics menu
              /var/tmp/tempfile

            3. Import the whole ruleset again
              pfctl -Nf /var/tmp/tempfile

            Keep in mind this is overwritten for the others configurations that you made in the PfSense by GUI.

            For permantent changes, you will need to export a backup of the NAT area, edit the XML with the correct interface and import again.

            Regards,

            Christian

            D 1 Reply Last reply Apr 30, 2021, 3:41 PM Reply Quote 0
            • D
              DaddyGo @cibiri
              last edited by DaddyGo Apr 30, 2021, 3:41 PM Apr 30, 2021, 3:41 PM

              @cibiri said in 1:1 NAT to OpenVPN 2.5.0:

              Keep in mind this is overwritten for the others configurations that you made in the PfSense by GUI.

              Hi Chris,

              Well yes that's the tricky part, what happens later, do you always edit? 😉

              Cats bury it so they can't see it!
              (You know what I mean if you have a cat)

              1 Reply Last reply Reply Quote 0
              • V
                varyuhin.anton
                last edited by varyuhin.anton Apr 30, 2021, 5:03 PM Apr 30, 2021, 5:01 PM

                @cibiri yeah something similar

                here's the guide for manual editing config xml files

                and here's the bug page

                C 1 Reply Last reply Apr 30, 2021, 5:35 PM Reply Quote 0
                • C
                  cibiri @varyuhin.anton
                  last edited by Apr 30, 2021, 5:35 PM

                  @varyuhin-anton that's correct!
                  For now the process is very manual, but I least we have my Pfsense outbound NAT working, this issue affected our operations :(

                  We'll wait for the full fix.

                  A 1 Reply Last reply Nov 4, 2021, 10:20 PM Reply Quote 0
                  • A
                    acinoarevirn @cibiri
                    last edited by acinoarevirn Nov 4, 2021, 10:47 PM Nov 4, 2021, 10:20 PM

                    @cibiri Hi!

                    Can you post your config?

                    I'm trying to translate with the newest pfsense but the interface changed and it's not really working

                    When I configure my nat rule (10.0.64.0 first IP will translate to 192.168.0.0/18 (the overlap)) - my site 0 is 172.x and all my clients (15 of them) are 192.168.0.0/18 )

                    binat on openvpn inet from 192.168.0.0/18 to any -> 10.0.64.0/18
                    

                    I;ve also configured OPT1 but nothing.

                    But it's not working. Any other config somewhere I'm following this tutorial https://docs.netgate.com/pfsense/en/latest/recipes/openvpn-nat-subnets-conflict.html

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