03 | KPN - IPTV
In deze instructie maken we gebruik van VLAN1003 als IPTV VLAN
Stap 1 - VLAN 4 aanmaken
config system interface
edit "KPN-IPTV-VL4"
set vdom "root"
set mode dhcp
config client-options
edit 1
set code 60
set type string
set value "IPTV_RG"
next
edit 2
set code 55
set value "79"
next
end
set distance 10
set role wan
set dns-server-override disable
set interface "wan1"
set vlanid 4
next
end
Stap 2 - Statische route aanmaken
config router static
edit 0
set dst 213.75.112.0 255.255.248.0
set device "KPN-IPTV-VL4"
set dynamic-gateway enable
next
end
Stap 3 - IPTV VLAN aanmaken
config system interface
edit VLAN1003
set vdom "root"
set ip 10.10.3.6 255.255.255.248
set role lan
set interface "LACP" ## Replace with physical interface
set vlanid 1003
next
end
Stap 4 - DHCP server aanmaken
config system dhcp server
edit 0
set ntp-service local
set default-gateway 10.10.3.6
set netmask 255.255.255.248
set interface "VLAN1003"
config ip-range
edit 1
set start-ip 10.10.3.1
set end-ip 10.10.3.5
next
end
set dns-server1 195.121.1.34
set dns-server2 195.121.1.66
next
end
Stap 5 - Multicast policies aanmaken
config firewall multicast-policy
edit 0
set name "iTV > KPN"
set logtraffic enable
set srcintf "VLAN1003" ## Replace with IPTV VLAN
set dstintf "KPN-IPTV-VL4"
set srcaddr "all"
set dstaddr "all"
set snat enable
next
edit 0
set name "KPN > iTV"
set logtraffic enable
set srcintf "KPN-IPTV-VL4"
set dstintf "VLAN1003" ## Replace with IPTV VLAN
set srcaddr "all"
set dstaddr "all"
next
end
Stap 6 - IPTV policy maken richting KPN
config firewall policy
edit 0
set name "IPTV to KPN"
set srcintf "VLAN1003" ## Replace with IPTV VLAN
set dstintf "KPN-IPTV-VL4"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ALL"
set logtraffic all
set nat enable
next
end
Stap 7 - Internet policy maken voor TV ontvanger
Deze stap is bedoeld om streamingsdiensten zoals Netflix of Spotify te laten werken
config firewall policy
edit 0
set name "IPTV to internet"
set srcintf "VLAN1003" ## Replace with IPTV VLAN
set dstintf "KPN-INET-VL6"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ALL"
set logtraffic all
set nat enable
next
end