Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 [Guide] OPNsense Unifi setup with ipv6

views
     
TSpapyrous
post Oct 11 2021, 01:57 PM, updated 2y ago

Getting Started
**
Junior Member
214 posts

Joined: May 2017
Set up OPNsense on Unifi and just thought might as well share the process.

user posted image
Go to Interfaces > Other Types > VLAN
Parent Interface > select WAN port, VLAN tag 500.

user posted image
Go to Assignments > under WAN select vlan500 on (WAN port)

user posted image
Go to [WAN] > ipv4 = PPPoE, ipv6 = DHCPv6. under PPPoE configuration, enter your Unifi username and password.
Scroll down under DHCPv6 client configuration, check
> Request only an IPv6 prefix
> Prefix Delegation Size 64
> Send IPv6 Prefix Hint
> Use IPv4 connectivity
edit NOV 2022

user posted image
Go to [LAN] under IPv6 configuration type > Track Interface.
Track IPv6 interface > select WAN.
to use NDP, check [Allow manual adjustment of DHCPv6 and Router Advertisements]
then go to [Services] > Router Advertisements. select Stateless for Router Advertisements

May have to reboot system to bring DHCPv6 server up and running.

enjoy

This post has been edited by papyrous: Nov 4 2022, 08:15 AM
TSpapyrous
post Oct 12 2021, 10:36 AM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Anime4000 @ Oct 11 2021, 11:52 PM)
Take note that iOS and Android dislike DHCPv6 Server, your phone wont received IPv6, it's advisable to use NDP instead
*
iOS works fine for me with DHCPv6. I can't get SLAAC to work.
TSpapyrous
post Oct 30 2021, 01:39 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
updated to use NDP for ipv6
TSpapyrous
post Nov 4 2021, 03:55 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(kenjixx @ Nov 4 2021, 10:27 AM)
i tested with maxis fibre
ping on opnsense diagnostic ipv6 works but when check on ipv6 test site not working
*
this sounds like whichever client you’re testing on isn’t getting the ipv6 address handout from Opnsense
TSpapyrous
post Nov 5 2021, 12:39 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(erict68 @ Nov 5 2021, 08:50 AM)
Currently I'm using 6 lan ports i5-7200u mini pc which bought from taobao 2 years back, actually it's too powerfully for my needs, iperf test with IPS enabled getting max throughput around 940Mb and cpu max @60%. I'm getting a J4125 4 lan port mini pc now for another project from taobao also, it's cheaper but there is a risk if want to claim warranty, seems like it's impossible to send back the item for warranty claim.
*
similar situation. i got a 6 port i5-8250u. hardly break a sweat.
so running Opnsense in Proxmox as a VM, add on a couple
of things on the same box as home server.
TSpapyrous
post Nov 6 2021, 11:47 AM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Gaara92 @ Nov 5 2021, 04:06 PM)
where can i buy it? i am lazy to find a mini pc then have to buy another pcie network card for additional ports. prefer one come with the ready made additional ports
*
can look at Yanling brand as well from AliExpress.
https://m.aliexpress.com/store/v3/home.html...ePath=index.htm

OEM brand for Protectli
TSpapyrous
post Nov 13 2021, 06:03 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Anime4000 @ Nov 12 2021, 09:54 PM)
I use IPv6 to put some hexspeak:

CODE

IPv6 Address. . . . . . . . . . . : 2001:d08:e6:7a1b:dead:daff:fee1:b00b(Preferred)


[attachmentid=11036378]
[attachmentid=11036379]
[attachmentid=11036380]

My /64:
CODE
::dead:daff:fee1:b00b


My Server Address: [2001:d08:e6:7a1b:dead:daff:feed:f00d]:8080
*
noice. man of culture

This post has been edited by papyrous: Nov 13 2021, 06:50 PM
TSpapyrous
post May 23 2022, 10:07 AM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ May 22 2022, 12:17 PM)
hm.....

i sorta get what ur saying, but trying to translate that to how to configure pfsense to work with tmnut unifi ipv6 is a separate matter xd whether i managed to configure as u mentioned.

i mostly use this as a clue by the ts
https://forum.lowyat.net/topic/5204701
as for the lan, all i could find was the dhcpv6 server RA, which i enabled.

Then i tested on mobile android, now ipv6 works whereas before it didn't.

I'm assuming this is the NDP you were talking about? cause thats the only option i could find in pfsense :{
from desktop, i get a 8/10 score here (the 2 parts it said had issue with was dns, and ICMP. for the dns portion, there is no dns hostname shown, not sure why  hmm.gif )

https://ipv6-test.com/
and a perfect score here

https://ipv6test.google.com/
https://test-ipv6.com/
*
Yes you are right, it should be under Router Advertisements.
using Stateless DHCP correct?

looking at netgate docs under DHCPv6/RA there’s a part about being unable to receive DNS info, can see if that helps solve it

TSpapyrous
post Jun 26 2022, 07:06 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
So funny thing happened, updated to 22.1.9 , rebooted and internet stopped working.
tried switching to another router and error shows.. PAP authentication error.
called TM to come and fixed it, password was changed and no problem running on that router.

switched back to Opnsense today because i’m running on Proxmox, updated and rebooted to run a new kernel, and Opnsense stopped working again.
showing PAP authentication error once again

TSpapyrous
post Jun 27 2022, 12:38 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
happened twice again, i suspect may be an issue with IPV6.

TM technician say on their side my username seems to freeze up. so unable to drop or connect.
TSpapyrous
post Jul 11 2022, 06:21 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Jul 10 2022, 12:32 PM)
my internet also suddenly didn't work.

equipment and wiring all ok. rebooted everything still didn't work. modem showed no issues connecting ppoe, but log shows there is authentication issue.

so the technician just connected the default router and logged in fine.

after re-adding the cable back to pfsense, wan could connect fine.
so firstly excuse the layman talk, but i suspect the issue has something to do with how pfsense is communicating to unifi to login for internet access which somehow got stuck which resulted in no internet. so when using the default unifi router equipment to login, this somehow unstucked the login, which would explain why reconnecting the ethernet back to the pfsense router why wan could work fine now (because the account connection to unifi was unstuck).

i don't know the technical explanation for this, but this is what i discovered.

Theory #1, could be that my ip4/ip6 pppoe settings is done incorrectly which is why it resulted in this odd behaviour resulting in internet authentication failure. or the #2nd theory, could be some sort of bad stuff with tmnut end which results in this odd issue. thats all i could deduce from this  hmm.gif but it's definitely not a hardware or wiring issue (in my case) cause i checked.
so no, i did not have to resort to resetting unifi password (fyi calling tmnut to reset the port didn't work, neither did restarting modem). just simply connecting to wan using the default unifi router, then replacing back the ethernet to the pfsense router (to connect to wan) seemed to fix the problem.
anyway i think u were spot on in regards to your comment
i'm not using opnsense, but my pfsense setting is roughly similar to yours  hmm.gif  if u figure out if the setting was done incorrectly somehow (which is causing this weird account froze/stuck behaviour, assuming the issue is on the pfsense/opnsense router settings side), i would love to know  notworthy.gif

but for now, my temporary solution is to have the default router on standby to temporary login to wan to unstuck, then switch back to pfsense, if i encounter this issue again (thkfully this doesn't seem to occur very often afaik), before i bother calling up tmnut to look into it  sweat.gif
*
lucky you. I tried using TMNut stock router no joy. still getting authentication error and had to call them. technician said if i face this error again to call TM and ask them to “release HSI”.
suspect IPv6 because i was messing around with turning IPv6 on/off.

did you update pfsense recently for this to happen?

TSpapyrous
post Jul 21 2022, 02:37 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Jul 21 2022, 01:06 PM)
i''m not sure but i think ur right. i've used pfsense for years using ipv4 only, no issue. only recently i added the ipv6 based on your guide, but then i run into this issue where the unifi pppoe login gets stuck.

so the technician explained was, the pfsense router gets stuck for some reason (he doesn't elaborate why). So his solution was, use the stock unifi router and don't use back pfsense, if get stuck will void warranty (though that makes no sense if u don't tamper with their own equipment when switching back).

But his point was, the pfsense gets stuck, i suspect like u its something to do with ipv6.

i noticed when setting up the original stock unifi router, he asked to reset password. i think he did that to unstuck it (also based on what i read online. though he did not want to admit he had to do that to unstuck it).

i tried asking them what “release HSI” is, he claimed he don't know  rolleyes.gif  but i'll try that next time. did doing so fix your issue though?

is it possible to reset ur unifi password yourself? so don't have to call the technician over to do that? becauz seems like that would solve the issue if i encounter this next time  hmm.gif
so anyway, i switch pfsense back to an older config where i used ipv4 only (no ipv6). This old setup worked fine for many years, so hopefully i won't encounter this stuck pppoe issue (which resulted in unable to relogin to pppoe again)

sweat.gif
hm i'm using the latest pfsense, no idea if that is the reason for the recent issues  hmm.gif  the only setting changed recently was just adding ipv6 to get that working, which is why i suspect that was the culprit.
eh rely? i managed to get the stock tmnut router upon request the same day, didn't know this was hard to get  hmm.gif  had to pay for it though cauz warranty for old one expired  sweat.gif  i had an asus router i don't use but it's not using the stock firmware, so i could not use the unifi Isp requirements from the preselect list. So i'll have to reflash back to stock firmware, so i can use that as a backup for emergency to test the internet  sweat.gif
*
I have been using Opnsense IPv4/IPv6 for almost a year without issues actually. just the recent 22.1.9 update and reboot then start to have this issue.

I don’t think it is possible to reset Unifi password yourself.
the last time i tried talking to customer service to reset password, they say will send sms of new password. didn’t get it at all then technician came the next day to solve it, so I’m not sure if it can solve the issue, logically yes.

So mine got stuck 3 times, first time they change password.
then 2nd and 3rd time technician just make a phone call to solve it and he didn’t even have to come, no password change too

you mean you request new router from TM?
l thought you meant use the one given by TM in the beginning, mine still in good condition since the beginning of contract so just took it out to try.

TSpapyrous
post Jul 22 2022, 09:51 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Jul 22 2022, 04:00 AM)
i use the regular pfsense 1 year + but only using ipv4 without issue. only recently when added ipv6 then i started having this freeze issue at least once a month or 2-3 month roughly, when before i never had this issue
o like this? well hopefully customer support will be enuff. i rather not call the technician over. is it true there is such warranty if u use ur own networking gear like router? technician claim should i decide to use my own router like the pfsense, if it resulted in tmnut account getting stuck/frozen again, then he claims warranty expire. But how does that work? it's not like i am flashing third party firmware onto the default tmnut router which i am not using. i keep the default router so i can use that to relogin because it should work, because by their logic, at that point i am using their own gear/setup so it should connect to the internet, so then they can't blame pfsense for why i cannot connect sweat.gif .

But he claims that for whatever reason, pfsense is causing the account login to get stuck (this part we can at least agree), there is no opinion why or any effort to troubleshoot this apparently (although i saw to fix this issue, he had to reset the tmnut password for isp  rolleyes.gif  ) This part we disagree, because since the issue seems to be on their end why my isp relogin seems to get stuck for whatever reason, they can't just simply deny to solve this issue (i assume password reset or whatever it is like they did for u but didn't what exactly?) under the basis u decide to connect using pfsense that gets it stuck yet again, can they?  hmm.gif

i alrdy switch config to an old working one which only connects to ipv4 (but no ipv6), so hope i won't get this issue again, but i can't be completely certain until i've tested this for a while  sweat.gif
mine got lost ages ago. had to pay to get issued a new one  sweat.gif
*
that void warranty thing sounds like BS, probably dont want you to simply mess around and call them over for something so "simple".
TSpapyrous
post Jul 23 2022, 04:36 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Jul 23 2022, 02:24 PM)
technician saw my network rack, but don't know what a nas is.... (probly didn't even know what a server rack switch is either from the looks of it as well)  doh.gif  that's why hard to take seriously. i'm not a full fledged expert but even i know enuff  smile.gif  i also thought it was bs....

so if they refuse fix internet, can i refuse pay my bill?  rolleyes.gif

to uncomplicate during troubleshoot, i even just connect the modem to standard unifi router (this is very easy to do so wasn't a bother, just removed 2 ethernet cables and rewire accordingly), and hook direct to desktop pc, so can illustrate the networking in network rack has no relevance at that point, if the internet isn't functional.

the part i agreed with somewhat, was that perhaps something with the pfsense config was probly causing some issue during reconnect which made the unifi account frozen/stuck which results in unsuccessful login, even if u switch back to default tmnut router to do so.

but i never heard before u can void warranty using ur own gear?  hmm.gif  (i never even said i was going to reflash their tmnut router. maybe he got confused?)

also tried to get me to rewire all the cabling to use default tmnut router fulltime right then and there, but i declined citing i will do later, but i later put back own my pfsense router after first using a working config i had no issue with for many years  sweat.gif  internet confirmed working again no issue for now  smile.gif

though i still haven't figured out why the isp relog is stuck/frozen  hmm.gif
but like u mentioned, seemed like they can fix on their end without sending anyone over. how come they don't train their technician to diagnose and troubleshoot this issue? save everyone time  rolleyes.gif
*
I think a lot of things they based it on minimal training to get it done.
So one of the routers have default IP of 192.168.0.1,
Once i changed it to 192.168.1.1… technician stumped because he dunno how to connect. every time he go 192.168.0.1 no response, in the end he had to call senior to assist. I couldn’t bear to watch so i helped a bit.

and our issue is very rare according to the technician who came to my house. he has never seen it before. only after i told him what i suspected then he call and reset.

TSpapyrous
post Aug 8 2022, 02:51 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Aug 8 2022, 10:32 AM)
did u check out this thread?

https://forum.lowyat.net/topic/2978208/+1340
seems there rely might be something up with tmnuts ipv6 implementation  hmm.gif
anyway right now i'm using old pfsense config when i only had ipv4 only setup. so far haven't had any internet issue. but it's only been a month... so that hardly says much. i'll report back next year or if i have an issue occur for it before then.
https://forum.lowyat.net/index.php?showtopic=5285577&
but at some point not many years from now, we probly need this ipv6 sorted out  sweat.gif  but for now using just only ipv4 seems to be ok.

i run speedtest i still max out on my subscribed speed. latency is roughly same so basically not rely much diff when using ipv6 afaik. also since i use vpns, it's even more of a reason not to use it.
*
i have not seen it. but maybe this is the culprit?
QUOTE
There's 2 ways to solve this:

1* reduce IPv6 DHCP leasetime to say 3 mins or lower in your router(troublesome)

2* TM assign static-prefix(best option)
my machine got fried so I am havent been using OPN for a while cry.gif
did you see if recent PF updates made any changes in the ipv6 department?
TSpapyrous
post Aug 15 2022, 05:49 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Aug 15 2022, 04:22 PM)
for pf news, there is this

https://www.youtube.com/watch?v=cDgF6UoyThQ
pfsense is adding features to their subscription pf plus release, while keeping the open source pfsense community version at a slower update track.

makes me wonder about if i should start moving to opnsense yet or not? but i'm not too familiar with it. is it better than pfsense?  hmm.gif

also recently pfsense added a tailscale package for pfsense which is nice. also it already has useful packages like pfblocker, and even suricata which i'm not sure opnsense has or not.

for ipv6 news in pfsense i'm not sure  sad.gif but this is the changelog
https://docs.netgate.com/pfsense/en/latest/...ases/index.html
haha, just go OPNSense, suricata is there. in general both functionality is very similar. you'd just have to get use to the layout.
TSpapyrous
post Aug 23 2022, 07:26 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(freakyweirdo92 @ Aug 23 2022, 04:12 PM)
hi there.

still learning and trying to understand ipv6 in opnsense
what prefix delegation size to use by the way?

user posted image
*
64. be wary though, i suspect it’s TM screwing up some ipv6 settings. if after reconnection/reboot you get no internet. you need to call TM to get it solved.
TSpapyrous
post Oct 22 2022, 04:59 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Oct 22 2022, 10:39 AM)
just to confirm, setting strictly to ipv4 only, and omitting the ipv6 settings, the connection remains stable and i don't experience any lock out/issue when reconnecting back to tmnut.

long term no good, since will need to figure out how to get ipv6 working in pfsense to work with tmnut without this issue  sad.gif
so what is your situation like? did you figure out the working ipv6 settings for your opnsense? or do you still have this frozen internet and having to call up tmnut each time to unstuck it?  hmm.gif
or does anyone else who uses pfsense have a working setting for this?  :confused:
*
i didn’t bother anymore and stick to using ipv4.
or you can connect ipv6 and hope you have 100% uptime never drop connections then it will work
TSpapyrous
post Oct 25 2022, 01:43 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Oct 24 2022, 07:26 PM)
too risky. too troublesome if a problem occur  sad.gif

at one point, i thought maybe it's due to me using vlan in my pfsense config (for guest wifi and iot). but based on your result doesn't seem to be that  hmm.gif so i could only narrow this down to something related to the ipv6 configuration on pfsense side, or something on isp side that doesn't play nicely with pfsense?

o well.. i'll visit back this thread in 1-2 years and hope someone has a solution by then  laugh.gif  using ipv4 only reliably for now on latest community edition pfsense  nod.gif  i max out on the subscriber dl/ul speed, and latency is low for gaming, so not really much else to complain unless maybe if torrent peer strictly use ipv6 then doesn't that mean i cannot download from those users? other than that i don't think there is a big issue, until a few more years from now if they force everyone to use ipv6 eventually
*
wonder if it’s feasible to call them and send a technician over every time it happens.
if > 24h downtime, claim rm50 rebate.
perhaps if done often enough with enough volume they’ll do something about it
TSpapyrous
post Oct 26 2022, 01:16 PM

Getting Started
**
Junior Member
214 posts

Joined: May 2017
QUOTE(Moogle Stiltzkin @ Oct 24 2022, 07:26 PM)
too risky. too troublesome if a problem occur  sad.gif

at one point, i thought maybe it's due to me using vlan in my pfsense config (for guest wifi and iot). but based on your result doesn't seem to be that  hmm.gif so i could only narrow this down to something related to the ipv6 configuration on pfsense side, or something on isp side that doesn't play nicely with pfsense?

o well.. i'll visit back this thread in 1-2 years and hope someone has a solution by then  laugh.gif  using ipv4 only reliably for now on latest community edition pfsense  nod.gif  i max out on the subscriber dl/ul speed, and latency is low for gaming, so not really much else to complain unless maybe if torrent peer strictly use ipv6 then doesn't that mean i cannot download from those users? other than that i don't think there is a big issue, until a few more years from now if they force everyone to use ipv6 eventually
*
for your pfsense there's this.
https://docs.netgate.com/pfsense/en/latest/...igure-ipv6.html

CODE
Do not allow PD/Address release

   Prevents the operating system from sending a DHCPv6 release message on exit.

   Some ISPs will release the allocated address or prefix when a client sends this message. With this option set, the client is more likely to receive the same allocation with subsequent requests.


how's yours configured with regards to this option?

2 Pages  1 2 >Top
 

Change to:
| Lo-Fi Version
0.0269sec    0.66    7 queries    GZIP Disabled
Time is now: 26th November 2025 - 08:16 AM