Hi Tweak.
Na zelf veel uitzoekwerk heb ik een Unifi USG als router ipv de Fritz!box. Erg tevreden over de snelheid en stabiliteit.
Voor de mensen die ook een usg als modem willen inzetten hierbij mijn config.gateway.json.
Met veel dank aan: http://www.nickd.nl/tweak/edgerouter/
Wat te doen om deze te gebruiken.
Mijn sparkl/canal digitaal boxen zitten op een vast ip: 10.10.10.250 & 10.10.10.251
Aan te passen in de regel services - nat - rule 2 & 3
De next hop moet het IPTV gateway adres zijn, bij mij 10.10.48.0 in de regel static - route. Het juiste IPTV gateway adres kan je achterhalen met behulp van CLI commando: netstat -rn
. De kolom Gateway toont twee gateway’s. Het adres dat met 10. begint is het juiste gateway adres.
config.gateway.json:
Configuratie bekijken
{
“firewall”: {
“source-validation”: “disable”
},
“interfaces”: {
“ethernet”: {
“eth0”: {
“description”: “WAN”,
“duplex”: “auto”,
“speed”: “auto”,
“vif”: {
“4”: {
“address”: [
“dhcp”
],
“description”: “eth0.4 - IPTV”,
“dhcp-options”: {
“client-option”: [
“send vendor-class-identifier “IPTV_RG”;”,
“request subnet-mask, routers, rfc3442-classless-static-routes;”
],
“default-route”: “no-update”,
“default-route-distance”: “210”
}
},
“34”: {
“description”: “eth0.34 - Internet”,
“address”: [
“dhcp”
],
“dhcp-options”: {
“default-route-distance”: “1”,
“default-route”: “update”,
“name-server”: “update”
},
“firewall”: {
“in”: {
“name”: “WAN_IN”
},
“local”: {
“name”: “WAN_LOCAL”
},
“out”: {
“name”: “WAN_OUT”
}
}
}
}
},
“eth2”:{
“disable”: "’’",
“duplex”: “auto”,
“speed”: “auto”
}
},
“loopback”: {
“lo”: "’’"
}
},
“protocols”: {
“igmp-proxy”: {
“interface”: {
“eth1”: {
“role”: “downstream”,
“threshold”: “1”,
“whitelist”: [
“239.0.0.0/16”,
“225.0.71.0/24”,
“224.0.0.0/16”
]
},
“eth0”: {
“role”: “disabled”,
“threshold”: “1”
},
“eth0.4”: {
“alt-subnet”: [
“0.0.0.0/0”
],
“role”: “upstream”,
“threshold”: “1”
},
“eth0.34”: {
“role”: “disabled”,
“threshold”: “1”
},
“eth2”: {
“role”: “disabled”,
“threshold”: “1”
}
}
},
“static”: {
“route”: {
“185.6.48.0/26”: {
“next-hop”: {
“10.10.48.0”: "’’"
}
}
}
}
},
“service”: {
“nat”: {
“rule”: {
“2”: {
“description”: “ipv-srtp-abox1”,
“inbound-interface”: “eth0.4”,
“inside-address”: {
“address”: “10.10.10.250”,
“port”: “555-65000”
},
“log”: “disable”,
“protocol”: “udp”,
“source”: {
“address”: “185.6.48.0/26”
},
“type”: “destination”
},
“3”: {
“description”: “ipv-srtp-abox2”,
“inbound-interface”: “eth0.4”,
“inside-address”: {
“address”: “10.10.10.251”,
“port”: “555-65000”
},
“log”: “disable”,
“protocol”: “udp”,
“source”: {
“address”: “185.6.48.0/26”
},
“type”: “destination”
},
“5000”: {
“description”: “MASQ corporate_network to IPTV network”,
“log”: “disable”,
“outbound-interface”: “eth0.4”,
“protocol”: “all”,
“type”: “masquerade”
},
“5001”: {
“description”: “MASQ corporate_network to WAN”,
“log”: “disable”,
“outbound-interface”: “eth0.34”,
“protocol”: “all”,
“type”: “masquerade”
}
}
}
}
}