Auteur Sujet: Remplacer sa Livebox par un routeur Ubiquiti Edgemax  (Lu 1526254 fois)

0 Membres et 2 Invités sur ce sujet

hoyohoyo

  • Abonné Free fibre
  • *
  • Messages: 352
  • Fibre Free
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3384 le: 13 novembre 2017 à 22:11:37 »
Bonjour, une personne a tester les nouvelles mise à jours ?

Je suis en : v1.9.1.1 et sur le site il ont publié la version v1.9.7+hotfix.4

Je@nb

  • Abonné Orange Fibre
  • *
  • Messages: 144
  • Paris 8ème (75)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3385 le: 14 novembre 2017 à 09:51:30 »
Ouais suis en 1.9.7h4 no pb :)

jimbuch

  • Abonné Orange Fibre
  • *
  • Messages: 11
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3386 le: 17 novembre 2017 à 13:34:35 »
Hello :)

I've got problem with configuration Edge Router Lite 3 for Orange triple play in Poland (TV, VOD, FIBRE) - POE.

On the first view everything looks good, TV, VOD and NET are working. But...
when I'm watching TV and the other person are using net the TV stream shows lags/freezes/frags.

What is wrong in my configuration?

Thank you  :)

ERL3:
port 1: ONT
port 2: TV decoder Samsung ICU100
port 3: router Linksys EA7500

Router has got static IP 192.168.1.39
ERL3 has got open ports:
- 81, 10554, 10080 for ip webcam
- 80, 443 for access to ERL3 outside wifi
DNS in ddns.net

firewall {
    all-ping enable
    broadcast-ping disable
    group {
    }
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        rule 10 {
            action accept
            description 80
            destination {
                address 192.168.1.1
                port 80
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 20 {
            action accept
            description 443
            destination {
                address 192.168.1.1
                port 443
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 30 {
            action accept
            description 81
            destination {
                address 192.168.1.39
                port 81
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 40 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 50 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            description 80
            destination {
                address 192.168.1.1
                port 80
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 20 {
            action accept
            description 443
            destination {
                address 192.168.1.1
                port 443
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 30 {
            action accept
            description 81
            destination {
                address 192.168.1.39
                port 81
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 40 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 50 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    options {
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        description WAN
        duplex auto
        mtu 1540
        speed auto
        vif 35 {
            description "Internet ONT"
            egress-qos "0:0 1:0 2:0 3:0 4:0 5:0 6:6 7:0"
            mtu 1540
            pppoe 0 {
                default-route force
                firewall {
                    in {
                        name WAN_IN
                    }
                    local {
                        name WAN_LOCAL
                    }
                }
                mtu 1500
                name-server auto
                password XXXXX
                user-id XXXXX@neostrada.pl
            }
        }
        vif 838 {
            address dhcp
            description "VOD ONT"
            dhcp-options {
                client-option "send vendor-class-identifier "sagemcom";"
                client-option "send dhcp-client-identifier 1:XX:XX:XX:XX:XX:XX;"
                client-option "send user-class "\038FSVDSL_funbox2.MLTV.softathome.Funbox2";"
                client-option "request subnet-mask,routers,rfc3442-classless-static-routes;"
                default-route update
                default-route-distance 210
                name-server update
            }
            egress-qos "0:4 1:4 2:4 3:4 4:4 5:4 6:4 7:4"
            mtu 1540
        }
        vif 839 {
            address 192.168.3.1/24
            description "TV ONT"
            egress-qos "0:5 1:5 2:5 3:5 4:5 5:5 6:5 7:5"
            mtu 1540
        }
    }
    ethernet eth1 {
        address 192.168.2.1/24
        description TV
        duplex auto
        speed auto
    }
    ethernet eth2 {
        address 192.168.1.1/24
        description LAN
        duplex auto
        speed auto
    }
    loopback lo {
    }
}
port-forward {
    auto-firewall enable
    hairpin-nat enable
    lan-interface eth2
    rule 1 {
        description Linksys
        forward-to {
            address 192.168.1.39
            port 81
        }
        original-port 81
        protocol tcp_udp
    }
    rule 2 {
        description Linksys_RTSP
        forward-to {
            address 192.168.1.39
            port 10554
        }
        original-port 10554
        protocol tcp_udp
    }
    rule 3 {
        description Linksys_ONVIF
        forward-to {
            address 192.168.1.39
            port 10080
        }
        original-port 10080
        protocol tcp_udp
    }
    rule 4 {
        description UBNT
        forward-to {
            address 192.168.1.1
            port 80
        }
        original-port 80
        protocol tcp_udp
    }
    rule 5 {
        description UBNT2
        forward-to {
            address 192.168.1.1
            port 443
        }
        original-port 443
        protocol tcp_udp
    }
    wan-interface pppoe0
}
protocols {
    igmp-proxy {
        interface eth0.35 {
            role disabled
            threshold 1
        }
        interface eth0.838 {
            role disabled
            threshold 1
        }
        interface eth0.839 {
            alt-subnet 0.0.0.0/0
            role upstream
            threshold 1
        }
        interface eth1 {
            alt-subnet 0.0.0.0/0
            role downstream
            threshold 1
        }
        interface eth2 {
            role disabled
            threshold 1
        }
        interface pppoe0 {
            role disabled
            threshold 1
        }
    }
    static {
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name FunBox {
            authoritative enable
            subnet 192.168.2.0/24 {
                default-router 192.168.2.1
                dns-server 194.204.152.34
                dns-server 194.204.159.1
                lease 86400
                start 192.168.2.30 {
                    stop 192.168.2.50
                }
            }
        }
        shared-network-name LAN {
            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.38 {
                    stop 192.168.1.243
                }
                static-mapping Linksys13822 {
                    ip-address 192.168.1.39
                    mac-address XX:XX:XX:XX:XX:XX
                }
            }
        }
        use-dnsmasq disable
    }
    dns {
        dynamic {
            interface pppoe0 {
                service custom-noip {
                    host-name XXXXX.ddns.net
                    login XXXXX
                    password XXXXX
                    protocol noip
                }
            }
        }
        forwarding {
            cache-size 1000
            listen-on eth2
            listen-on eth1
        }
    }
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    nat {
        rule 5010 {
            description "masquerade for WAN"
            log disable
            outbound-interface pppoe0
            protocol all
            type masquerade
        }
        rule 5011 {
            description "masquerade for WAN"
            log disable
            outbound-interface eth0.838
            protocol all
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
    upnp2 {
        listen-on eth2
        nat-pmp enable
        port 34651
        secure-mode enable
        wan pppoe0
    }
}
system {
    conntrack {
        expect-table-size 4096
        hash-size 4096
        modules {
            sip {
                disable
            }
        }
        table-size 32768
        tcp {
            half-open-connections 512
            loose disable
            max-retrans 3
        }
    }
    host-name ubnt
    login {
        user ubnt {
            authentication {
                encrypted-password XXXXX.
                plaintext-password ""
            }
            full-name ""
            level admin
        }
    }
    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 {
        hwnat disable
        ipsec enable
        ipv4 {
            forwarding enable
            pppoe enable
            vlan enable
        }
        ipv6 {
            forwarding enable
        }
    }
    package {
        repository debian {
            components main
            distribution wheezy
            password ""
            url http://ftp.us.debian.org/debian
            username ""
        }
        repository wheezy {
            components "main contrib non-free"
            distribution wheezy
            password ""
            url http://http.us.debian.org/debian
            username ""
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone Europe/Warsaw
    traffic-analysis {
        dpi enable
        export enable
    }
}


/* 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@5:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-unms@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.9.7+hotfix.4.5024004.171005.0403 */

vtimd

  • Abonné Orange Fibre
  • *
  • Messages: 1 211
  • Saint Martin d'Hères 38
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3387 le: 17 novembre 2017 à 13:41:23 »

I guess it's linked to the IGMP multicast.

jimbuch

  • Abonné Orange Fibre
  • *
  • Messages: 11
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3388 le: 17 novembre 2017 à 13:58:38 »
@vtimd

thank you for the reply.

Can you explain what shoud i change in my config? I am a basic user.

Thank you :)

vtimd

  • Abonné Orange Fibre
  • *
  • Messages: 1 211
  • Saint Martin d'Hères 38
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3389 le: 17 novembre 2017 à 14:47:16 »
@vtimd

thank you for the reply.

Can you explain what shoud i change in my config? I am a basic user.

Thank you :)

 I'm not sure 100%, I'm not an ERL user. I just already read somethings about freeze when you watch the TV and use internet at the same time.
Maybe you can search "IGMP" on this forum and/or contact the Ubiquiti support to have more details.

MikeTheFreeman

  • Abonné Orange Fibre
  • *
  • Messages: 243
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3390 le: 17 novembre 2017 à 21:54:29 »
@jimbuch : I have some trouble to review your config.

It mixes some element from a pppoe config with other from a dhcp config.
Obviously, the setup isn't the same as french config (hence the vlan 35 for the internet) but that still doesn't make sense.
About the issue with TV, you might google also about quickleave igmp feature to found useful information.
But it's maybe an issue with your config (CoS etc).

jimbuch

  • Abonné Orange Fibre
  • *
  • Messages: 11
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3391 le: 18 novembre 2017 à 19:38:33 »
Thanks for tips. This config was made from few configs from this forum. Can you tell me which parts are from dhcp and should be deleted? You can edit my config :)

MikeTheFreeman

  • Abonné Orange Fibre
  • *
  • Messages: 243
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3392 le: 18 novembre 2017 à 22:07:39 »
Can you do a show interfaces in ssh terminal so we can see where the public ip is ? Hide the ip with some kind of xxx character, we only need to know which interface got it (pppoe or the vif).
You appear to use a tv box (Funbox), is it provided by Orange ? Did you plug it directly on the ERL or did you left it on the Orange router ?
Your appear to have opened the web admin interface of the ERL, is it intentional ? (this is not recommended by the way).

Since you have a working config, where did you got your current settings ? (vif 35, vif 839 etc).
These aren't used in France.

jimbuch

  • Abonné Orange Fibre
  • *
  • Messages: 11
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3393 le: 19 novembre 2017 à 03:19:25 »
show interfaces
ubnt@ubnt:~$ show interfaces                                                   
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down                   
Interface    IP Address                        S/L  Description                 
---------    ----------                        ---  -----------                 
eth0         -                                 u/u  WAN                         
eth0.35      -                                 u/u  Internet ONT               
eth0.838     -                                 u/u  VOD ONT                     
eth0.839     192.168.3.1/24                    u/u  TV ONT                     
eth1         192.168.2.1/24                    u/u  TV                         
eth2         192.168.1.1/24                    u/u  LAN                         
lo           127.0.0.1/8                       u/u                             
             ::1/128                                                           
pppoe0       79.163.191.232                    u/u                             

I have tv box from Orange Poland (Funbox), but I don't use it in my configuration. It is not plugged anywhere. The tv works without it - Edge Router Lite 3 replacing it.

Edge Router Lite 3 ports:
port 1: ONT
port 2: TV decoder Samsung ICU100
port 3: router Linksys EA7500

I have opened web admin interface - i did it because sometimes i needed to restart Edge Router when I wasn't at home. Now I don't do that, because this config is working, but only freezes happening in tv stream.

Orange Poland vlans:
VIF 35 - internet
VIF 838 - streaming vod, program tv, STB clock, unicast
VIF 839 - streaming tv + channel zapping, multicast

Thank you for the reply.

MikeTheFreeman

  • Abonné Orange Fibre
  • *
  • Messages: 243
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3394 le: 19 novembre 2017 à 21:22:49 »
Ok, you appear to connect through pppoe so I've merge your config with this template :
I've removed the unnecessary things but keep in mind that some parts are maybe different for France compared to Poland.
I left your firewall rules and all other thing that were on your config.

Anyway, this kind of change never go smoothly so do a backup of your current config if you need to revert quickly the changes to retrieve basic functionalities.
Obsiously, you will need to replace some strings by yours (TV decoder mac address, pppoe credentials, ddns.net credentials etc).

firewall {
    all-ping enable
    broadcast-ping disable
    group {
    }
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        rule 10 {
            action accept
            description 80
            destination {
                address 192.168.1.1
                port 80
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 20 {
            action accept
            description 443
            destination {
                address 192.168.1.1
                port 443
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 30 {
            action accept
            description 81
            destination {
                address 192.168.1.39
                port 81
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 40 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 50 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            description 80
            destination {
                address 192.168.1.1
                port 80
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 20 {
            action accept
            description 443
            destination {
                address 192.168.1.1
                port 443
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 30 {
            action accept
            description 81
            destination {
                address 192.168.1.39
                port 81
            }
            log disable
            protocol tcp_udp
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 40 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 50 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    options {
mss-clamp {
            interface-type pppoe
            mss 1452
}
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    bridge br0 {
        address dhcp
        aging 300
        bridged-conntrack disable
        description "TV - VOD"
        dhcp-options {
                client-option "send vendor-class-identifier "sagemcom";"
                client-option "send dhcp-client-identifier 1:XX:XX:XX:XX:XX:XX;"
                client-option "send user-class "\038FSVDSL_funbox2.MLTV.softathome.Funbox2";"
                client-option "request subnet-mask,routers,rfc3442-classless-static-routes;"
        }
        hello-time 2
        max-age 20
        priority 32768
        promiscuous disable
        stp false
    }   
    ethernet eth0 {
        description WAN
        duplex auto
        speed auto
        vif 35 {
            description "Internet ONT"
            pppoe 0 {
                default-route auto
description "FTTH Orange"
firewall {
                    in {
                        name WAN_IN
                    }
                    local {
                        name WAN_LOCAL
                    }
                }
                mtu 1492
                name-server auto
                password XXXXX
                user-id XXXXX@neostrada.pl
            }
        }
        vif 838 {
            bridge-group {
                bridge br0
            }
            description "VLAN TV VOD"
            egress-qos "0:4 1:4 2:4 3:4 4:4 5:4 6:4 7:4"
}
        vif 839 {
            bridge-group {
                bridge br0
            }
            description "VLAN TV Canal 1 - Zap"
            egress-qos "0:5 1:5 2:5 3:5 4:5 5:5 6:5 7:5"
}
    }
    ethernet eth1 {
        address 192.168.2.1/24
        description TV
        duplex auto
        speed auto
    }
    ethernet eth2 {
        address 192.168.1.1/24
        description LAN
        duplex auto
        speed auto
    }
    loopback lo {
    }
}
port-forward {
    auto-firewall enable
    hairpin-nat enable
    lan-interface eth2
    rule 1 {
        description Linksys
        forward-to {
            address 192.168.1.39
            port 81
        }
        original-port 81
        protocol tcp_udp
    }
    rule 2 {
        description Linksys_RTSP
        forward-to {
            address 192.168.1.39
            port 10554
        }
        original-port 10554
        protocol tcp_udp
    }
    rule 3 {
        description Linksys_ONVIF
        forward-to {
            address 192.168.1.39
            port 10080
        }
        original-port 10080
        protocol tcp_udp
    }
    rule 4 {
        description UBNT
        forward-to {
            address 192.168.1.1
            port 80
        }
        original-port 80
        protocol tcp_udp
    }
    rule 5 {
        description UBNT2
        forward-to {
            address 192.168.1.1
            port 443
        }
        original-port 443
        protocol tcp_udp
    }
    wan-interface pppoe0
}
protocols {
    igmp-proxy {
disable-quickleave       
        interface br0 {
            alt-subnet 0.0.0.0/0
            role upstream
            threshold 1
}
        interface eth1 {
            alt-subnet 0.0.0.0/0
            role downstream
            threshold 1
        }
        interface eth2 {
            role disabled
            threshold 1
        }
    }
    static {
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name FunBox {
            authoritative enable
            subnet 192.168.2.0/24 {
                default-router 192.168.2.1
                dns-server 194.204.152.34
                dns-server 194.204.159.1
                lease 86400
                start 192.168.2.30 {
                    stop 192.168.2.50
                }
            }
        }
        shared-network-name LAN {
            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.38 {
                    stop 192.168.1.243
                }
                static-mapping Linksys13822 {
                    ip-address 192.168.1.39
                    mac-address XX:XX:XX:XX:XX:XX
                }
            }
        }
        use-dnsmasq disable
    }
    dns {
        dynamic {
            interface pppoe0 {
                service custom-noip {
                    host-name XXXXX.ddns.net
                    login XXXXX
                    password XXXXX
                    protocol noip
                }
            }
        }
        forwarding {
            cache-size 1000
            listen-on eth2
            listen-on eth1
        }
    }
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    nat {
        rule 5010 {
            description "masquerade for WAN"
            log disable
            outbound-interface pppoe0
            protocol all
            type masquerade
        }
        rule 5011 {
            description "masquerade for Funbox"
            log disable
            outbound-interface br0
            protocol all
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
    upnp2 {
        listen-on eth2
        nat-pmp enable
        port 34651
        secure-mode enable
        wan pppoe0
    }
}
system {
    conntrack {
        expect-table-size 4096
        hash-size 4096
        modules {
            sip {
                disable
            }
        }
        table-size 32768
        tcp {
            half-open-connections 512
            loose disable
            max-retrans 3
        }
    }
    host-name ubnt
    login {
        user ubnt {
            authentication {
                encrypted-password XXXXX.
                plaintext-password ""
            }
            full-name ""
            level admin
        }
    }
    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 {
        hwnat disable
        ipsec enable
        ipv4 {
            forwarding enable
            pppoe enable
            vlan enable
        }
        ipv6 {
            forwarding enable
        }
    }
    package {
        repository debian {
            components main
            distribution wheezy
            password ""
            url http://ftp.us.debian.org/debian
            username ""
        }
        repository wheezy {
            components "main contrib non-free"
            distribution wheezy
            password ""
            url http://http.us.debian.org/debian
            username ""
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone Europe/Warsaw
    traffic-analysis {
        dpi enable
        export enable
    }
}


/* 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@5:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-unms@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.9.7+hotfix.4.5024004.171005.0403 */

This script rfc3442-classless-routes, must be present on this path /etc/dhcp3/dhclient-exit-hooks.d/ with the right permissions (755) :
# set classless routes based on the format specified in RFC3442
# e.g.:
#   new_rfc3442_classless_static_routes='24 192 168 10 192 168 1 1 8 10 10 17 66 41'
# specifies the routes:
#   192.168.10.0/24 via 192.168.1.1
#   10.0.0.0/8 via 10.10.17.66.41

RUN="yes"


if [ "$RUN" = "yes" ]; then
if [ -n "$new_rfc3442_classless_static_routes" ]; then
if [ "$reason" = "BOUND" ] || [ "$reason" = "REBOOT" ]; then

set -- $new_rfc3442_classless_static_routes

while [ $# -gt 0 ]; do
net_length=$1
via_arg=''

case $net_length in
32|31|30|29|28|27|26|25)
net_address="${2}.${3}.${4}.${5}"
gateway="${6}.${7}.${8}.${9}"
shift 9
;;
24|23|22|21|20|19|18|17)
net_address="${2}.${3}.${4}.0"
gateway="${5}.${6}.${7}.${8}"
shift 8
;;
16|15|14|13|12|11|10|9)
net_address="${2}.${3}.0.0"
gateway="${4}.${5}.${6}.${7}"
shift 7
;;
8|7|6|5|4|3|2|1)
net_address="${2}.0.0.0"
gateway="${3}.${4}.${5}.${6}"
shift 6
;;
0) # default route
net_address="0.0.0.0"
gateway="${2}.${3}.${4}.${5}"
shift 5
;;
*) # error
return 1
;;
esac

# take care of link-local routes
if [ "${gateway}" != '0.0.0.0' ]; then
via_arg="via ${gateway}"
fi

# set route (ip detects host routes automatically)
ip -4 route add "${net_address}/${net_length}" \
${via_arg} dev "${interface}" >/dev/null 2>&1
done
fi
fi
fi

jimbuch

  • Abonné Orange Fibre
  • *
  • Messages: 11
Remplacer sa Livebox par un routeur Ubiquiti Edgemax
« Réponse #3395 le: 19 novembre 2017 à 22:06:30 »
i can't apply this config file. The Edge Router Lite 3 says:

Config Update Failed
There was an error upgrading the configuration
CONFIG request failed



There must be some error  :'(