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

Need some instructions for getting started with IPv6

Scheduled Pinned Locked Moved IPv6
51 Posts 6 Posters 7.8k 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.
  • U
    Ulysses_
    last edited by Ulysses_ Dec 19, 2019, 2:39 PM Dec 19, 2019, 2:32 PM

    Followed some instructions on the internet to get started with IPv6 but haven't got much luck so far. Starting all over now, with a freshly installed pfsense. WAN interface has received both IPv4 and IPv6 IP's. Ubuntu is correctly configured to work with IPv6 (works with site https://test-ipv6.com/ if connected directly through a modem/router). Now how do we add pfsense in the middle?

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Gertjan Dec 19, 2019, 2:39 PM Dec 19, 2019, 2:39 PM

      Hi,

      One of the first questions back to you :
      How do you obtain your "IPv6 stuff" from your ISP ?
      Normally .... as in the IPv4 world, a page/paper/other doc states how to set up your IPv6.
      Related to that : what's in front of pfSense ? Another router ? A modem ?

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      U 1 Reply Last reply Dec 19, 2019, 2:42 PM Reply Quote 0
      • U
        Ulysses_ @Gertjan
        last edited by Dec 19, 2019, 2:42 PM

        All pfsense defaults are used. The WAN interface gets IP's by DHCP and DHCPv6. It gets them from a ADSL modem/router. The LAN interface has a static IP and the DHCP server is running giving ubuntu on the LAN side an IPv4 IP.

        J 1 Reply Last reply Dec 19, 2019, 3:39 PM Reply Quote 0
        • A
          awebster
          last edited by Dec 19, 2019, 2:46 PM

          If your ISP is only providing you with a single /64 and isn't providing you with (or a way to get) a prefix, like a /56, its not going to work.
          Documentation on how to set it up can be found here: https://docs.netgate.com/pfsense/en/latest/book/interfaces/ipv6-wan-types.html

          –A.

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Dec 19, 2019, 2:47 PM

            @Ulysses_ said in Need some instructions for getting started with IPv6:

            It gets them from a ADSL modem/router.

            So pfsense wan IP is rfc1918? Your device in front of pfsense is doing nat?

            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

            U 1 Reply Last reply Dec 19, 2019, 4:51 PM Reply Quote 0
            • J
              JKnott @Ulysses_
              last edited by Dec 19, 2019, 3:39 PM

              @Ulysses_ said in Need some instructions for getting started with IPv6:

              All pfsense defaults are used. The WAN interface gets IP's by DHCP and DHCPv6. It gets them from a ADSL modem/router. The LAN interface has a static IP and the DHCP server is running giving ubuntu on the LAN side an IPv4 IP.

              The usual way to provide IPv6 for residential, small business customers is through DHCPv6-PD. The PD stands for prefix delegation. They will also, by default, have the modem in gateway mode. You want it in bridge or bypass mode. In gateway mode, you will likely have only a single /64 prefxi. In bridge mode, you can have as large a prefix as the ISP will provide. I have a /56, which gives me 256 /64s. So, if you're getting RFC 1918 addresses, as mentioned above, your modem is in gateway mode. Once you're in bridge mode, we can provide further advice.

              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
              • U
                Ulysses_ @johnpoz
                last edited by Dec 19, 2019, 4:51 PM

                @johnpoz said in Need some instructions for getting started with IPv6:
                So pfsense wan IP is rfc1918? Your device in front of pfsense is doing nat?

                This is what pfsense gets:

                pfsense IPs.gif

                This is what ubuntu gets connected directly to the ADSL modem/router:

                ubuntu IPs directly.gif

                This is what https://test-ipv6.com/ sees:

                Your IPv6 address on the public Internet appears to be 2a02:587:220d:8b00:bafb:6402:b954:9ae5

                Can pfsense work around this situation if someone does not want to mess with their ADSL modem/router because the support for it by the ISP is not as good as pfsense's? In other words, how do I do IPv4-style NAT with IPv6?

                J U 2 Replies Last reply Dec 19, 2019, 5:00 PM Reply Quote 0
                • J
                  JKnott @Ulysses_
                  last edited by Dec 19, 2019, 5:00 PM

                  @Ulysses_ said in Need some instructions for getting started with IPv6:

                  So pfsense wan IP is rfc1918? Your device in front of pfsense is doing nat?
                  This is what pfsense gets:

                  You're definitely in gateway mode, which is why you have the RFC 1918 address for IPv4. In gateway mode, only devices that are connected directly to the modem will gen an IPv6 address. So, while pfSense gets one, no device on the LAN side will.

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

                  U 1 Reply Last reply Dec 19, 2019, 5:04 PM Reply Quote 0
                  • U
                    Ulysses_ @JKnott
                    last edited by Dec 19, 2019, 5:04 PM

                    Can't pfsense give devices on the LAN some different IPv6 addresses and translate them to its own, ie do NAT in IPv6?

                    J 1 Reply Last reply Dec 19, 2019, 5:10 PM Reply Quote 0
                    • J
                      JKnott @Ulysses_
                      last edited by Dec 19, 2019, 5:10 PM

                      @Ulysses_

                      Yes, it can, but that's an incredibly dumb thing to do. NAT was created to get around the IPv4 address shortage, but breaks some things in the process. There is absolutely no need for it, with the unbelievably huge IPv6 address space. A single /64 contains as many addresses as the entire IPv4 address space squared!

                      Why don't you want to use bridge mode?

                      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
                      • U
                        Ulysses_
                        last edited by Ulysses_ Dec 19, 2019, 5:23 PM Dec 19, 2019, 5:20 PM

                        Because the support for that modem/router by the ISP is not as good as pfsense's here and if anything goes wrong I will be stuck offline and unable to ask you guys or research, even the telephone might not work to call the ISP. What problems would NAT create in our context?

                        J 1 Reply Last reply Dec 19, 2019, 5:29 PM Reply Quote 0
                        • J
                          JKnott @Ulysses_
                          last edited by Dec 19, 2019, 5:29 PM

                          @Ulysses_

                          Well, on IPv4, you just get another layer of it, so either way you have the same problems. For example, with NAT, VoIP and some games require use of an STUN server, just so that the app knows the real world IP address. With IPSec, NAT breaks authentication headers, which are used to verify the packet hasn't been tampered with. There are other issues. On IPv6, with that modem in gateway mode, you are guaranteeing pfSense cannot properly provide IPv6 to your LAN.

                          Also, pfSense is likely a much better firewall than what's in your modem. You don't need the one in the modem. As for your modem, call your ISP to ask how to enable bridge or pass through mode for the modem. Lots of other people have a similar setup and the ISP should be able to advise you. Also, the configuration for the Internet connection should have no effect on that modem providing phone or TV service. They are completely independent services that simply happen to share the same box.

                          People's minds have been poisoned by NAT, so they now no longer how to properly do things with the Internet. This is just one example.

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

                          U 1 Reply Last reply Dec 19, 2019, 6:10 PM Reply Quote 0
                          • U
                            Ulysses_ @JKnott
                            last edited by Dec 19, 2019, 6:10 PM

                            Once in bridged mode, can ordinary devices still connect to the modem directly without too much configuration?

                            J 1 Reply Last reply Dec 19, 2019, 6:17 PM Reply Quote 0
                            • J
                              JKnott @Ulysses_
                              last edited by Dec 19, 2019, 6:17 PM

                              @Ulysses_

                              I assume you're referring to computers and such. Yes, you can connect one device directly to the modem (with mine, I can connect 2) and it will work. For more, on a LAN, you'd use pfSense in place of the router in the modem. It will still provide NAT for IPv4, nothing you can do about that, but on IPv6, you can have one or more (V)LANs, each providing a /64. Devices connected with then have one or more global addresses. With SLAAC and privacy addresses, each device will have 9 after a week.

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

                              U 1 Reply Last reply Dec 19, 2019, 6:32 PM Reply Quote 0
                              • U
                                Ulysses_ @JKnott
                                last edited by Ulysses_ Dec 19, 2019, 6:38 PM Dec 19, 2019, 6:32 PM

                                The wifi will not work, will it. I would miss accessing the internet from my smartphone using that. Also pfsense is used in a VM in my main computer so to use several devices at the same time some more hardware would be needed (nic's). STUN doesn't sound like I'd ever need it.

                                J 1 Reply Last reply Dec 19, 2019, 6:39 PM Reply Quote 0
                                • J
                                  JKnott @Ulysses_
                                  last edited by Dec 19, 2019, 6:39 PM

                                  @Ulysses_

                                  The modem's WiFi probably won't work. If it did, it would be entirely outside of pfSense. However, there's nothing to stop you from having your own access point. You can get dedicated APs or just use an old router as an AP. I have a separate AP, which uses power over Ethernet. This means I can place it in the best place, rather than what's handy for installing the modem. As for the VM, you could use separate NICs or VLANs & a managed switch to separate things.

                                  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
                                  • U
                                    Ulysses_
                                    last edited by Dec 19, 2019, 9:14 PM

                                    Anyway, I know it's a bad practise and strongly discouraged everywhere, but let's pretend I need the wifi and don't have the $5 to buy nic's, how is NAT done? It is just a line or two of iptables rules in linux for IPv4, can't be too hard in pfsense and IPv6.

                                    J 1 Reply Last reply Dec 19, 2019, 9:25 PM Reply Quote 0
                                    • J
                                      JKnott @Ulysses_
                                      last edited by Dec 19, 2019, 9:25 PM

                                      @Ulysses_

                                      I have never set up NAT on IPv6, so no help there. However, other than WiFi, there should be no difference between using the modem in gateway and bridge modes. You'd still connect the LAN side exactly the same way. Do you not have an old router kicking around that you can use as an AP?

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

                                      U 1 Reply Last reply Dec 19, 2019, 9:40 PM Reply Quote 0
                                      • U
                                        Ulysses_ @JKnott
                                        last edited by Dec 19, 2019, 9:40 PM

                                        No but I have a wifi usb adapter than probably can act like an ap. Alternatively, how do we do the following in pfsense:

                                        https://serverfault.com/questions/929044/ip6tables-is-not-masquerading-source-address

                                        J 1 Reply Last reply Dec 19, 2019, 10:00 PM Reply Quote 0
                                        • J
                                          JKnott @Ulysses_
                                          last edited by Dec 19, 2019, 10:00 PM

                                          @Ulysses_

                                          I don't know how well that USB adapter would work. FreeBSD, which pfSense is built on is not that great with WiFi. As for that link, that's about iptables, not ipfilter, which FreeBSD uses.

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

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