@Patrick Habe den PPPoE-Offloader mal hier dokumentiert:
https://gist.github.com/maurice-w/402eea6750738c7a6765219c34260283
https://gist.github.com/maurice-w/402eea6750738c7a6765219c34260283
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: bamf on March 16, 2026, 05:02:09 PMExterne ONTs mit SFP-Uplink zum Router scheint es ja nicht zu geben?Der OPNsense-Router wird doch ohnehin an einem Switch hängen? Und dieser Switch wird entweder einen freien SFP-Port haben (für das Zyxel) oder einen freien RJ45-Port (für ein Glasfasermodem 2)?
Quote from: Patrick M. Hausen on March 16, 2026, 04:54:03 PMUnd dann? Bridge?Nein, klassisches Routing.
Quote from: Patrick M. Hausen on March 16, 2026, 04:54:03 PMDas ist ja mal echt interessant, hast du da Links zu?
Quote from: bamf on March 16, 2026, 11:39:16 AMDann auf der OPNSense eine VIP aus dem Subnetz des Sticks, damit ich auf die WebUI des Sticks komme.Das wäre in diesem Fall keine VIP, sondern eine normale Interface-Adresse. Denn das eigentliche WAN-Interface ist dann ja ein PPPoE-Device.
Quote from: bamf on March 16, 2026, 11:39:16 AMAlso baut der Switch bei dir die PPPoE Verbindung auf?Ja richtig, wobei "Router" es bei mir besser beschreibt, da ich das SFP explizit nicht bridge.
Quote from: bamf on March 16, 2026, 11:39:16 AMMein Plan wäre, am Switch (CRS305-1G-4S+IN) zwei Ports zu bridgen, den Port, an dem der GPON Stick steckt sowie den Port, der zum Router geht. So dass die OPNSense direkt auf Layer 2 den GPON Stick sieht. Dann Einwahl über die OPNSense.Das geht natürlich auch. Wobei das nur Sinn ergibt, falls Du auch Verwendung für die anderen Switch-Ports hast. Ansonsten wäre das Standalone-ONT der Telekom (Glasfasermodem 2) oder ein einfacher Media-Converter (1x SFP, 1x RJ45) naheliegender.
Quote from: Patrick M. Hausen on March 16, 2026, 01:33:41 PMWie geht das? Dann hat doch der hEX die öffentliche IP-Adresse auf seinem PPPoE-Interface?Über ein eigenes Script. Die guten Scripting-Fähigkeiten sind etwas, was ich bei MikroTik sehr schätze.
Quote from: bamf on March 16, 2026, 01:22:18 AMWäre es möglich, einen kleinen Switch wie den Mikrotik CRS305 quasi als "externes Gehäuse" für das SFP-Modul zu verwenden?Klar, falls Du ohnehin einen Switch mit SFP-Ports hast, dann kann das GPON-SFP auch da rein.
Quote from: franco on March 11, 2026, 05:14:43 PMHere's the isolated change (will apply to a clean 26.1.3/4)Applied the patch to a clean 26.1.4 and rebooted.
Quote from: franco on March 11, 2026, 05:14:43 PMDeleting an interface can negatively affect the default ID generation.Agreed, making the IAIDs persistent (create them once and then save them in the config) would be beneficial.
Quote from: franco on March 11, 2026, 05:14:43 PMEmbedding the DUID into the configuration also has some benefits for maintenance regardless of multi-WAN.Agreed, but don't we already do this? Or only if you explicitly create a DUID in Interfaces / Settings (which I always do)?
Quote from: franco on March 11, 2026, 03:40:11 PMBecause they are purely random and wrong.Random yes, but wrong? I'm not aware of any RFCs requiring IAIDs to have semantic meaning or structure. Any 32-bit unsigned integer is fine.
Quote from: franco on March 11, 2026, 03:40:11 PMI don't mind another look or proposal.Just keep in mind that changing IAIDs can break existing setups. If DHCPv6 static bindings are configured on the upstream DHCPv6 server, an IAID change can cause a mismatch. I recently had that issue in the real world when OpenWrt changed their IAID calculation logic.
Quote from: franco on March 11, 2026, 03:40:11 PMBut that only matters for IAID+DUID pairs when the multi-WAN connections are going to the exact same server.Which is not that uncommon, e. g. if you have two lines from the same ISP. Also, duplicate IAIDs (in the context of a given DUID and IA type) are a clear violation of the DHCPv6 specifications (RFC 9915), which I think we shouldn't do for no good reason.
Quote from: franco on March 11, 2026, 03:40:11 PMI must admit the IAID changes are not for multi-WAN and we can test without them to go forward in 26.1.x regardless.I agree, it's a good idea to split these two issues.
Quote from: franco on March 11, 2026, 03:40:11 PMLet me prepare a patch for that.I'll be happy to test it.
Quote from: franco on March 11, 2026, 03:40:11 PMSure, I'll try to reword.Thanks a lot!
Quote from: franco on March 11, 2026, 03:40:11 PMThere isn't a strong demand, but with multi-dhcp6 it's a possibility to leverage.I have no strong opinion about multiple DUIDs. While it doesn't seem intuitive (a DUID literally Uniquely IDentifies a Device, not a DHCPv6 client instance), I see no harm in it. And there might be use cases where it's actually helpful.
Quote from: demyers on March 11, 2026, 04:04:16 PMAt the risk of going off topicPlease don't, this is a CFT.