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

    Alias error

    Scheduled Pinned Locked Moved Firewalling
    27 Posts 7 Posters 1.4k 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.
    • C
      cjohnson @ahking19
      last edited by

      @ahking19

      No. Unfortunately not on this server, no.
      This is the first and only one on this box.

      I had considered some other hackery like possibly using a totally different box to see what alterations end up in the config.xml and/or adding them manually and loading them into another box etc etc........

      @johnpoz
      yes. that was something else that I've tried as well.
      see my reply just prior to you first entry into this thread that was directed towards patient0...

      Yes. I've tried different browsers and private tabs. I've also ensured that I have no extensions enabled.
      
      patient0P 1 Reply Last reply Reply Quote 0
      • patient0P
        patient0 @cjohnson
        last edited by patient0

        @cjohnson Can you create any other type of aliases? If yes, I'd try create one of another type, save it, edit and change to type host.

        Or if you got another pfSense instance create it/them there, export them (via Backup&Diag) and import only the aliases (Restore > Aliases).
        Important to note is that the aliases import replaces all existing alias with the once in the file. It does not merge with existing aliases!

        If you feel adventures (is it a PROD system?) and know vi you can edit the config XML directly using viconfig (see doc here) on the command line. This uses the vi editor to edit the config in-place.

        The structure is:

        <aliases>
        	<alias>
        		<name>testALIAS</name>
        		<type>host</type>
        		<address>10.200.0.210</address>
        		<descr><![CDATA[testDESCRIPTION]]></descr>
        		<detail><![CDATA[testHOSTIPdescription]]></detail>
        	</alias>
        </aliases>
        

        Beside: Is there something else out of the ordinary how you access the pfSense GUI? Via WAN, via a proxy, web caching server, ssh tunnel, VPN? What OS and language?

        C 1 Reply Last reply Reply Quote 0
        • C
          cjohnson @patient0
          last edited by cjohnson

          @patient0

          attempts to add a single port alias containing a single port definition fails with...

          The following input errors were detected:
          
          <bulletpointHERE>    is not a valid port or alias.
          

          URL type aliases behave the same way.

          yes, this is a prod box. i have two others that are not though.
          i'm going to reserve the vi route for a last resort. i'm about to try the create/export/import thing you've mentioned now.

          as far as the "out of the ordinary" item.... no. i'm trying this directly from a PC attached through a switch to one of the internal facing NICs.
          OS is (among others i've tried including windows 11) Mint 21.3 with english, US.

          C 1 Reply Last reply Reply Quote 0
          • C
            cjohnson @cjohnson
            last edited by cjohnson

            OK.This is strange.

            I can sucessfully use the "Import" button (which takes me to the "Bulk Import" page) on the main "Aliases" page to then create the alias with a range of IPs (using the "Aliases to Import" box on the subsequent page) how I want them.

            If I attempt to import an exported alias XML from another box where I've created the alias how I attempted to do so to begin with, it doesn't quite work correctly.

            1.png

            If I then attempt to edit what I have there....

            2.png

            Any attempts to populate one or more of the address boxes (left column) there then save it, I get a similar looking "is not a valid host address" error as before. There's a very slight difference this time though. If i populate all three of those "testX" rows that you see in that screenshot, then try to save it... the error shows like this

            3.png

            So, there's for sure something jacked up with the parsing of the data once it gets into the box.
            This rules out the "is my data getting munged before it even gets to the box" question.

            A 1 Reply Last reply Reply Quote 0
            • A
              Anry @cjohnson
              last edited by

              Hello.
              After updating the system to version 2.8.0-RELEASE (amd64)
              built on Thu May 22 2:12:00 EEST 2025
              FreeBSD 15.0-CURRENT
              a similar problem arose.
              Are there any solutions?

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @Anry
                last edited by johnpoz

                @Anry yeah use an actual valid FQDN or IP.. Like it says right there in the HINT in your screenshot.

                test1 is not a fqdn, something like test1.home.arpa or test.domain.tld would be a fqdn - this fqdn has to be resolvable by pfsense.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                A 1 Reply Last reply Reply Quote 0
                • A
                  Anry @johnpoz
                  last edited by

                  When trying to create a new alias

                  191bae4d-2656-4879-8daa-aa137eded74b-изображение.png

                  I receive this message

                  06486e52-abeb-4c71-b629-e24ac3643f03-изображение.png

                  The list of aliases now looks like this:

                  943f2dc2-2f46-4fb3-a21c-eed29df812de-изображение.png

                  The contents of aliases are not displayed.
                  But they should be.
                  When editing an existing alias, list items are not displayed

                  cb575d9c-7f50-4e70-a47a-5712990ae298-изображение.png

                  There is such an alias with a list of hosts in the configuration

                  6d834b82-7ca8-4905-bfb0-f11e04e8757b-изображение.png

                  patient0P 1 Reply Last reply Reply Quote 0
                  • A
                    Anry
                    last edited by

                    Hello.
                    Are there any recommendations on how to solve the problem that has arisen or do I need to reinstall the system and restore the configuration?

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @Anry
                      last edited by

                      @Anry

                      What does the errors here say?

                      error.jpg

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        Anry @johnpoz
                        last edited by

                        @johnpoz

                        I am attaching a screenshot.

                        667bd66c-7687-4228-937d-6742138acbd8-изображение.png

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @Anry
                          last edited by

                          @Anry well I would prob fix that - you have never renewed your gui cert? But that has nothing to do with the problem.

                          I am unable to duplicate your problem - but a complete reinstall seems like a sledge hammer to kill a fly.

                          I would export your aliases xml.. just so you have a copy of what you had.

                          Then delete them all.. And try from a clean slate for aliases.. Making sure after you delete them all that your export of xml is clean.

                          I even fired up my copy of 2.8 - and aliases working fine.

                          alias.jpg

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

                          GertjanG 1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan @johnpoz
                            last edited by Gertjan

                            @johnpoz
                            527cdb77-d025-48be-a126-397ec0403fda-image.png

                            are two individual IPs.

                            This looks like a IP "range" :

                            fb829e24-a00e-4639-9c02-18ec5a4556b5-image.png

                            From 10.100.6.4 to 10.100.66.24.

                            Rapid solution :
                            Enter them individually ( 😊 )

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            johnpozJ S 2 Replies Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator @Gertjan
                              last edited by

                              @Gertjan you wouldn't do a range like that, range would be like this.

                              range.jpg

                              Then it would create the individual entries on its own. Not sure what the issue is, but I am unable to duplicate it..

                              The only thing comes to mind is space in there? But I tried that putting a space in front and after the IP and still works fine.

                              My guess would be browser doing something with it it shouldn't be - but he says he tried different browsers.

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.8, 24.11

                              1 Reply Last reply Reply Quote 0
                              • A
                                Anry
                                last edited by

                                I have two more systems where pfsense is used. On all three systems everything worked without problems. After updating to the latest version, two systems work without errors and only one has a problem.
                                I compared the list and sizes of files on the pfsense website.
                                I found no differences. Perhaps there are other places where I could not look and check. Now I am trying to figure out the problem. It would be interesting to hear from the developer where to look. After all, it turns out that the IP address verification and conversion template does not work. I think that this is the same function that works when entering a new list and when displaying an existing one.
                                Tell me in which PHP file is this described?

                                GertjanG 1 Reply Last reply Reply Quote 0
                                • GertjanG
                                  Gertjan @Anry
                                  last edited by

                                  @Anry

                                  If all your pfSense boxes use the same version, then PHP is also the same.
                                  Actually, identical pfSense version contain the same 'binaries' (PHP, etc).
                                  If it works for one box, it should work for the other. And I know, this is not very helpful ...

                                  No "help me" PM's please. Use the forum, the community will thank you.
                                  Edit : and where are the logs ??

                                  1 Reply Last reply Reply Quote 0
                                  • patient0P
                                    patient0 @Anry
                                    last edited by patient0

                                    @Anry said in Alias error:

                                    The contents of aliases are not displayed.

                                    One of your host alias got a description in Russian. Can you try remove it. It shouldn't matter at all but just trying to find what's is different.

                                    I tried with a 2.8.0 clean install and with 2.8.0 upgrade from 2.7.2 and on Linux with Firefox and Chromium. No luck yet.

                                    Any browser extensions installed?

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      SteveITS Galactic Empire @Gertjan
                                      last edited by

                                      @Gertjan said in Alias error:

                                      This looks like a IP "range" :

                                      That's how multiple IPs are listed in the xml file. (I had to look)

                                      Putting in my "programmer hat" I would guess there is some other alias or entry in the config file that is invalid and causing problems. Non-standard characters, maybe. Maybe, drag/drop the file into a browser window or XML parser, since at least Firefox will read/display the XML.

                                      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!

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        Anry
                                        last edited by

                                        In general, as my friend said, seven troubles - one reset. The situation was corrected by reinstalling the system and restoring the configuration. This can be written down as a solution to the problem.

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