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

    How to create a url alias?

    Scheduled Pinned Locked Moved Firewalling
    15 Posts 4 Posters 22.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.
    • M
      mudfish
      last edited by

      no. url alias only. entering http://www.anywebsite.com or just www.anywebsite.com results in that error.  ???

      1 Reply Last reply Reply Quote 0
      • M
        mudfish
        last edited by

        i found this thread

        http://forum.pfsense.org/index.php?topic=38720.0

        and i'm wondering if url alias is fixed?? on the latest pfsense version. ???

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          There is no problem with that.

          the alias type is host, not url.  ;)

          alias.png
          alias.png_thumb

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • M
            mudfish
            last edited by

            @marcelloc:

            There is no problem with that.

            the alias type is host, not url.  ;)

            there is an alias type url. :)

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              The alias type url downloads alias list from a url

              Sample:

              Http://192.168.1.1/mylist.php

              Mylist.php returns

              Www.facebook.com
              apps.facebook.com

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • M
                mudfish
                last edited by

                i will try alias by host type tomorrow as i am not on my server at the moment. i did not try that because as you can see from your screenshot that host entries by this type should be entered by their ip address not by its web address or fqdn name??? please correct me if i am wrong with that. thanks for the help  :)

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  Use alias=host and ip=fqdn.

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • C
                    Cino
                    last edited by

                    just food for thought… if you create a host or url alias(having it point to a list with domain names in it) doesn't pfsense just grab the first IP address it resolves and puts in in a table?

                    1 Reply Last reply Reply Quote 0
                    • marcellocM
                      marcelloc
                      last edited by

                      Yes, it will. Every apply or rules reload.

                      If dns changes you do not need to find old alias ip to replace.

                      But it will not work on sites from akamai.net for example.

                      Treinamentos de Elite: http://sys-squad.com

                      Help a community developer! ;D

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

                        It does take every IP that comes back though, so if you feed it www.facebook.com it only returns one IP, such as 69.171.228.14 - so that table would only have a single IP.

                        But if you give it something like www.google.com which returns 6 IPs at once, then all 6 would be in the table.

                        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
                        • M
                          mudfish
                          last edited by

                          alias by host type is really what i need and it works. thanks marcelloc  :)

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