Bonjour,
Voici les étapes a suivre pour faire fonctionner la LiveBox avec l'ERLite 3
Télécharger le Firmware et Logiciels
ERLite version 1.6 firmware ici
https://www.ubnt.com/download/Logiciels utilisés : Putty , WinSCP
Putty :
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlWinSCP :
http://winscp.net/eng/download.phpRaccordement ERL :
eth0 = Réseau local 192.168.1.0/24
eth1 = ONT
eth2 = LiveBox
Configurer votre carte réseau (PC)
IP :192.168.1.2
Masque : 255.255.255.0
Passerelle : 192.168.1.1
DNS : 192.168.1.1
Changer l'IP de la LiveBox en 192.168.2.21
1/ ERL en fonction, Livebox raccordé mais éteinte et PC raccordé a eth0, ouvrer votre navigateur saisir 192.168.1.1 (
Login :
ubnt Password :
ubnt ) , clic sur l'
onglet System en bas a gauche puis Upgrade System Image = Upload file (choisir le firmware précédemment téléchargé) , l'ERL va redémarrer.
2/ Ouvrer votre navigateur saisir 192.168.1.1 , dans l'onglet
System clic sur
Reset Config to Default, l'ERL va redémarrer.
3/ Lancer WinSCP IP : 192.168.1.1 port 22, copier orange.boot, script.sh, egress.sh dans le dossier config de l'ERL
4/ Lancer Putty en SSH adresse 192.168.1.1 port 22 ,
login ubnt password ubnt Entrer ceci :
configure
load orange.boot
commit
save
exit
reboot
5/ lancer Putty en SSH adresse 192.168.1.1 port 22 ,
login ubnt password ubnt , vous voici loggé sur l'ERL , entrer ceci :
apt update
apt upgrade
apt install vlan
sudo -s
chmod +x /config/script.sh
chmod +x /config/egress.sh
./config/script.sh
./config/egress.sh
Mettre en fonction la Livebox internet et téléphone = OK
Mettre en fonction le Décodeur TV = OK
orange.bootAttention a bien entrer vos identifiants (2 fois)
firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "packets from Internet to LAN"
enable-default-log
rule 1 {
action accept
description "allow established sessions"
log disable
protocol all
state {
established enable
invalid disable
new disable
related enable
}
}
rule 2 {
action drop
description "drop invalid state"
log disable
protocol all
state {
established disable
invalid enable
new disable
related disable
}
}
}
name WAN_LOCAL {
default-action drop
description "packets from Internet to the router"
rule 1 {
action accept
description "allow established session to the router"
log disable
protocol all
state {
established enable
invalid disable
new disable
related enable
}
}
rule 2 {
action drop
description "drop invalid state"
log disable
protocol all
state {
established disable
invalid enable
new disable
related disable
}
}
}
options {
mss-clamp {
mss 1452
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
interfaces {
bridge br0 {
}
ethernet eth0 {
address 192.168.1.1/24
description LAN1
duplex auto
speed auto
}
ethernet eth1 {
description Internet
duplex auto
speed auto
vif 835 {
address dhcp
description FTTH
pppoe 0 {
default-route auto
firewall {
in {
name WAN_IN
}
local {
name WAN_LOCAL
}
}
mtu 1492
name-server auto
user-id fti/xxxxxxxxx
password xxxxxxxx
}
}
vif 838 {
bridge-group {
bridge br0
}
description TV
}
vif 840 {
bridge-group {
bridge br0
}
description TV
}
vif 851 {
bridge-group {
bridge br0
}
description VoIP
}
}
ethernet eth2 {
address 192.168.2.1/24
description LAN2
duplex auto
speed auto
vif 835 {
}
vif 838 {
bridge-group {
bridge br0
}
description TV
}
vif 840 {
bridge-group {
bridge br0
}
description TV
}
vif 851 {
bridge-group {
bridge br0
}
description VoIP
}
}
loopback lo {
}
}
service {
dhcp-server {
disabled false
hostfile-update disable
shared-network-name LAN1 {
authoritative disable
subnet 192.168.1.0/24 {
default-router 192.168.1.1
dns-server 192.168.1.1
lease 86400
start 192.168.1.2 {
stop 192.168.1.200
}
}
}
shared-network-name LAN2 {
authoritative enable
subnet 192.168.2.0/24 {
default-router 192.168.2.1
dns-server 192.168.2.1
lease 86400
start 192.168.2.21 {
stop 192.168.2.200
}
}
}
}
dns {
forwarding {
cache-size 1000
listen-on eth2
listen-on eth0
}
}
gui {
https-port 443
}
mdns {
reflector
}
nat {
rule 5010 {
outbound-interface pppoe0
type masquerade
}
}
ssh {
port 22
protocol-version v2
}
upnp2 {
listen-on eth0
listen-on eth2
nat-pmp enable
secure-mode disable
wan pppoe0
}
pppoe-server {
dns-servers {
server-1 80.10.246.2
server-2 80.10.246.129
}
authentication {
local-users {
username fti/xxxxxxxx {
password xxxxxxxx
}
}
mode local
}
client-ip-pool {
start 192.168.2.210
stop 192.168.2.220
}
interface eth2.835
mtu 1492
}
}
system {
config-management {
commit-revisions 50
}
host-name ubnt
login {
user ubnt {
authentication {
encrypted-password $1$zKNoUbAo$gomzUbYvgyUMcD436Wo66.
}
level admin
}
}
name-server 8.8.8.8
name-server 8.8.4.4
ntp {
server 0.ubnt.pool.ntp.org {
}
server 1.ubnt.pool.ntp.org {
}
server 2.ubnt.pool.ntp.org {
}
server 3.ubnt.pool.ntp.org {
}
}
offload {
ipv4 {
forwarding enable
pppoe enable
vlan enable
}
}
package {
repository wheezy {
components "main contrib non-free"
distribution wheezy
password ""
url http://http.us.debian.org/debian
username ""
}
repository wheezy-security {
components main
distribution wheezy/updates
password ""
url http://security.debian.org
username ""
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level warning
}
}
}
time-zone Europe/Paris
}
/* Warning: Do not remove the following line. */
/* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@4:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.6.0beta1.4705702.140925.2253 */
Script pour le serveur-PPPOE :
script.sh#!/bin/sh -e
sed -i '/#/! s/\$str \.= "refuse-pap/#\$str \.= "refuse-pap/g' /opt/vyatta/share/perl5/Vyatta/PPPoEServerConfig.pm
sed -i '/#/! s/\$str \.= "refuse-chap/#\$str \.= "refuse-chap/g' /opt/vyatta/share/perl5/Vyatta/PPPoEServerConfig.pm
sed -i '/#/! s/\$str \.= "refuse-mschap/#\$str \.= "refuse-mschap/g' /opt/vyatta/share/perl5/Vyatta/PPPoEServerConfig.pm
sed -i '/#/! s/\$str \.= "require-mschap-v2/#\$str \.= "require-mschap-v2/g' /opt/vyatta/share/perl5/Vyatta/PPPoEServerConfig.pm
script
egress.sh :
#!/bin/sh -e
for i in $(seq 0 7);do
/sbin/vconfig set_egress_map eth1.838 $i 4
/sbin/vconfig set_egress_map eth1.840 $i 5
/sbin/vconfig set_egress_map eth1.851 $i 6
done