Projet

Général

Profil

Livebox FTTH

Remplacer la Livebox par Openwrt

Internet

Brancher le convertisseur fibre sur le port wan de l'openwrt, puis dans l'interface WEB:

  • Dans "Network -> Switch", Ajouter un vlan 835 surle port "WAN" (Port 0 sur tplink 1043nd) en tagged et le port "CPU" en tagged
  • Dans "Network -> Interface" modifier l'interface WAN, comme suis:
    • Choisir Protocol "PPPoE" et cliquer sur "Switch Protocol"
    • Remplier "PAP/CHAP username" et "PAP/CHAP password" avec les logins/password envoyé à l'ouverture de la ligne Fibre
    • Dans l'onglet "Phisical Settings" choisir l'intertace "VLAN Interface: "ethX.835" (eth0.835 sur tplink 1043nd)
  • Save and apply

Les logs openwrt montrent quelque chose comme ça:

Sun Jun 22 10:24:19 2014 daemon.notice netifd: Interface 'WAN' is setting up now
Sun Jun 22 10:24:19 2014 daemon.info pppd[1866]: Plugin rp-pppoe.so loaded.
Sun Jun 22 10:24:19 2014 daemon.info pppd[1866]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Sun Jun 22 10:24:19 2014 daemon.notice pppd[1866]: pppd 2.4.5 started by root, uid 0
Sun Jun 22 10:24:19 2014 daemon.info pppd[1866]: PPP session is 225
Sun Jun 22 10:24:19 2014 daemon.warn pppd[1866]: Connected to XX:XX:XX:XX:XX:XX via interface eth0.835
Sun Jun 22 10:24:19 2014 daemon.info pppd[1866]: Using interface pppoe-WAN
Sun Jun 22 10:24:19 2014 daemon.notice pppd[1866]: Connect: pppoe-WAN <--> eth0.835
Sun Jun 22 10:24:19 2014 daemon.info pppd[1866]: CHAP authentication succeeded: CHAP authentication success, unit 6776
Sun Jun 22 10:24:19 2014 daemon.notice pppd[1866]: CHAP authentication succeeded
Sun Jun 22 10:24:19 2014 daemon.notice pppd[1866]: peer from calling number XX:XX:XX:XX:XX:XX authorized
Sun Jun 22 10:24:19 2014 daemon.notice pppd[1866]: local  IP address X.X.X.X
Sun Jun 22 10:24:19 2014 daemon.notice pppd[1866]: remote IP address X.X.X.X
Sun Jun 22 10:24:19 2014 daemon.notice pppd[1866]: primary   DNS address X.X.X.X
Sun Jun 22 10:24:19 2014 daemon.notice pppd[1866]: secondary DNS address X.X.X.X
Sun Jun 22 10:24:19 2014 daemon.notice netifd: Network device 'pppoe-WAN' link is up
Sun Jun 22 10:24:19 2014 daemon.notice netifd: Interface 'WAN' is now up
Sun Jun 22 10:24:19 2014 user.notice firewall: Reloading firewall due to ifup of WAN (pppoe-WAN)

Télévision

Il faut un bridge dhcp (avec des options dhcp particuliere) sur 4 vlan 838,839,840,841 puis faire du routage multicast des flux TV sur sont LAN.

Il est recommandé que le décodeur TV soit branché sur le router en direct sans wifi/cpl (au moins pendant le test pour être sur que y'a assez de débit pour le multicast des flux TV)

La suite utilise f0:82:61:c9:ed:ad et f0:82:61:c9:ed:b1 comme addresse mac de livebox
  • la première adresse mac est inscrite derrière la livebox
  • la seconde il faut ajouter 4 en hexa au la dernier partie de la mac précédente

Configuration:

  • Dans "Network -> Switch", Ajouter les vlan 839 à 841 sur le port "WAN" (Port 0 sur tplink 1043nd) en tagged et le port "CPU" en tagged
  • Dans "Network" -> "Interfaces" Cliquer sur "Add new interface.."
    • "Name" -> "Video"
    • "Create a bridge over multiple interfaces" -> Cocher
    • "Protocol of the new interface" -> "DHCP Client"
    • "Cover the following interface" -> VLANS eth0.838, eth0.839, eth0.840, eth0.841
    • "Submit"
  • Dans "Advanced Settings"
    • "Bring up on boot" -> Cocher
    • "Use builtin IPv6-management" -> Décoher
    • "Use broadcast flag" -> Cocher
    • "Use default gateway" -> Décocher
    • "Use DNS servers advertised by peer" -> Décocher
    • "Vendor Class" -> "sagem -o"
    • "Override MAC address" -> "f0:82:61:c9:ed:ad" Remplacer la mac addresse par la premier de la box"
    • "Firewall Settings" -> "Assign to zone WAN"
    • "Save And Apply"
Ensuite en ligne de commande, on force:
  • les flags dhcp à demander "subnet-mask, routers, ntp-servers, www-server"
  • les flags dhcp à envoyer "user-class (option 77)" avec 'FSVDSL_livebox.MLTV.softathome.Livebox3' et "dhcp-client-identifier (option 61)" avec la mac adresse prefixé de 01
uci set network.video.reqopts=0x01 0x03 0x2A 0x48 0x79
uci set network.video.sendopts=0x4D:2746535644534c5f6c697665626f782e4d4c54562e736f66746174686f6d652e4c697665626f7833 0x3D:01f08261c9edb1     # <-- Noter ici la seconde mac adresse de la livebox ie: 0x3D:01<MAC>
uci commit

On installe ensuite igmproxy:

$ opkg update
$ opkg install igmproxy luci-app-upnp
$ cat /etc/config/igmpproxy 
config igmpproxy
    option quickleave 1

config phyint
    option network video
    option direction upstream
    list altnet "0.0.0.0/0" 
    #list altnet "193.0.0.0/8 81.0.0.0/8 172.0.0.0/8 80.0.0.0/8 224.0.0.1/8" 

config phyint
    option network lan
    option direction downstream
    list altnet "0.0.0.0/0" 

$ /etc/init.d/miniupnpd enable
$ /etc/init.d/miniupnpd restart

$ /etc/init.d/igmpproxy enable
$ /etc/init.d/igmpproxy restart

$ ip mroute    # Juste un example de sorti quand le décodeur TV est allumé
(193.253.148.17, 232.0.6.10)     Iif: br-video   Oifs: br-lan 
(192.168.1.12, 239.255.255.250)  Iif: br-video   Oifs: br-lan 
(192.168.1.10, 239.255.255.250)  Iif: br-video   Oifs: br-lan 
(192.168.1.200, 239.255.255.250) Iif: br-video   Oifs: br-lan 
(10.193.247.246, 232.0.6.10)     Iif: unresolved 

source

http://benjamin.sonntag.fr/spip.php?page=forum&id_article=43&id_forum=60&lang=fr
https://lafibre.info/remplacer-livebox/remplacer-sa-livebox-par-un-routeur-pfsense/?PHPSESSID=ia0l23l2sdfio4fs0hlro44gi6
https://lafibre.info/remplacer-livebox/remplacement-lb-trouver-son-identifiant-dhcp-pour-la-tv/