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

How could I eliminate immediate IPv4? (NAT/proxy it through IPv6)

Scheduled Pinned Locked Moved IPv6
12 Posts 4 Posters 1.4k 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.
  • S
    senseivita
    last edited by Nov 1, 2020, 8:08 PM

    Hey all,

    For fun project I want to attempt eliminating IPv4 from the network, or at least couple of VLANs but I'd like to put something in place so the vast majority of the Internet (incredibly) on IPv4 is still accessible without having the actually having access to the stack.

    I thought about NAT immediately but poking a little through the firewall I realized IPv4-IPv6 NAT is not a thing. It's funny because I've been serving IPv4-only sites over IPv6 via HAProxy. Happy accident, really. Anyway, for some reason I thought if HAProxy at L7 could do it it would be easier at L4, but I started from the wrong layer I suppose. 😅

    I found a few [very] interesting technologies, from these 464XLAT seems like The One but it needs this SIIT translator thing that it seems not to be a standard, despite having an RFC# and I hope is not the one that used those super weird hybrid IPv6/v4 addresses.

    I already suffered a little when I had to learn to create firewall rules all over again because now things are fully routable 🤕 and I'd like to do something fun and less damaging.

    Do you have any suggestions what to do? A standard (forward) proxy maybe??

    Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

    I 1 Reply Last reply Nov 3, 2020, 2:55 AM Reply Quote 0
    • I
      IsaacFL @senseivita
      last edited by Nov 3, 2020, 2:55 AM

      @skilledinept
      You could set up a NAT64 gateway device pretty easy. I ran one for the past year based on Jool and was easy to get working with pfsense.

      What I found is that some IOT type devices just only work with ipv4. In my case I had a ring doorbell and Wemo switches that don’t even have ipv6.

      On desktops NAT64 pretty much works except Steam on Windows. Steam requires a working ipv4.

      The way I set it up was to virtualize my pfsense and then created another VM for the NAT64 gateway.
      It

      1 Reply Last reply Reply Quote 2
      • S
        senseivita
        last edited by Nov 3, 2020, 3:22 AM

        Thanks for answering.

        Yeah, my APs (Ubiquiti Networks' UniFi) are IPv4-only for some reason but if you SSH into them there's the ip command available so I could set and emergency IPv6 address for recovery…the bad thing is that I'm pretty sure RADIUS would stop working bc I don't have the slightest idea how to set it up without the controller you use to manage them.

        But if I start with a few VLANs only I may have a shot and with the tip you just gave me I at least know it's doable. ⚡️ …and I'm already running virtual!--I can just clone more VMs from the master template. 2x-thanks! 😁

        I've a question though, how did you manage DNS? Because I assume there it should be translated into IPv6 too otherwise since clients don't have IPv4, they won't have a working route to an IPv4 DNS resolution. Will they?

        Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

        I J 2 Replies Last reply Nov 3, 2020, 3:27 AM Reply Quote 0
        • S
          senseivita
          last edited by Nov 3, 2020, 3:27 AM

          Nevermind! I just found out about DNS64 servers! 😁

          Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

          I 1 Reply Last reply Nov 3, 2020, 3:31 AM Reply Quote 0
          • I
            IsaacFL @senseivita
            last edited by Nov 3, 2020, 3:27 AM

            @skilledinept
            if you have an ipv4 only local device that you want to access via NAT64 then you can create a host override in unbound with 64:ff9b::

            For instance I have an Wireless AP that is only accessible via ipv4 at 10.23.30.10.
            I create a host override:
            wap.mydomain.com 64:ff9b::10.23.30.10

            It will then get routed through the NAT64 as long as you have appropriate fw rules.

            1 Reply Last reply Reply Quote 0
            • I
              IsaacFL @senseivita
              last edited by Nov 3, 2020, 3:31 AM

              @skilledinept said in How could I eliminate immediate IPv4? (NAT/proxy it through IPv6):

              Nevermind! I just found out about DNS64 servers! 😁

              pfsense/unbound supports DNS64.

              add following to dns resolver custom options

              server:
              module-config: "dns64 validator iterator"
              dns64-prefix: 64:ff9b::/96
              

              But only do this after your NAT64 is working.

              1 Reply Last reply Reply Quote 0
              • S
                senseivita
                last edited by Nov 3, 2020, 3:34 AM

                Yeah, got it.

                I'd prefer if it was more transparent/native to the client (i.e; without special addressing) but this is just for fun and learning something new so it'll do.

                Thanks again, this'll keep me busy for a while, I hope. :)

                Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

                I 1 Reply Last reply Nov 3, 2020, 3:37 AM Reply Quote 0
                • I
                  IsaacFL @senseivita
                  last edited by Nov 3, 2020, 3:37 AM

                  @skilledinept actually the client won't even notice it as long as you have DNS64/NAT64 working and you can still run dual stack for the cases that don't work.

                  I may go ahead post my little step by step to set it up.

                  1 Reply Last reply Reply Quote 0
                  • J
                    JKnott @senseivita
                    last edited by JKnott Nov 3, 2020, 11:50 AM Nov 3, 2020, 11:49 AM

                    @skilledinept said in How could I eliminate immediate IPv4? (NAT/proxy it through IPv6):

                    Yeah, my APs (Ubiquiti Networks' UniFi) are IPv4-only

                    ????

                    While the management interface may be IPv4 only, any AP that doesn't pass every protocol is defective. I have an Asus portable AP, which I bought about 13 years ago, which has no problem passing IPv6.

                    I've a question though, how did you manage DNS? Because I assume there it should be translated into IPv6 too otherwise since clients don't have IPv4, they won't have a working route to an IPv4 DNS resolution. Will they?

                    It makes no difference whether DNS is carried over IPv4 or IPv6.

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

                    S 1 Reply Last reply Nov 6, 2020, 3:16 PM Reply Quote 1
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by Nov 3, 2020, 1:02 PM

                      @skilledinept said in How could I eliminate immediate IPv4? (NAT/proxy it through IPv6):

                      Yeah, my APs (Ubiquiti Networks' UniFi) are IPv4-only

                      I'm with @JKnott here - ????

                      Not sure where you would of gotten that idea at all..

                      Are you blocking multicast on your wifi network - this can break IPv6 for sure..

                      But here... I can ping an AP ipv6 link local address

                      root@NewUC:/tmp# ping -6 fe80::822a:a8ff:fe13:4f07%ens3
                      PING fe80::822a:a8ff:fe13:4f07%ens3(fe80::822a:a8ff:fe13:4f07%ens3) 56 data bytes
                      64 bytes from fe80::822a:a8ff:fe13:4f07%ens3: icmp_seq=1 ttl=64 time=1.30 ms
                      64 bytes from fe80::822a:a8ff:fe13:4f07%ens3: icmp_seq=2 ttl=64 time=0.494 ms
                      64 bytes from fe80::822a:a8ff:fe13:4f07%ens3: icmp_seq=3 ttl=64 time=0.501 ms
                      

                      You do understand when you use link-local that you have to call out the interface right.. See the "%ens3" in my ping.. this tells the box your doing the command on which interface to use.

                      And you can set an IPv6 address on them - you prob won't be able to ssh into if you set that because it wouldn't be listening on the port without a restart, and you would loose the address most likely.. I setup an IPv6 on them and could ping it..

                      APipv6.png

                      But the management IP doesn't have anything to do with the AP passing IPv6 traffic..

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

                      1 Reply Last reply Reply Quote 0
                      • S
                        senseivita @JKnott
                        last edited by Nov 6, 2020, 3:16 PM

                        @JKnott Yeah, I meant for management and because of you set a RADIUS server on the Controller software for the APs to forward their stuff. Then you also set the APs' IP address or the whole subnet on the RADIUS server, but if the AP doesn't have an IP address (because officially IPv6 isn't supported) then it becomes an L2-only device, what they're actually supposed to be, right? Being an L2 device though it has no way of contacting (through IP) the RADIUS server to forward the traffic. There's always always-on IKEv2 or ZeroTier though. – I've static routes to an OPNsense gateway for ZeroTier, it doesn't even NAT, it's pure unfiltered routing like grandma used to splice. #applysepia

                        IPv6 works fine, @johnpoz multicast works "fine" too, well y'know…for multicast. I've a similar block BTW! It's from HE, right? I've memorized the /48 I'm borrowing, it makes it super easy to know every address on any subnet if you zero them out. It's my v4 I can't learn, it's one of those too matchy, sort of palindrome-y, that you think it's going to be easier when you look at it but isn't. 😔

                        Thanks for the advise, guys!

                        🧩

                        Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

                        J 1 Reply Last reply Nov 6, 2020, 5:25 PM Reply Quote 0
                        • J
                          JKnott @senseivita
                          last edited by Nov 6, 2020, 5:25 PM

                          @skilledinept

                          Forget about the management interface and radius for a moment. The purpose of an AP is to provide a layer 2 connection between devices. That's it. So, it should pass IPv4 & IPv6 equally well. I get the impression your radius server is IPv4 only. Is that a problem? Can the clients only connect via IPv6? These days, dual stack is quite common and normally IPv6 is preferred, with fallback to IPv4.

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