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

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

Scheduled Pinned Locked Moved IPv6
12 Posts 4 Posters 917 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.
  • J
    johnpoz LAYER 8 Global Moderator @louis2
    last edited by Sep 7, 2023, 4:46 PM

    @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 Sep 7, 2023, 5:08 PM Reply Quote 0
    • L
      louis2 @johnpoz
      last edited by louis2 Sep 7, 2023, 5:13 PM Sep 7, 2023, 5:08 PM

      @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

      B 1 Reply Last reply Sep 7, 2023, 5:16 PM Reply Quote 0
      • B
        Bob.Dig LAYER 8 @louis2
        last edited by Bob.Dig Sep 7, 2023, 5:21 PM Sep 7, 2023, 5:16 PM

        @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
        • J
          JKnott @louis2
          last edited by Sep 7, 2023, 8:10 PM

          @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...

          J 1 Reply Last reply Sep 7, 2023, 9:48 PM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @JKnott
            last edited by Sep 7, 2023, 9:48 PM

            @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

            J 1 Reply Last reply Sep 8, 2023, 12:24 PM Reply Quote 0
            • J
              JKnott @johnpoz
              last edited by Sep 8, 2023, 12:24 PM

              @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...

              J 1 Reply Last reply Sep 8, 2023, 12:54 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @JKnott
                last edited by Sep 8, 2023, 12:54 PM

                @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

                J 2 Replies Last reply Sep 8, 2023, 6:54 PM Reply Quote 0
                • J
                  JKnott @johnpoz
                  last edited by Sep 8, 2023, 6:54 PM

                  @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
                  • J
                    JKnott @johnpoz
                    last edited by Sep 8, 2023, 7:56 PM

                    @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...

                    J 1 Reply Last reply Sep 8, 2023, 8:00 PM Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator @JKnott
                      last edited by johnpoz Sep 8, 2023, 8:04 PM Sep 8, 2023, 8:00 PM

                      @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
                      12 out of 12
                      • First post
                        12/12
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received