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

Is it possible to change an alias dynamically?

Scheduled Pinned Locked Moved Firewalling
46 Posts 6 Posters 6.5k 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.
  • T
    Tobi
    last edited by Jul 19, 2022, 3:18 PM

    Hi,

    I have a rule for 2 networks. Both networks (IPv6) have dynamic network suffix via "track WAN Interface". This changes from time to time.
    Now I always have to go and manually change the networks in alias definition. It would be nice if this could be done automatically.

    S B 2 Replies Last reply Jul 19, 2022, 4:54 PM Reply Quote 1
    • S
      SteveITS Galactic Empire @Tobi
      last edited by Jul 19, 2022, 4:54 PM

      @tobi Can you use the built in "___ Net" network alias?

      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!

      T 1 Reply Last reply Jul 19, 2022, 5:15 PM Reply Quote 0
      • T
        Tobi @SteveITS
        last edited by Jul 19, 2022, 5:15 PM

        @steveits I'm not sure if I understand what do you mean with built in
        I mean this part

        19-07-_2022_19-10-04.jpg

        Do you means maybe this one?

        19-07-_2022_19-11-26.jpg

        R 1 Reply Last reply Jul 19, 2022, 5:25 PM Reply Quote 0
        • R
          rcoleman-netgate Netgate @Tobi
          last edited by Jul 19, 2022, 5:25 PM

          @tob that list is of known/created interfaces, not aliases.

          Ryan
          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
          Requesting firmware for your Netgate device? https://go.netgate.com
          Switching: Mikrotik, Netgear, Extreme
          Wireless: Aruba, Ubiquiti

          T 1 Reply Last reply Jul 19, 2022, 5:56 PM Reply Quote 0
          • T
            Tobi @rcoleman-netgate
            last edited by Jul 19, 2022, 5:56 PM

            @rcoleman-netgate OK and where I can find build in Network aliases?

            R S 2 Replies Last reply Jul 19, 2022, 6:17 PM Reply Quote 0
            • R
              rcoleman-netgate Netgate @Tobi
              last edited by Jul 19, 2022, 6:17 PM

              @tobi Firewall->Aliases

              3e0b542d-8efb-4e9b-ba23-717d0ef5786b-image.png

              Then you choose "Alias" in the drop menu and enter the Alias name in the text field next to it on the form.

              Ryan
              Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
              Requesting firmware for your Netgate device? https://go.netgate.com
              Switching: Mikrotik, Netgear, Extreme
              Wireless: Aruba, Ubiquiti

              1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @Tobi
                last edited by Jul 19, 2022, 6:19 PM

                @tobi "LAN5 Net" is to what I was referring.

                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 1
                • B
                  Bob.Dig LAYER 8 @Tobi
                  last edited by Bob.Dig Jul 19, 2022, 6:29 PM Jul 19, 2022, 6:26 PM

                  @tobi said in Is it possible to change an alias dynamically?:

                  It would be nice if this could be done automatically.

                  You can't. There is a lot to desire when it comes to dynamic IPv6 in pfSense.

                  One thing you can do is create an alias from a hostname which is set in a static mapping in the DHCPv6 Server in pfSense, similar to how it works with the DHCPv4 Server. That hostname, and with that, that alias you created, will be updated automatically.

                  T 1 Reply Last reply Jul 20, 2022, 7:51 AM Reply Quote 0
                  • T
                    Tobi @Bob.Dig
                    last edited by Jul 20, 2022, 7:51 AM

                    Thanks all for the answers.
                    I will try if I can achieve everything with the proposal of @SteveITS

                    B 1 Reply Last reply Jul 20, 2022, 8:18 AM Reply Quote 0
                    • B
                      Bob.Dig LAYER 8 @Tobi
                      last edited by Jul 20, 2022, 8:18 AM

                      @tobi Looking at your screenshot more closely, yes, just use the build in *_net for that, no need for aliases in the first place.

                      T 1 Reply Last reply Jul 21, 2022, 3:19 PM Reply Quote 0
                      • T
                        Tobi @Bob.Dig
                        last edited by Jul 21, 2022, 3:19 PM

                        @bob-dig Does not work unfortunately and I have absolutely no idea why at the moment.
                        As soon as I take out the aliases in the FW rules and enter the "lanX" networks, the communication is blocked.
                        Here an example for ICMP

                        1. Works great
                          21-07-_2022_17-09-52.jpg

                        2. Alias definition
                          21-07-_2022_17-10-15.jpg

                        3. Not work anymore
                          21-07-_2022_17-12-02.jpg
                          21-07-_2022_17-13-39.jpg

                        B 1 Reply Last reply Jul 21, 2022, 3:23 PM Reply Quote 0
                        • B
                          Bob.Dig LAYER 8 @Tobi
                          last edited by Jul 21, 2022, 3:23 PM

                          @tobi Show us your rule and what you want to achieve.

                          S T 2 Replies Last reply Jul 21, 2022, 3:31 PM Reply Quote 0
                          • S
                            SteveITS Galactic Empire @Bob.Dig
                            last edited by Jul 21, 2022, 3:31 PM

                            @bob-dig As I understand it, he's trying to create firewall rules for an IPv6 subnet that changes. I was thinking the "Net" interfaces would update with the new IPv6 subnet, though (sorry) I haven't tried that.

                            Ryan @rcoleman-netgate do you know at what point the "Net" interface definition updates if the assigned IPv6 changes? Is it not instant?

                            @Tobi Do you need to know the IPv6 subnet at the point of doing the rules? I mean, can you not just allow or block IPv6 on that interface? Or are you trying to allow one subnet but block another IPv6 subnet routed through it? Also your example was IPv4, though I'd have expected that to work based on your rule. The rule did allow something because it shows 350 bytes.

                            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!

                            B T 2 Replies Last reply Jul 21, 2022, 3:34 PM Reply Quote 0
                            • B
                              Bob.Dig LAYER 8 @SteveITS
                              last edited by Jul 21, 2022, 3:34 PM

                              @steveits said in Is it possible to change an alias dynamically?:

                              I was thinking the "Net" interfaces would update with the new IPv6 subnet, though (sorry) I haven't tried that.

                              They do or there is no IPv6 connectivity at all.

                              S 1 Reply Last reply Jul 21, 2022, 4:02 PM Reply Quote 0
                              • T
                                Tobi @Bob.Dig
                                last edited by Tobi Jul 21, 2022, 3:40 PM Jul 21, 2022, 3:35 PM

                                @bob-dig
                                21-07-_2022_17-34-44.jpg

                                @bob-dig said in Is it possible to change an alias dynamically?:

                                They do or there is no IPv6 connectivity at all.

                                Here is a ICMP response with my "Yellow_Network" Alias

                                "ping www.google.com

                                Ping wird ausgeführt für www.google.com [2a00:1450:4001:82a::2004] mit 32 Bytes Daten:
                                Antwort von 2a00:1450:4001:82a::2004: Zeit=7ms
                                Antwort von 2a00:1450:4001:82a::2004: Zeit=8ms
                                Antwort von 2a00:1450:4001:82a::2004: Zeit=7ms
                                Antwort von 2a00:1450:4001:82a::2004: Zeit=7ms"

                                B 1 Reply Last reply Jul 21, 2022, 3:40 PM Reply Quote 0
                                • T
                                  Tobi @SteveITS
                                  last edited by Jul 21, 2022, 3:38 PM

                                  @steveits said in Is it possible to change an alias dynamically?:

                                  The rule did allow something because it shows 350 bytes.

                                  Yes, because with the alias (Yellow_network ) ping works, both ipv4 and ipv6

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    Bob.Dig LAYER 8 @Tobi
                                    last edited by Jul 21, 2022, 3:40 PM

                                    @tobi Show us what is not working and what you are trying in great detail.

                                    T 1 Reply Last reply Jul 21, 2022, 3:45 PM Reply Quote 0
                                    • T
                                      Tobi @Bob.Dig
                                      last edited by Jul 21, 2022, 3:45 PM

                                      @bob-dig -
                                      I'm trying simple ping (ICMP)

                                      with "lan3 net"
                                      21-07-_2022_17-42-57.jpg

                                      it will not work. All packages are block.

                                      same rule but with my alias "Yellow_Network" all works great.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        SteveITS Galactic Empire @Bob.Dig
                                        last edited by Jul 21, 2022, 4:02 PM

                                        @bob-dig said in Is it possible to change an alias dynamically?:

                                        @steveits said in Is it possible to change an alias dynamically?:

                                        I was thinking the "Net" interfaces would update with the new IPv6 subnet, though (sorry) I haven't tried that.

                                        They do or there is no IPv6 connectivity at all.

                                        OK well when you write it out like that... :) That's why I suggested LAN3 Net but he's saying it doesn't work, which doesn't make a lot of sense to me.

                                        @Tobi are you sure it's not another rule blocking it? If you click the red X on the log line you'll get a popup like:

                                        "The rule that triggered this action is:
                                        @58(0) block drop in log quick on igb1 from bogonsv6:132925 to any label "block bogon IPv6 networks from WAN" ridentifier 11002"

                                        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!

                                        T 1 Reply Last reply Jul 21, 2022, 4:11 PM Reply Quote 0
                                        • T
                                          Tobi @SteveITS
                                          last edited by Tobi Jul 21, 2022, 4:14 PM Jul 21, 2022, 4:11 PM

                                          @steveits - This rule is not blocking the trafic. But pfSense don't see the source as part of "Lan3 net" -what is not true
                                          LAN3 192.168.4.10/24. My source is 192.168.4.15

                                          And blocking rule is at the end

                                          Red X means:

                                          "Die Regel, die diese Aktion ausgelöst hat, ist:

                                          @480(0) block drop in log quick on igb4 inet from <Yellow_Network:2> to any label "USER_RULE: Deny LAN3" ridentifier 1631830970"
                                          "

                                          S 1 Reply Last reply Jul 21, 2022, 4:25 PM Reply Quote 0
                                          8 out of 46
                                          • First post
                                            20/46
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received