eth0 is de WAN interface en switch0 is de LAN kant.
Code: Selecteer alles
interfaces {
ethernet eth0 {
vif 10 {
description Internet
pppoe 0 {
default-route force
description Proximus
mtu 1492
name-server auto
password ****************
user-id ********@SKYNET
}
}
vif 30 {
address dhcp
description "eth0.30 - IPTV"
dhcp-options {
client-option "send vendor-class-identifier "IPTV.xxxxxx.HGW_SagemCom,Fast5336v,8c.310A,LKXXXXXXXXXXXXX";"
client-option "request subnet-mask, time-servers, domain-name-servers, host-name, domain-name, root-path, static-routes, ntp-servers, tftp-server-name, bootfile-name, rfc3442-classless-static-routes;"
default-route no-update
default-route-distance 210
name-server update
}
}
}
}
protocols {
igmp-proxy {
interface eth0.30 {
alt-subnet 195.238.0.0/16
alt-subnet 195.13.12.128/26
alt-subnet 172.28.32.0/20
alt-subnet 81.245.3.128/26
alt-subnet 10.88.0.0/16
alt-subnet 10.48.22.128/26
alt-subnet 10.53.64.0/21
alt-subnet 10.53.72.0/23
role upstream
threshold 1
}
interface switch0 {
role downstream
threshold 1
}
}
static {
route 10.48.22.128/26 {
next-hop 10.156.0.1 {
}
}
route 10.53.64.0/21 {
next-hop 10.156.0.1 {
}
}
route 10.53.72.0/23 {
next-hop 10.156.0.1 {
}
}
route 10.154.0.1/32 {
next-hop 10.156.0.1 {
}
}
route 81.245.3.128/26 {
next-hop 10.156.0.1 {
}
}
route 172.28.32.0/20 {
next-hop 10.156.0.1 {
}
}
route 195.13.12.128/26 {
next-hop 10.156.0.1 {
}
}
route 195.238.8.64/28 {
next-hop 10.156.0.1 {
}
}
route 195.238.9.0/24 {
next-hop 10.156.0.1 {
}
}
route 195.238.11.128/28 {
next-hop 10.156.0.1 {
}
}
route 195.238.11.160/27 {
next-hop 10.156.0.1 {
}
}
route 195.238.13.160/27 {
next-hop 10.156.0.1 {
}
}
route 195.238.13.192/26 {
next-hop 10.156.0.1 {
}
}
route 195.238.14.0/24 {
next-hop 10.156.0.1 {
}
}
route 195.238.15.32/27 {
next-hop 10.156.0.1 {
}
}
route 195.238.16.0/26 {
next-hop 10.156.0.1 {
}
}
route 195.238.16.128/27 {
next-hop 10.156.0.1 {
}
}
route 195.238.26.32/27 {
next-hop 10.156.0.1 {
}
}
route 195.238.26.160/27 {
next-hop 10.156.0.1 {
}
}
route 195.238.27.0/24 {
next-hop 10.156.0.1 {
}
}
route 195.238.29.0/24 {
next-hop 10.156.0.1 {
}
}
route 195.238.30.0/28 {
next-hop 10.156.0.1 {
}
}
route 195.238.30.64/26 {
next-hop 10.156.0.1 {
}
}
route 195.238.30.192/26 {
next-hop 10.156.0.1 {
}
}
route 195.238.31.0/28 {
next-hop 10.156.0.1 {
}
}
route 195.238.31.64/26 {
next-hop 10.156.0.1 {
}
}
route 195.238.31.192/26 {
next-hop 10.156.0.1 {
}
}
}
}
service {
dhcp-server {
shared-network-name DHCP {
authoritative enable
subnet x.x.x.x/xx {
static-mapping ProximusDecoder {
ip-address x.x.x.x
mac-address xx:xx:xx:xx:xx:xx
static-mapping-parameters "filename "CVT/2/239.255.1.218:64010+SA=239.255.1.218:64010+SAP/3/239.192.4.63:9875";"
static-mapping-parameters "option ntp-servers 195.238.16.143,195.238.16.43,195.238.16.144,195.238.16.44;"
static-mapping-parameters "option domain-name-servers 195.238.16.147, 195.238.16.47, 195.238.16.148, 195.238.16.48, 8.8.8.8, 8.8.4.4;"
}
}
}
}
nat {
rule 5001 {
description "PAT IPTV"
destination {
group {
}
}
log disable
outbound-interface eth0.30
protocol all
source {
}
type masquerade
}
rule 5004 {
description PAT
log disable
outbound-interface pppoe0
protocol all
type masquerade
}
}
}