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

    Ip6 mac address leak prevention?

    Scheduled Pinned Locked Moved IPv6
    10 Posts 7 Posters 2.7k 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
      jpp
      last edited by

      I've got a 2.2 Release system talking to a Comcast 100mbit WAN.  Comcast has IP6 support and it seems to work fine using interface tracking on the LAN side once I disabled the over zealous bogon blocking.  However, I noticed that pfSense assigns the client mac address as the local part of the IP6 address.  I'd rather not have the mac addresses of specific clients leaking out onto the net - is there a way around this that I'm missing?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        @jpp:

        Comcast has IP6 support and it seems to work fine using interface tracking on the LAN side once I disabled the over zealous bogon blocking.

        I really would appreciate if you filed a bug, documented why the darned 8000::/1 needs to go. Because devs think it's just perfectly fine there: https://redmine.pfsense.org/issues/3214

        As for the rest, unless you are using DHCPv6, pfSense does not really assign anything. Any settings to use/prefer temporary IPv6 addresses need to be done on clients.

        1 Reply Last reply Reply Quote 0
        • H
          hda
          last edited by

          @jpp:

          …
          is there a way around this that I'm missing?
          ...

          Conceptually IPv6 is a public affair. And you can use privacy extensions.

          1 Reply Last reply Reply Quote 0
          • demD
            dem
            last edited by

            All of my recent Mac OS X and iOS devices appear to follow RFC 4941 and create addresses with random host portions to use for outgoing traffic. You should see if whatever you're using has the same capability.

            @doktornotor:

            As for the rest, unless you are using DHCPv6, pfSense does not really assign anything.

            I think when using interface tracking DHCPv6 is enabled whether you want it or not, but of course it won't assign an address with a MAC-based host portion.

            1 Reply Last reply Reply Quote 0
            • MikeV7896M
              MikeV7896
              last edited by

              @Dave:

              @doktornotor:

              As for the rest, unless you are using DHCPv6, pfSense does not really assign anything.

              I think when using interface tracking DHCPv6 is enabled whether you want it or not, but of course it won't assign an address with a MAC-based host portion.

              Unfortunately, this isn't true. pfSense will only let you enable DHCPv6 if you have one or more internal interfaces with static IPv6, and only for those interfaces with a static address. Otherwise it's all unmanaged/SLAAC for addresses.

              Now, if you had set up an interface with a static IPv6 address and enabled DHCPv6, then changed the interface so it's not static but don't disable DHCPv6 first, it did used to keep DHCPv6 running so it would continue to function. Not sure if it still does though.

              There is a feature request asking for DHCPv6 to list interfaces that are configured to track interface.

              The S in IOT stands for Security

              1 Reply Last reply Reply Quote 0
              • demD
                dem
                last edited by

                Looking at the code it might be a special case for tracking a 6RD or DHCP-PD WAN interface (I'm using 6RD), but when I first enabled track interface my Solaris 11.1 box promptly fetched a DHCPv6 address from pfSense. It even showed up in "Status->DHCPv6 Leases". I had to switch to a static LAN address to shut DHCPv6 off. My IPv4 WAN address is static so this shouldn't be a problem.

                1 Reply Last reply Reply Quote 0
                • R
                  razzfazz
                  last edited by

                  @virgiliomi:

                  Unfortunately, this isn't true. pfSense will only let you enable DHCPv6 if you have one or more internal interfaces with static IPv6, and only for those interfaces with a static address. Otherwise it's all unmanaged/SLAAC for addresses.

                  No, he is actually correct; "track interface" does enable a DHCP6 server on that interface. You'll see a process like this:

                  
                  /usr/local/sbin/dhcpd -6 -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid em0 em1
                  
                  

                  Note that this is actually explained in the description of the bug report you referenced as well. The real problem is that the web interface for some reason doesn't allow you to configure it, so there's  no way to change the settings.

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

                    @doktornotor:

                    I really would appreciate if you filed a bug, documented why the darned 8000::/1 needs to go. Because devs think it's just perfectly fine there: https://redmine.pfsense.org/issues/3214

                    It is perfectly fine there. The problem is #3395 regressed and has been fixed (again…with a new comment to not move the thing).

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

                      @razzfazz:

                      The real problem is that the web interface for some reason doesn't allow you to configure it, so there's  no way to change the settings.

                      It's something that's never gotten around to being done in a configurable manner. It's high on the list of things that aggravate me, though being a non-regression, going to be a little bit til I get back to that (post-2.2.1).

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

                        @jpp:

                        However, I noticed that pfSense assigns the client mac address as the local part of the IP6 address.

                        No, your clients are doing that themselves. They should be using privacy addressing, so the v6 IP with the MAC in it is assigned, but not actually used for Internet traffic. Check on privacy addressing with your client OS(es) of choice. It's on by default in every recent mainstream OS (Windows, Linux, OS X, iOS, BSDs, etc.).

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