fwiw this is just illegal in germany now. routerzwang got killed aug 1 2016, the isp has to hand over the access data so you can plug in your own router, safety excuse or not https://de.wikipedia.org/wiki/Routerzwang
I did my networking apprenticeship at Telekom. I’ve worked with some of the smartest people I’ve ever met… Always baffled me how bad their consumer grade services were.
Fuck Telekom
DTAG is Germany's utterly dominant phone and mobile carrier, even with them being the former national monopoly you don't stay in business if your staff isn't among the best there is. But their consumer side is excessively capitalist.
The only problem is that some providers, like Vodafone, implement this in the worst possible way. With them, you have to get your router’s MAC address whitelisted, and sometimes they block it again. They also refused to provide support, and I had to connect their router before they told me they had accidentally reset the list. I solved this for myself by simply cloning the MAC address of the original router using OpenWRT.
Cable TV companies did the same thing with CableCard. They were purposefully awful to setup as a customer or and tech support rep. Getting them to actually work was a miracle.
> And particularly if you live in a third world country, your ISP uses an ancient protocol called Point-to-Point over Ethernet (PPPoE) for session authentication on top of that.
Or just Bell Canada. At least they’ll tell you the PPPoE creds and there’s pon.wiki.
I had pppoe dsl until recently ... i dislike pppoe, but my bonded (vdsl2) lines were in good condition so I got very consistent latency and reasonable speeds. Upload wasn't great.
People near me on starlink reported latency that was sometimes better and sometimes worse, I think better speeds, but also CGNAT.
There's no good cgnat alternative for when you want to do voice/video calls and cgnat says no. You could VPN around that problem, but that adds to the latency.
Also used in first world countries when the access network is unbundled from the internet service provider, so it needs to know which ISP to connect you to.
Pretty interesting writeup, i've always been curios about how authentication between the router and isp works, btw i got my isp credentials by finding a root rce on my isp provided router, which was fun
Assuming a very vanilla ISP and PPPoE (and glossing over a lot of other things), the username and password from your router is received by a RADIUS [0] server [1] (that your ISP operates) when your router tries to establish the PPPoE tunnel and get you online.
This RADIUS server will check whether your account exists (authentication) and whether you may continue to connect to the Internet (authorisation - you might have a bandwidth limit, for example, or maybe you haven't paid your bill).
If those checks pass, the tunnel is established and you're online. From this point, your connection is being metered (accounting), so that the ISP can monitor your usage and dynamically shape or disconnect your connection based on your account plan that you've paid for with the ISP.
There's obviously a million and one ways that this could work, but the core of the RADIUS protocol itself is relatively simple to understand and apply, even in a homelab.
Authentication and authorisation (in the simplest cases) is three packet types: Access-Request (sent by your router, into which your username and password are encoded), Access-Accept, and Access-Reject.
And accounting has two (Accounting-Request and Accounting-Response) with Accounting-Request including a status type (Start, Interim-Update, and Stop) to indicate the beginning, periodic updates, and termination of the connection along with its bandwidth usage.
This old project [2] I worked on a long time ago demonstrates precisely what I described above.
> If you're lucky enough to have an ISP using DOCSIS, you can likely get away with setting your ISP modem to bridge mode and just connect your own router on the other end and everything will just work
I've heard people suggest that instead of doing that go ahead and leave the ISP modem/router in router mode, connect your router to it, and put your router in the ISP router's DMZ.
Put all of your devices on your router.
The advantage of this approach is that people who use bridge mode often report that if there is any network problem the ISP tries to blame it on your router. Same for people who replace the ISP modem/router with their own.
The DMZ approach makes your setup look like a normal consumer setup to the ISP, so you just have to deal with customer supports hoops normal consumers have to deal with.
Note: I'd assume this also works with ISPs that don't use DOCSIS. It just requires that the ISP router supports a DMZ.
a) it doesn't make me happy, whereas bridge mode makes me happy.
b) DMZ mode means you're still dealing with a lot of the CPE's protocol stack. If there's something it can't or won't do, or something that crashes it, DMZ mode may not be enough to let you do what you should be able to do.
c) if you do have to deal with pppoe (boo!), running it on your router can be useful, as you can use the pppoe status to trigger failover to lte/5g or something. Whereas if you wanted to query the status from the CPE, it would probably work great for a week then start failing.
In my case, Cox (now Spectrum) allows customer owned modems. And we haven’t had a single internet issue in about 6 years. Few outages from storms and stuff but it has been incredible. I really appreciate having control of the full stack and even seeing DOCSIS logs and channel information.
They do always try to blame the customer. However, a lot of them provide a separate modem and WiFi router. The modem is configured in bridge modem by default so that their router will work correctly, but it works the same for your own. They'll still tell you that your router is the problem, especially for speed issues.
I don’t think I’ve used equipment owned by my ISP in 20 years. My cable modem is always mine. My gateway/router is always mine. I sometimes forget that there are people who have to put up with this shit. We shouldn’t.
I use an ISP-rented modem for the first few weeks of a new service. Wiggle every connection, exercise everything, find every marginal piece, hope for severe weather to get the outside plant nice and wet, and maybe point a hose at it if nature doesn't provide. Make them fix it while they own every inch and can't point fingers.
Once it's rock-solid, return their modem and drop in my own. I'll eat one month of rental fee just for the simplicity of blame during the shakedown, but never more than one month.
Ahh, they charge me for every month the router is in my possession, and I very much want to not dignify that revenue stream. I can buy my own for roughly one year's worth of rental fees, and use it for the next decade or so.
Love seeing stuff like this here. I recall back in the very early days of DOCSIS, before it was encrypted, one could use Ethereal[0] with a NIC that supported promiscuous mode and simply inspect traffic from all devices connected to your neighborhood peering point. This was before TLS or even SSL was common, so most people's traffic was in the clear. It wasn't morally correct, but as a teen it was a lot of fun.
You could also determine the IP address of the TFTP server that your ISP was using to serve the modem's config files to the various nodes in your local area. Using Ethereal, again, you could dump the bytes of the config file, edit it in a text editor and then serve it from a TFTP server you had setup on a box in your home. Then you simply changed your IP address to the TFTP server's IP address, plugged the modem directly into your box and BOOM, you now turned your 8Mbps connection into a 100Mbps connection...until the next modem reboot. Good times...
> You could also determine the IP address of the TFTP server that your ISP was using to serve the modem's config files to the various nodes in your local area. Using Ethereal, again, you could dump the bytes of the config file, edit it in a text editor and then serve it from a TFTP server you had setup on a box in your home. Then you simply changed your IP address to the TFTP server's IP address, plugged the modem directly into your box and BOOM, you now turned your 8Mbps connection into a 100Mbps connection...until the next modem reboot. Good times...
Can confirm, did this in Mesa, Az in like 2000... Lol, we had some great quake 3 arena lan parties in the garage.
To say how this works another way, it's an arp poisoning attack where the router sees your tftp IP on the Ethernet interface first instead of on the cable interface. Once that IP was in the arp table, you could feed it a config file from your own tftp server, which is where the subscriber bandwidth limits were kept (in the modem config file sent by the tftp server). At the time, large scale subscriber equipment management was very limited.
Sometimes they'd see a subscriber was just pulling a ton of bandwidth somehow, and they'd send a tech out to replace the modem. Rinse/repeat.
I used to be an Comcast Business Cable customer. I can't remember the details but at one point they changed my static IP allocation, and somehow screwed it up, and sent me a configuration that meant I was online but un-routable (I think a typo in a mask or gateway or similar).
Anyway, I sat on a call with a L2 or L3 tech (I assume) trying all manner of things to see if we could cause a re-provisioning that was successful. No joy. An hour or more.
This was also very late at night. And at some point he realized/decided that I knew what I was doing, we could both see and understand the problem - "everything looks good, just fix this config entry and all will be well". But I couldn't do it, because I wasn't a Comcast admin. And then he said "hmm, here's what I think we do. Our admin password changes every day. I can give you the password and you can try to make the change".
Enjoyed this post! Note there is a 4th option you didn't mention: enter "make and model of ISP's router" and the magic phase "default password" into your search engine. Sadly this works quite often!
The 8311 community kind of does this with their own firmware, which you can put into a WAS-110 SFP module. It still uses the Azores binary so not fully open.
TBH the goal of ISP WAN authentication is 99% billing 1% security. IPoE + Option 82 solve this pretty well in the modern era. But running PPPoE + Radius is dead easy and will likely never die.
That might be all you need depending upon your usage. Could be very cheap if there is good competition. Assuming it behaves like any other "package" in the billing/management system and uses the same equipment as higher tiers, there wouldn't be any management overhead. Some people were happy paying a $15 a month for basic cable. However, there were technical reasons to get rid of that mainly bandwidth.
The thing I would love to do is replace the gpons with an SFP+ optical interface or at least get some visibility on them. There's a project (https://hack-gpon.org/) that tries to do that, but they're all quite closed.
The less compute an ISP has on your LAN, the better.
Usually because there’s some level of authentication that the ONT does which is not possible with a standard GPON SFP like the one you’ve linked. The alternative is something like a WAS-110 [1] which has a tiny Linux distribution on it to clone whatever authentication or identification mechanism the ISP uses. These aren’t without issue as they are massively prone to overheating and despite having a programmable identity don’t support some providers/manufacturers.
But my ISP's ONT is approximately the leanest little box. It uses very little power, it doesn't do any routing or wifi, and it acts like a tiny little transition between the world of internet-over-glass to internet-over-copper.
The hack-value of a spicy SFP+ module doesn't scare me at all and is kind of enticing, but I perceived zero functional advantage to rejiggering things in that way.
Instead, I perceived only disadvantages: If my fiber connection at home is ever fucked up somehow, then I want it to be un-fucked as soon as possible. The less weird stuff I have going on, the better off I'll be.
So I stopped exploring that path and decided that the ISP-supplied ONT is fine.
And anyway, that ONT is on the internet side of the firewall that I built and control. I do not care at all what the ONT might be up to, just as I don't care what any of the billions of other things that also live on the internet side of my firewall are doing.
FYI: Fritzboxes have a built in packet capture feature which makes this possible. Also comes in handy if you forgot your ISP credentials and can't retrieve them from the UI.
Fortunately my ISP encourage getting your own router. It saves them money and they argue that you might already have one, so environmentally it just makes sense to allow you to use that. They'll happily send you one, but it's not going to be good.
A previous ISP didn't exactly encourage using your own router, but they also didn't hide the information you needed. I really didn't want to have both their router and an access point, so I got a 3Com router with wifi built in (yes, this was a while ago). I used that thing for 12 years, before the ISP reached out letting me know that the router they originally sent me was getting really old and that they'd need to send me a new one (which was better than the old 3Com one).
If the ISPs really want to dictate which router you have, they should really provide much nicer ones. I don't get why they also have to be the shittiest one on the market. Even when they advertise "best wifi router on the market" they just mean that it sucks less than the one I get from the competitor. It's always some weird Chinese brand you've never heard of, or Zyxel.
My most recent ISP provided a router that is actually really good. It can handle the 5gbps connection without choking to death.
With the current era of AI, I am not in the mood to be poking inbound holes in my NAT anymore. If I have something I want to be visible from the internet I'll throw in on an EC2 machine or use some kind of proxy solution.
Multiple ways: by physical connection (isp side switch port and vlan, and GPON mac) - at least was my impression when engineer opened fancy control plane management page.
Great write-up, and something I’ve done myself using a MikroTik router to intercept the PPPoE connection and do a packet capture, both of which possible on almost any MikroTik router manufactured since as far back as I can remember. Handy device to keep in the arsenal and quite cheap too.
Agreed, the value for money with Mikrotik is exceptional. Where I live, I can find low to mid spec Mikrotik indoor wireless routers at the same price as your run-of-the-mill lobotomised TP-Link.
Are there any countries's ISP that allows you to bring your own ONT + Router All in one?.
I want an ONT + Router in one devices. In the good old days there were at least a few choices for ADSL so I dont need to separate devices. Now it seems only Huawei does it. I would have thought UniFi would at least be interested in that as well.
If not, are there any technical reason why this isn't being done or a good idea?
You can get any router with an SFP/SFP+ port, and use a GPON SFP module (a.k.a. "GPON Stick")... it takes a bit of fiddling with GPON auth, MAC addresses, VLANs but totally doable and gets you in full control of your side of the internet equipment.
doyoon_123 | 10 hours ago
madduci | 7 hours ago
zahrc | 5 hours ago
mschuster91 | 47 minutes ago
ada-h00k | 3 hours ago
Geezus_42 | an hour ago
tripdout | 10 hours ago
Or just Bell Canada. At least they’ll tell you the PPPoE creds and there’s pon.wiki.
ls612 | 9 hours ago
Scoundreller | 9 hours ago
toast0 | 7 hours ago
People near me on starlink reported latency that was sometimes better and sometimes worse, I think better speeds, but also CGNAT.
I don't need CGNAT in my life, thanks.
ls612 | 6 hours ago
viraptor | 7 minutes ago
tripdout | 13 minutes ago
Scoundreller | 9 hours ago
Vaushite | 5 hours ago
Implement7347 | 10 hours ago
skibz | 47 minutes ago
This RADIUS server will check whether your account exists (authentication) and whether you may continue to connect to the Internet (authorisation - you might have a bandwidth limit, for example, or maybe you haven't paid your bill).
If those checks pass, the tunnel is established and you're online. From this point, your connection is being metered (accounting), so that the ISP can monitor your usage and dynamically shape or disconnect your connection based on your account plan that you've paid for with the ISP.
There's obviously a million and one ways that this could work, but the core of the RADIUS protocol itself is relatively simple to understand and apply, even in a homelab.
Authentication and authorisation (in the simplest cases) is three packet types: Access-Request (sent by your router, into which your username and password are encoded), Access-Accept, and Access-Reject.
And accounting has two (Accounting-Request and Accounting-Response) with Accounting-Request including a status type (Start, Interim-Update, and Stop) to indicate the beginning, periodic updates, and termination of the connection along with its bandwidth usage.
This old project [2] I worked on a long time ago demonstrates precisely what I described above.
[0]: https://en.wikipedia.org/wiki/RADIUS
[1]: https://github.com/FreeRADIUS/freeradius-server
[2]: https://github.com/io-digital/tephra
tzs | 9 hours ago
I've heard people suggest that instead of doing that go ahead and leave the ISP modem/router in router mode, connect your router to it, and put your router in the ISP router's DMZ.
Put all of your devices on your router.
The advantage of this approach is that people who use bridge mode often report that if there is any network problem the ISP tries to blame it on your router. Same for people who replace the ISP modem/router with their own.
The DMZ approach makes your setup look like a normal consumer setup to the ISP, so you just have to deal with customer supports hoops normal consumers have to deal with.
Note: I'd assume this also works with ISPs that don't use DOCSIS. It just requires that the ISP router supports a DMZ.
nemothekid | 8 hours ago
It's might be minor depending on the use case or your hardware, but this creates a double-NAT and can cause problems with UDP/WebRTC connections.
Atleast for comcast, you can buy an approved modem instead.
toast0 | 8 hours ago
a) it doesn't make me happy, whereas bridge mode makes me happy.
b) DMZ mode means you're still dealing with a lot of the CPE's protocol stack. If there's something it can't or won't do, or something that crashes it, DMZ mode may not be enough to let you do what you should be able to do.
c) if you do have to deal with pppoe (boo!), running it on your router can be useful, as you can use the pppoe status to trigger failover to lte/5g or something. Whereas if you wanted to query the status from the CPE, it would probably work great for a week then start failing.
inventor7777 | 7 hours ago
Geezus_42 | an hour ago
ryandrake | 9 hours ago
myself248 | 9 hours ago
Once it's rock-solid, return their modem and drop in my own. I'll eat one month of rental fee just for the simplicity of blame during the shakedown, but never more than one month.
GreyStache | 7 hours ago
In case of issues I plug in their equipment and then just sail with the standard support flow until I'm clear of first line.
myself248 | 7 hours ago
evanjrowley | 9 hours ago
nicholasjarnold | 9 hours ago
You could also determine the IP address of the TFTP server that your ISP was using to serve the modem's config files to the various nodes in your local area. Using Ethereal, again, you could dump the bytes of the config file, edit it in a text editor and then serve it from a TFTP server you had setup on a box in your home. Then you simply changed your IP address to the TFTP server's IP address, plugged the modem directly into your box and BOOM, you now turned your 8Mbps connection into a 100Mbps connection...until the next modem reboot. Good times...
[0] https://www.wireshark.org/news/20060607.html
esseph | 8 hours ago
Can confirm, did this in Mesa, Az in like 2000... Lol, we had some great quake 3 arena lan parties in the garage.
To say how this works another way, it's an arp poisoning attack where the router sees your tftp IP on the Ethernet interface first instead of on the cable interface. Once that IP was in the arp table, you could feed it a config file from your own tftp server, which is where the subscriber bandwidth limits were kept (in the modem config file sent by the tftp server). At the time, large scale subscriber equipment management was very limited.
Sometimes they'd see a subscriber was just pulling a ton of bandwidth somehow, and they'd send a tech out to replace the modem. Rinse/repeat.
FireBeyond | 8 hours ago
Anyway, I sat on a call with a L2 or L3 tech (I assume) trying all manner of things to see if we could cause a re-provisioning that was successful. No joy. An hour or more.
This was also very late at night. And at some point he realized/decided that I knew what I was doing, we could both see and understand the problem - "everything looks good, just fix this config entry and all will be well". But I couldn't do it, because I wasn't a Comcast admin. And then he said "hmm, here's what I think we do. Our admin password changes every day. I can give you the password and you can try to make the change".
I did it. And fixed.
psd1 | 4 hours ago
sslalready | 7 hours ago
This is still the case with FTTH.
oynqr | 6 hours ago
Hikikomori | an hour ago
rootsudo | 6 hours ago
wpollock | 8 hours ago
thenthenthen | 8 hours ago
viceconsole | 5 hours ago
xelxebar | 8 hours ago
stroebs | 22 minutes ago
https://github.com/djGrrr/8311-was-110-firmware-builder
protocolture | 8 hours ago
TimCTRL | 5 hours ago
That's a monthly internet package here in Uganda..haha
GJim | 2 hours ago
Geezus_42 | 8 minutes ago
azalemeth | 5 hours ago
The less compute an ISP has on your LAN, the better.
Vaushite | 5 hours ago
hdgvhicv | 4 hours ago
stroebs | 36 minutes ago
[1] https://pon.wiki/xgs-pon/ont/bfw-solutions/was-110/
ssl-3 | 4 hours ago
But my ISP's ONT is approximately the leanest little box. It uses very little power, it doesn't do any routing or wifi, and it acts like a tiny little transition between the world of internet-over-glass to internet-over-copper.
The hack-value of a spicy SFP+ module doesn't scare me at all and is kind of enticing, but I perceived zero functional advantage to rejiggering things in that way.
Instead, I perceived only disadvantages: If my fiber connection at home is ever fucked up somehow, then I want it to be un-fucked as soon as possible. The less weird stuff I have going on, the better off I'll be.
So I stopped exploring that path and decided that the ISP-supplied ONT is fine.
And anyway, that ONT is on the internet side of the firewall that I built and control. I do not care at all what the ONT might be up to, just as I don't care what any of the billions of other things that also live on the internet side of my firewall are doing.
ferngodfather | 5 hours ago
hdgvhicv | 4 hours ago
YCombinedBob | 4 hours ago
I think it is http://fritz.box/html/capture.html on your local box...
raffael_de | 3 hours ago
mrweasel | 4 hours ago
A previous ISP didn't exactly encourage using your own router, but they also didn't hide the information you needed. I really didn't want to have both their router and an access point, so I got a 3Com router with wifi built in (yes, this was a while ago). I used that thing for 12 years, before the ISP reached out letting me know that the router they originally sent me was getting really old and that they'd need to send me a new one (which was better than the old 3Com one).
If the ISPs really want to dictate which router you have, they should really provide much nicer ones. I don't get why they also have to be the shittiest one on the market. Even when they advertise "best wifi router on the market" they just mean that it sucks less than the one I get from the competitor. It's always some weird Chinese brand you've never heard of, or Zyxel.
bob1029 | 3 hours ago
With the current era of AI, I am not in the mood to be poking inbound holes in my NAT anymore. If I have something I want to be visible from the internet I'll throw in on an EC2 machine or use some kind of proxy solution.
rstreefland | 3 hours ago
spuz | 3 hours ago
un: bthomehub@btbroadband.com pw: BT or blank
Which makes me wonder, how do they identify my account and my plan?
mrktf | 2 hours ago
stroebs | 29 minutes ago
skibz | 20 minutes ago
ksec | 20 minutes ago
I want an ONT + Router in one devices. In the good old days there were at least a few choices for ADSL so I dont need to separate devices. Now it seems only Huawei does it. I would have thought UniFi would at least be interested in that as well.
If not, are there any technical reason why this isn't being done or a good idea?
kosinus | 12 minutes ago
taldo | 9 minutes ago