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

    How to block/allow traffic send FROM one specific IPV6-computer !!??

    IPv6
    4
    12
    906
    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.
    • L
      louis2
      last edited by

      Now and then I want to allow or block certain traffic starting at a certain computer. In case of IPV4 that is no problem, just use its IPV4-address. However I really have no idea how to do this in case of IPV6.

      As far as my knowledge goes, I can fix an IPV6 address by either defining the address on the computers NIC or using the computers DUID. In that way I fix the machines primarily IPV6-address, however NOT its temporary IPV6-address. So:

      • defining a rule based on the primarily IPV6-address will not work (since the temporary address is used and
      • filtering on the temporary address is not possible since that address in not known and also changing all the time

      In some cases it is probably possible to define the NIC in such a way that there wil not be an Temporary IP, here a description related to windows11
      https://learn.microsoft.com/en-us/answers/questions/1195611/windows-11-how-to-permanently-disable-temporary-ip

      However:

      • I doubt if it is possible to do that on other computer types and ^applications^
      • It is complicated
      • and it is only possible if you are the manager of that computer !
      • defining an extra vlan for that single computer is ... radical .... and only possible if it is connected via fixed UTP

      I hope, but are not even 100% sure I covered filtering all outgoing traffic, this way (like traffic by pfSense provides services)

      So:

      • I would strongly prefer to use the computer its level2 mac-address as part of the firewall rule !!!!! (pfSense does not support 😖 )

      I think that:

      • (V)LAN local traffic and related Link-Local is no issue, since it is .... local
      • incoming traffic is no issue since traffic starting elsewhere (other VLAN or internet) will always use the ^published^ the device its primary IPV6-address as defined on the device itself or assigned using the DUID

      So big question is how to keep such a single ^IPV6-computer^ under control?

      Louis

      Bob.DigB johnpozJ JKnottJ 3 Replies Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @louis2
        last edited by Bob.Dig

        @louis2 said in How to block/allow traffic send FROM one specific IPV6-computer !!??:

        and only possible if it is connected via fixed UTP

        What?

        Have you looked at this? I never tried it though and it looks like a very manual process.

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

          @louis2 said in How to block/allow traffic send FROM one specific IPV6-computer !!??:

          I would strongly prefer to use the computer its level2 mac-address as part of the firewall rule !!!!! (pfSense does not support

          As mentioned by @Bob-Dig pfsense does now support mac based rules..

          But yeah you have run into one of one of the things with IPv6 that can make firewall rules more complicated. Another solution is to put devices that you want to control on their own vlan, so now you control the rules not based on source. So it doesn't matter what mac or IP that is used for source.. And rules are based on destination or port, or destination and port, protocol, etc.

          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.7.2, 24.11

          L 1 Reply Last reply Reply Quote 0
          • L
            louis2 @johnpoz
            last edited by louis2

            @johnpoz

            Yep I already mentioned the option of a separate vlan. However that has a lot of disadvantages, among them:

            • extra vlan and rules (can be mitigated using a interface group)
            • separate UTP access point, wifi is no option of course

            @Bob-Dig

            • I did read some, IMHO rather vague things about mac filter support ....
            • No Idea if that function is all ready "full blown" implemented

            What ever at this moment I am using 2.7 community edition. As private user I could upgrade to the ^professional branch^, I think I all ready have that license, but I hesitate because:

            • the CE-development branch used to be the most advanced / the newest branch
            • and I am not 100% sure that I can go back from ^professional branch^ to ^CE-branch^ in the future

            But:

            • I like the boot / snapshot function
            • this "mac-function^ (if it is really working yet)
            • and I noticed that development seems to be switched from CE-first to ^professional branch^ first (at least that is my feeling)

            Oh ja and I forgot to mention one advantage of using a mac based rule. When using the mac-address I can leave the Temporary IPV6 address as it is, which is not only easier, but also more secure and private friendly

            Bob.DigB 1 Reply Last reply Reply Quote 0
            • Bob.DigB
              Bob.Dig LAYER 8 @louis2
              last edited by Bob.Dig

              @louis2 said in How to block/allow traffic send FROM one specific IPV6-computer !!??:

              • this "mac-function^ (if it is really working yet)

              I just tried it and can say: It does work. I blocked any MAC address other than my machine for IPv6 and it does it.
              But also you can mix Layer 2 and 3 in this rules... Will have to look closer how this all works out.

              Capture.PNG

              1 Reply Last reply Reply Quote 0
              • JKnottJ
                JKnott @louis2
                last edited by

                @louis2 said in How to block/allow traffic send FROM one specific IPV6-computer !!??:

                So big question is how to keep such a single ^IPV6-computer^ under control?

                Since, with SLAAC, a computer can have several addresses, which change daily, about the only way is to filter on the MAC address, but pfSense doesn't support that, though I have heard it's in the works.

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

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

                  @JKnott said in How to block/allow traffic send FROM one specific IPV6-computer !!??:

                  though I have heard it's in the works.

                  Been live for a while..

                  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.7.2, 24.11

                  JKnottJ 1 Reply Last reply Reply Quote 0
                  • JKnottJ
                    JKnott @johnpoz
                    last edited by

                    @johnpoz said in How to block/allow traffic send FROM one specific IPV6-computer !!??:

                    though I have heard it's in the works.

                    Been live for a while..

                    Where is it? I just checked the firewall adding a rule and didn't see anything about MAC addresses. I'm on 2.7.0.

                    PfSense running on Qotom mini PC
                    i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                    UniFi AC-Lite access point

                    I haven't lost my mind. It's around here...somewhere...

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

                      @JKnott you have to enable it

                      https://docs.netgate.com/pfsense/en/latest/firewall/ethernet-rules.html#enabling-ethernet-rules

                      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.7.2, 24.11

                      JKnottJ 2 Replies Last reply Reply Quote 0
                      • JKnottJ
                        JKnott @johnpoz
                        last edited by

                        @johnpoz

                        Tnx. I'll have to look into it.

                        I wonder how many will try to filter incoming traffic by MAC. 😉
                        I knew one guy who thought he could, until I set him straight. He made that mistake in a presentation on firewalls, at the local Linux user group.

                        PfSense running on Qotom mini PC
                        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                        UniFi AC-Lite access point

                        I haven't lost my mind. It's around here...somewhere...

                        1 Reply Last reply Reply Quote 0
                        • JKnottJ
                          JKnott @johnpoz
                          last edited by

                          @johnpoz

                          To enable Ethernet rules:

                          Navigate to System > Advanced, Firewall & NAT tab
                          Locate the Advanced Options section
                          Check Enable Ethernet Filtering <--- This doesn't seem to be there. Is it in 2.7.0?
                          Click Save

                          PfSense running on Qotom mini PC
                          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                          UniFi AC-Lite access point

                          I haven't lost my mind. It's around here...somewhere...

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

                            @JKnott

                            https://docs.netgate.com/pfsense/en/latest/firewall/ethernet-rules.html#ethernet-layer-2-rules
                            pfSense® Plus software versions 23.05 and later include support for rule-based pass/block filtering of packets based on Ethernet (Layer 2) header attributes.

                            If you want to play with it, get the FREE + home license..

                            https://shop.netgate.com/products/pfsense-software-subscription

                            plus2.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.7.2, 24.11

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