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

Firewall rules for IPV6 track interface.

Scheduled Pinned Locked Moved IPv6
19 Posts 4 Posters 1.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.
  • B
    bassopt
    last edited by Aug 1, 2022, 6:09 PM

    Hi.
    First of all i'm completely new to ipv6 and i'm trying to learn a bit here.

    My isp provides me a /56 prefix so I went to pfsense configured as a DHCP6 and Track interface ony my LAN interface o WAN.
    As for RA set it to managed and set a DHCP sever from ::1000 to ::2000
    Everything is working fine except for the fact that all the devices I have behing the lan interface are completely exposed and accessible on IPV6 address but firwalled on IPV4 execpt for the few ports i really needed to open on/nat forward on IPV4.
    I know nat doesn't exist on IPV6 so how do i secure my devices behind IPV6?
    I have a few virtual machines running docker and other services i don't want to expose to the world!! do I need to configure a firewall on each of them? ( this is quite a pain..) or there any way to do it on pfsense?
    I've searched everywhere for info of ipv6 firewall rules and there's verry little information on it.

    Thanks... I'm really lost here!

    Best regards.
    J.O.

    B 2 Replies Last reply Aug 1, 2022, 6:17 PM Reply Quote 0
    • B
      Bob.Dig LAYER 8 @bassopt
      last edited by Bob.Dig Aug 1, 2022, 6:23 PM Aug 1, 2022, 6:17 PM

      @bassopt said in Firewall rules for IPV6 track interface.:

      I'm really lost here!

      Looks like it... so what have you done? pfsense is OOTB secure... restore defaults I guess.

      B 1 Reply Last reply Aug 1, 2022, 6:26 PM Reply Quote 0
      • B
        bassopt @Bob.Dig
        last edited by bassopt Aug 1, 2022, 6:26 PM Aug 1, 2022, 6:26 PM

        @bob-dig said in Firewall rules for IPV6 track interface.:

        OOTB

        I've done exactly what i said above nothing else.

        Interfaces --> WAN --> DHCP6 Client Configuration --> DHCPv6 Prefix Delegation size="56" --> Save
        Interfaces --> LAN --> General Configuration --> IPv6 Configuration Type="Track Interface"
        Interfaces --> LAN --> Track IPv6 Interface --> IPv6 Interface="WAN"
        Interfaces --> LAN --> Track IPv6 Interface --> IPv6 Prefix ID="0" --> Save
        Services --> DHCPv6 Server & RA --> Router Advertisements --> Router mode="Managed" --> Save
        Services --> DHCPv6 Server & RA --> DHCPv6 Server --> "Enable DHCPv6 server on interface LAN"
        Range from="::1000"
        Range to="::2000" -- > Save

        Firewall rules for the lan interface are the ones defined by default by pfsense for LAN interface (pass all traffic for both ipv4 and ipv6)

        1 Reply Last reply Reply Quote 0
        • B
          Bob.Dig LAYER 8 @bassopt
          last edited by Aug 1, 2022, 6:28 PM

          @bassopt said in Firewall rules for IPV6 track interface.:

          Everything is working fine except for the fact that all the devices I have behing the lan interface are completely exposed and accessible on IPV6 address but firwalled on IPV4 execpt for the few ports i really needed to open on/nat forward on IPV4.

          So how do you came up with this, how have you checked this.

          B 1 Reply Last reply Aug 1, 2022, 6:34 PM Reply Quote 0
          • B
            bassopt @Bob.Dig
            last edited by Aug 1, 2022, 6:34 PM

            @bob-dig said in Firewall rules for IPV6 track interface.:

            So how do you came up with this, how have you checked this.

            Because I have a vps running on vultr and decided to ssh into the ipv6 address assigned to one of my docker VMs. And voilá… instant access. If I do it to the (global) ipv4 address it’s blocked.

            B S 2 Replies Last reply Aug 1, 2022, 6:38 PM Reply Quote 0
            • B
              Bob.Dig LAYER 8 @bassopt
              last edited by Bob.Dig Aug 1, 2022, 6:39 PM Aug 1, 2022, 6:38 PM

              @bassopt So then show your WAN rules, you have to open ports for IPv6 too, it is not open by default.

              B 1 Reply Last reply Aug 1, 2022, 6:44 PM Reply Quote 0
              • B
                bassopt @Bob.Dig
                last edited by bassopt Aug 1, 2022, 6:45 PM Aug 1, 2022, 6:44 PM

                @bob-dig

                I have zero rules on the wan interface assigned for ipv6 only ipv4.
                I just configured ipv6 today.

                It’s as if the track interface from wan to lan, ignores completely the wan rules and only uses the lan ones. That’s why everything is exposed.

                Note that my wan interface doesn’t even has have an ipv6 address ( that’s how my isp works apparently ) just a ff80: link local address ..

                B 1 Reply Last reply Aug 1, 2022, 6:48 PM Reply Quote 0
                • B
                  Bob.Dig LAYER 8 @bassopt
                  last edited by Aug 1, 2022, 6:48 PM

                  @bassopt said in Firewall rules for IPV6 track interface.:

                  That’s why everything is exposed.

                  No, exposed is only your missing knowledge about this. But without screens it is hard to say what is wrong with your setup.

                  B 1 Reply Last reply Aug 1, 2022, 7:03 PM Reply Quote 0
                  • B
                    bassopt @Bob.Dig
                    last edited by Aug 1, 2022, 7:03 PM

                    @bob-dig

                    Here.

                    alt text

                    alt text

                    alt text

                    alt text

                    alt text

                    alt text

                    alt text

                    I also have NAT

                    B 1 Reply Last reply Aug 1, 2022, 7:34 PM Reply Quote 0
                    • B
                      Bob.Dig LAYER 8 @bassopt
                      last edited by Bob.Dig Aug 1, 2022, 7:35 PM Aug 1, 2022, 7:34 PM

                      @bassopt So this looks ok.
                      I did a quick test from my vps and everything is closed here.

                      B 2 Replies Last reply Aug 1, 2022, 8:16 PM Reply Quote 0
                      • B
                        bassopt @Bob.Dig
                        last edited by Aug 1, 2022, 8:16 PM

                        @bob-dig

                        Thanks! No idea why this happening…

                        1 Reply Last reply Reply Quote 0
                        • B
                          bassopt @Bob.Dig
                          last edited by Aug 1, 2022, 9:12 PM

                          @bob-dig btw are you using pfsense+ or community? I’ll try to reinstall pfsense tomorrow and restore Di figs from a backup and see if anything changes.

                          1 Reply Last reply Reply Quote 0
                          • B
                            bassopt
                            last edited by Aug 3, 2022, 2:21 PM

                            Any other input in this? I’ve reinstalled pfsense+ and pfsense community edition and problem still exists.

                            1 Reply Last reply Reply Quote 0
                            • S
                              SteveITS Galactic Empire @bassopt
                              last edited by Aug 3, 2022, 2:42 PM

                              @bassopt said in Firewall rules for IPV6 track interface.:

                              ssh into the ipv6 address assigned to one of my docker VMs. And voilá… instant access

                              Are you connecting from another PC on your LAN? (which wouldn't go through the router...)

                              In theory you can add a rule on WAN to block all IPv6 but the default block rule should be blocking everything inbound.

                              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 1 Reply Last reply Aug 3, 2022, 3:18 PM Reply Quote 0
                              • B
                                bassopt @SteveITS
                                last edited by Aug 3, 2022, 3:18 PM

                                @steveits no. I’m accessing from a vps outside my lan. That’s why something doesn’t add up. I know I could add a firewall rule if I wanted to ssh into vm but I don’t. Still all my lan machines are completely exposed when the get a global address from pfsense with no passing rules whatsoever.

                                B 1 Reply Last reply Aug 3, 2022, 3:58 PM Reply Quote 0
                                • B
                                  bassopt @bassopt
                                  last edited by bassopt Aug 3, 2022, 3:58 PM Aug 3, 2022, 3:58 PM

                                  Found the issue.

                                  PFBlockerNG .... uninstalled it and problem is solved. No clue what it might be doing but whatever !!!

                                  T 1 Reply Last reply Aug 3, 2022, 5:40 PM Reply Quote 0
                                  • T
                                    the other @bassopt
                                    last edited by Aug 3, 2022, 5:40 PM

                                    @bassopt hey there, good to know you solved it.
                                    Just out of interest, did you use pfblockerng at all, meaning, have you configured something regarding ip whitelists or geoIP?
                                    Some existing floating rules might then have been the issue...
                                    Just having pfblockerng installed without any settings active and aliase or rules created shouldn't cause that...
                                    Or Am I wrong assuming that (*looking at the more experienced people here)
                                    :)

                                    the other

                                    pure amateur home user, no business or professional background
                                    please excuse poor english skills and typpoz :)

                                    S 1 Reply Last reply Aug 3, 2022, 5:58 PM Reply Quote 0
                                    • S
                                      SteveITS Galactic Empire @the other
                                      last edited by Aug 3, 2022, 5:58 PM

                                      @the-other pfBlocker can set up allow or block rules, or aliases, or DNSBL. By itself, without any configuration, it basically does nothing. Any rules it creates would normally be on the LAN and/or WAN rule pages.

                                      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 Aug 3, 2022, 7:28 PM Reply Quote 0
                                      • T
                                        the other @SteveITS
                                        last edited by the other Aug 3, 2022, 7:29 PM Aug 3, 2022, 7:28 PM

                                        @steveits
                                        Hey there and thanks for your reply.
                                        That is what I thought.
                                        So, there must have been some rule responsible for this issue. Since the Screenshots of wan and lan did not show any such rule, I figured there must have been other rules...
                                        Just uninstalling pfblockerng solving the problem seems strange otherwise.
                                        Just trying to understand this issue.

                                        the other

                                        pure amateur home user, no business or professional background
                                        please excuse poor english skills and typpoz :)

                                        1 Reply Last reply Reply Quote 0
                                        19 out of 19
                                        • First post
                                          19/19
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                          This community forum collects and processes your personal information.
                                          consent.not_received