Using bridge mode allows you to get a public IP address on one computer (which can serve as a router) behind your modem. This allows you to know your public IP address without using a third-party service, and control more finely all your routing parameters inside your own Linux-based router (this tutorial) or a better router than the BBOX’s one (which is not that bad, now that I can, unfortunately, compare with VOO…). We’ll call “the router” the device you want to use behind the modem for clarity.
The bridge mode of the Proximus BBOX 3 is quite interesting. You connect normally to your BBOX using DHCP and will get a locally routable address (i.e 192.168…), but you can use PPP over Ethernet (PPPoE) to get a virtual interface inside your router. This virtual “ppp” interface will have a public IP address, and packets will flow IN and OUT the internet through that interface.
Proximus allows you to therefore maintain 2 PPP connections, one established in the BBOX (also used for the TV), and the other inside your router. It also means your home gets 2 IPv4 addresses.
I prefer that mode to the VOO one, where the external IP address is given by DHCP to only one host in the LAN, the first device to connect to the router using DHCP (dangerous and prone to configuration errors…). Same and independently for IPv6 using DHCPv6. While Proximus not only gives you an IPv6 address but also a /64 prefix via PPPoE to get a direct connection without using a crappy NAT to all your PCs. For IPv6, Proximus is much simpler than setting up an independent DHCPv6 client which gives back the v6 prefix to your LAN side. The second downside is that VOO must use ugly hacks to allow connection to the box as there is no “modem internal network” anymore. You can access your modem at the normally-illegal 192.168.100.1 address as this is on the “public web” space from the router perspective.
Moreover, it seems that the modem stops responding to DHCP requests from time to time, losing connectivity… VOO bridge mode is definitively not good… But this may be a temporary bug. I did not observe this anymore…
The bridge part
Edit /etc/network/interfaces to add the following lines , assuming that eth0 is the interface used to connect to your BBOX.
iface dsl-provider inet ppp
pre-up /bin/ip link set eth0 up
Install pppoe with sudo apt-get install pppoe on ubuntu/debian or sudo yum install pppoe centos/fedora
Then create a file named /etc/ppp/peers/dsl-provider and add the following lines :
plugin rp-pppoe.so eth0
Then edit the file /etc/ppp/chap-secrets and add the line :
"fc012345@skynet" * "password"
If you lost your skynet credentials (personally, I just never received them), you can change them online on MyProximus. You’ll have to reboot your modem so it receives automatically the new credentials.
And that’s all, you can reboot or do a sudo pon dsl-provider and you’ll have a new interface with a public IPv4 and a /64 IPv6.
The router part
To give connectivity in IPv4 for your hosts and use your Linux host as a router, you’ll have to NAT. But you can delegate your IPv6 range and give public IPv6 addresses to all your PCs using SLAAC! Remember to also install a firewall…
To do so, install radvd and add in /etc/radvd.conf (if br0 is the interface connected to your internal network) :
RDNSS 2001:4860:4860::8888 2001:4860:4860::8844
# AdvRDNSSLifetime 3600;
Then do a sudo radvd restart and that’s it.
The RDNSS line give the address of Google’s public DNS to your host. We could use Proximus’ one, but I don’t have the address on hand.
Note that I write this tuto only now but I did this month ago, I may have forgotten some steps, do not hesitate to contact me 😉