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

    small gateway bug after 23.01 upgrade?

    Routing and Multi WAN
    3
    10
    1.5k
    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.
    • JeGrJ
      JeGr LAYER 8 Moderator
      last edited by

      Hi,

      we updated a customer machine to 23.01 this morning and had a strange problem afterwards, that the customer reported everything fine but his VPN wasn't working as in "we can't reach the remote site, but the connection is up".

      Checked the OVPNC connection (it is configured as OpenVPN Client) and that seemed fine as before. Also the GW was showing up and reporting no loss. As we don't pull routes we have configured a few policy based rules with said VPN gateway. And that's where the strange "bug" popped up: all rules with the VPN gateway had that gateway written in "b/w font" - as in it wasn't a link with a popup anymore. Other GWs from MultiWAN etc. were fine. So just edited all rules that had that VPN GW and sure thing, when editing the rules, the gateway under advanced option was empty. I selected the VPN GW again and all started working fine.

      After checking again what changed, the only thing that catched my eye was the VPN GW name.

      • In 22.05 that name was: VDE_COMPANY_VPNV4
      • In 23.01 that name was: VDA_Company_VPNV4

      So it seems upper/lowercase naming of the interface assignment jumped into the fray(?) and "crashed" all policy rules with the gateway now in mixed upper-/lowercase instead of all CAPS.

      Don't know it that was a special thing in that config but perhaps there is some check there that is now case-sensitive that wasn't before? Just wanted to report that back.

      Cheers
      \jens

      Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

      If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

      1 Reply Last reply Reply Quote 1
      • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        That seems vaguely familiar but I thought we had addressed it a while back during 23.01 development, but maybe that particular path didn't get fixed up.

        You could rename the interface to all caps so the gateways would also match the case that way.

        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
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          This is the one I was thinking of:
          https://redmine.pfsense.org/issues/13739

          But that would have only been for interfaces without a description, not for gateway names. There must be some other issue lurking here yet.

          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
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            I was able to at least confirm the previous vs current behavior. I opened https://redmine.pfsense.org/issues/14057 to look into this.

            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!

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

              That was a fun one, it appears to be from one single line that had some logic flipped when it was converted to be compatible with PHP 8:

              diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc
              index b1d630378a..30f402de1a 100644
              --- a/src/etc/inc/util.inc
              +++ b/src/etc/inc/util.inc
              @@ -1538,7 +1538,7 @@ function get_configured_interface_with_descr(bool $with_disabled = false) : arra
                      $iflist = [];
                      foreach (config_get_path('interfaces', []) as $if => $if_detail) {
                              if ($with_disabled || isset($if_detail['enable'])) {
              -                       $iflist[$if] = array_get_path($if_detail, 'descr', strtoupper($if));
              +                       $iflist[$if] = strtoupper(array_get_path($if_detail, 'descr', $if));
                              }
                      }
              
              

              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!

              JeGrJ 1 Reply Last reply Reply Quote 1
              • JeGrJ
                JeGr LAYER 8 Moderator @jimp
                last edited by

                @jimp Argh no way - a one-liner and a PHP8 conversion no less? That's a mean one ๐Ÿ˜ƒ But thanks for tackling that so fast! As said, it was more of a small annoyance to edit the PBRs but it was up in no time, so why not. But yeah, didn't think about renaming the OPT interface to CAPS - that would've been faster ๐Ÿ˜

                But happy to weed out yet another little nuisance ๐Ÿ‘

                Cheers
                \jens

                Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

                If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                1 Reply Last reply Reply Quote 0
                • B
                  bcdouglas @jimp
                  last edited by bcdouglas

                  @jimp This seems like a pretty annoying and weird bug. Does a fix really have to wait until 23.05? Can we get it as a patch sooner? Frankly, I've given up on 23.01 due to weird IPv6 issues. I'm even on Netgate hardware, 6100.

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

                    @bcdouglas said in small gateway bug after 23.01 upgrade?:

                    @jimp This seems like a pretty annoying and weird bug. Does a fix really have to wait until 23.05? Can we get it as a patch sooner? Frankly, I've given up on 23.01 due to weird IPv6 issues. I'm even on Netgate hardware, 6100.

                    You can apply the patch any time. A copy is a few replies up or you can install the System Patches package and create an entry for 66b989e824042c0cf5e75b1cb245b0ae13548949 and fetch/apply it.

                    If we make a patch release before 23.05 this is almost certainly going to be included, but until/unless that happens, patching it in is the way to do.

                    You can also rename your interface to be all caps to work around it without patching anything.

                    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!

                    JeGrJ 1 Reply Last reply Reply Quote 3
                    • JeGrJ
                      JeGr LAYER 8 Moderator @jimp
                      last edited by

                      @jimp Applied the patch yesterday and had to change back all and every changed GW that was saved with lowercase back to uppercase. As manually created GWs can be lowercase, too and Interface names can have that, why not simply make it case insensitive to both work? That way one wouldn't have to switch back and forth between upper or lowercase? Made the whole setup break again :/

                      Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

                      If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

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

                        @jegr said in small gateway bug after 23.01 upgrade?:

                        @jimp Applied the patch yesterday and had to change back all and every changed GW that was saved with lowercase back to uppercase. As manually created GWs can be lowercase, too and Interface names can have that, why not simply make it case insensitive to both work? That way one wouldn't have to switch back and forth between upper or lowercase? Made the whole setup break again :/

                        That is a much more significant (and likely disruptive!) change than putting the automatic names back the way they should have been.

                        Manual entries would not have changed and wouldn't have had any issues (upper or lower), only fully dynamic entries were a problem.

                        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
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.