Goedemiddag,
Een klein poosje geleden heb ik een MikroTik RB4011 aangeschaft om de door KPN aangeleverde ExperiaBox te vervangen. De MikroTik moet zowel internet als routed IPTV gaan regelen, met een tagged vlan voor telefonie, wat afgehandeld wordt door de ExperiaBox. Na vrij veel lezen op Netwerkje, Tweakers en andere bronnen (inclusief wat configuratie voor Ubiquiti als 'inspiratie'), krijg ik het toch nog niet helemaal werkend. Internet werkt als een zonnetje, zelfde geldt voor telefonie. Het gaat mis bij de TV. Deze hapert een keer na een minuut of vier, vijf, gaat vervolgens even verder voor een minuutje en vervolgens geeft het de melding dat de zender niet beschikbaar is. Deel twee is dat software updates of reinstalls niet werken. Deze loopt telkens in een fout op 27 procent.
Ik probeer (zoals gezegd) Routed IPTV te gebruiken. IGMP-Proxy staat aan en geconfigureerd, volgens mij heb ik firewall regels die nodig zijn er (goed) in staan en multicast staat aan. De opstelling is NTU -> MikroTik -> rest van het netwerk met de decoder momenteel op poortje 7. In onderstaande configuratie zitten alle suggesties die ik kon vinden verwerkt. De gevoelige informatie heb ik eruit gehaald. Ik neem aan dat ik een foutje heb gemaakt, maar ik kan het nog niet ontdekken.
Alvast bedankt voor de hulp, wordt gewaardeerd!
Een klein poosje geleden heb ik een MikroTik RB4011 aangeschaft om de door KPN aangeleverde ExperiaBox te vervangen. De MikroTik moet zowel internet als routed IPTV gaan regelen, met een tagged vlan voor telefonie, wat afgehandeld wordt door de ExperiaBox. Na vrij veel lezen op Netwerkje, Tweakers en andere bronnen (inclusief wat configuratie voor Ubiquiti als 'inspiratie'), krijg ik het toch nog niet helemaal werkend. Internet werkt als een zonnetje, zelfde geldt voor telefonie. Het gaat mis bij de TV. Deze hapert een keer na een minuut of vier, vijf, gaat vervolgens even verder voor een minuutje en vervolgens geeft het de melding dat de zender niet beschikbaar is. Deel twee is dat software updates of reinstalls niet werken. Deze loopt telkens in een fout op 27 procent.
Ik probeer (zoals gezegd) Routed IPTV te gebruiken. IGMP-Proxy staat aan en geconfigureerd, volgens mij heb ik firewall regels die nodig zijn er (goed) in staan en multicast staat aan. De opstelling is NTU -> MikroTik -> rest van het netwerk met de decoder momenteel op poortje 7. In onderstaande configuratie zitten alle suggesties die ik kon vinden verwerkt. De gevoelige informatie heb ik eruit gehaald. Ik neem aan dat ik een foutje heb gemaakt, maar ik kan het nog niet ontdekken.
Alvast bedankt voor de hulp, wordt gewaardeerd!
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
| /interface bridge
add arp=proxy-arp igmp-snooping=yes name=bridge-local
add name=bridge-tel
/interface ethernet
set [ find default-name=ether1 ] arp=proxy-arp l2mtu=1598 loop-protect=off
/interface vlan
add interface=ether1 name=vlan1.4 vlan-id=4
add interface=ether1 loop-protect=off name=vlan1.6 vlan-id=6
add interface=ether1 name=vlan1.7 vlan-id=7
add interface=ether2 name=vlan2.7 vlan-id=7
/interface pppoe-client
add add-default-route=yes allow=pap disabled=no interface=vlan1.6 \
keepalive-timeout=20 max-mru=1500 max-mtu=1500 name=pppoe-client \
password=kpn user=xxxxxx@internet
/interface ethernet switch port
set 0 default-vlan-id=0
set 1 default-vlan-id=0
set 2 default-vlan-id=0
set 3 default-vlan-id=0
set 4 default-vlan-id=0
set 5 default-vlan-id=0
set 6 default-vlan-id=0
set 7 default-vlan-id=0
set 8 default-vlan-id=0
set 9 default-vlan-id=0
set 10 default-vlan-id=0
set 11 default-vlan-id=0
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip dhcp-client option
add code=60 name=option60-vendorclass value="'IPTV_RG'"
/ip dhcp-server option
add code=60 name=option60-vendorclass value="'IPTV_RG'"
add code=28 name=option28-broadcast value="'192.168.2.255'"
/ip dhcp-server option sets
add name=IPTV options=option60-vendorclass,option28-broadcast
/ip pool
add name=thuisnetwerk ranges=192.168.2.1-192.168.2.199
/ip dhcp-server
add address-pool=thuisnetwerk disabled=no interface=bridge-local lease-time=\
1h30m name=dhcp-thuis
/routing bgp instance
set default disabled=yes
/interface bridge port
add bridge=bridge-local interface=ether3
add bridge=bridge-local interface=ether4
add bridge=bridge-local interface=ether5
add bridge=bridge-local interface=ether6
add bridge=bridge-local interface=ether7
add bridge=bridge-local interface=ether8
add bridge=bridge-local interface=ether9
add bridge=bridge-local interface=ether10
add bridge=bridge-local interface=sfp-sfpplus1
add bridge=bridge-tel interface=vlan2.7
add bridge=bridge-tel interface=vlan1.7
/interface bridge settings
set allow-fast-path=no
/ip neighbor discovery-settings
set discover-interface-list=none
/ip address
add address=192.168.2.254/24 interface=bridge-local network=192.168.2.0
/ip dhcp-client
add default-route-distance=210 dhcp-options=\
option60-vendorclass,hostname,clientid disabled=no interface=vlan1.4 \
use-peer-dns=no use-peer-ntp=no
/ip dhcp-server config
set store-leases-disk=15m
/ip dhcp-server lease
add address=192.168.2.1 mac-address=xxxxx server=dhcp-thuis
add address=192.168.2.5 mac-address=xxxxx server=dhcp-thuis
add address=192.168.2.19 mac-address=xxxxx server=dhcp-thuis
add address=192.168.2.22 mac-address=xxxxx server=dhcp-thuis
/ip dhcp-server network
add address=192.168.2.0/24 dhcp-option-set=IPTV dns-server=192.168.2.254 \
domain=berryh.tk gateway=192.168.2.254
/ip dns
set allow-remote-requests=yes cache-max-ttl=1d servers=1.1.1.1,1.0.0.1
/ip firewall address-list
add address=192.168.2.0-192.168.2.254 list=allowed_to_router
add address=0.0.0.0/8 comment=RFC6890 list=not_in_internet
add address=172.16.0.0/12 comment=RFC6890 list=not_in_internet
add address=192.168.0.0/16 comment=RFC6890 list=not_in_internet
add address=10.0.0.0/8 comment=RFC6890 list=not_in_internet
add address=169.254.0.0/16 comment=RFC6890 list=not_in_internet
add address=127.0.0.0/8 comment=RFC6890 list=not_in_internet
add address=224.0.0.0/4 comment=Multicast disabled=yes list=not_in_internet
add address=198.18.0.0/15 comment=RFC6890 list=not_in_internet
add address=192.0.0.0/24 comment=RFC6890 list=not_in_internet
add address=192.0.2.0/24 comment=RFC6890 list=not_in_internet
add address=198.51.100.0/24 comment=RFC6890 list=not_in_internet
add address=203.0.113.0/24 comment=RFC6890 list=not_in_internet
add address=100.64.0.0/10 comment=RFC6890 list=not_in_internet
add address=240.0.0.0/4 comment=RFC6890 list=not_in_internet
add address=192.88.99.0/24 comment="6to4 relay Anycast [RFC 3068]" list=not_in_internet
/ip firewall filter
add action=accept chain=input in-interface=pppoe-client protocol=icmp
add action=accept chain=input connection-state=related
add action=accept chain=input connection-state=established
add action=accept chain=input src-address-list=allowed_to_router
add action=fasttrack-connection chain=forward comment=FastTrack \
connection-state=established,related
add action=accept chain=forward comment="Established, Related" \
connection-state=established,related
add action=drop chain=forward comment="Drop invalid" connection-state=invalid \
log=yes log-prefix="[Drop invalid]"
add action=drop chain=forward comment=\
"Drop tries to reach not public address from LAN" dst-address-list=\
not_in_internet in-interface=bridge-local log=yes log-prefix=\
"[!public_from_LAN]" out-interface=!bridge-local
add action=drop chain=forward comment=\
"Drop incoming packets that are not NATted" connection-nat-state=!dstnat \
connection-state=new in-interface=pppoe-client log=yes log-prefix=\
"[!NAT]"
add action=drop chain=forward comment=\
"Drop incoming from internet which is not public IP" in-interface=\
pppoe-client log=yes log-prefix="[!public]" src-address-list=\
not_in_internet
add action=drop chain=forward comment=\
"Drop packets from LAN that do not have LAN IP" in-interface=bridge-local \
log=yes log-prefix="[LAN_!LAN]" src-address=!192.168.2.0/24
add action=reject chain=input in-interface=pppoe-client protocol=tcp \
reject-with=icmp-port-unreachable
add action=reject chain=input in-interface=pppoe-client protocol=udp \
reject-with=icmp-port-unreachable
/ip firewall nat
add action=masquerade chain=srcnat out-interface=vlan1.4
add action=masquerade chain=srcnat comment="Needed for IPTV" dst-address=213.75.112.0/21 out-interface=vlan1.4
add action=masquerade chain=srcnat comment="Needed for IPTV" dst-address=217.166.0.0/16 out-interface=vlan1.4
add action=masquerade chain=srcnat comment="Needed for internet" out-interface=pppoe-client src-address=192.168.2.0/24
add action=masquerade chain=srcnat comment="Hairpin NAT" dst-address=!192.168.2.254 src-address=192.168.2.0/24
add action=dst-nat chain=dstnat dst-address-type=local dst-port=22 protocol=\
tcp to-addresses=192.168.2.216 to-ports=22
add action=dst-nat chain=dstnat dst-address-type=local dst-port=5000 \
protocol=tcp to-addresses=192.168.2.2 to-ports=5000
add action=dst-nat chain=dstnat dst-address-type=local dst-port=5001 \
protocol=tcp to-addresses=192.168.2.2 to-ports=5001
add action=dst-nat chain=dstnat dst-address-type=local dst-port=5000 \
protocol=udp to-addresses=192.168.2.2 to-ports=5000
add action=dst-nat chain=dstnat dst-address-type=local dst-port=5001 \
protocol=udp to-addresses=192.168.2.2 to-ports=5001
add action=dst-nat chain=dstnat dst-address-type=local dst-port=80 protocol=\
tcp to-addresses=192.168.2.203 to-ports=80
add action=dst-nat chain=dstnat dst-address-type=local dst-port=443 protocol=\
tcp to-addresses=192.168.2.203 to-ports=443
add action=dst-nat chain=dstnat dst-address-type=local dst-port=80 protocol=\
udp to-addresses=192.168.2.203 to-ports=80
add action=dst-nat chain=dstnat dst-address-type=local dst-port=443 protocol=\
udp to-addresses=192.168.2.203 to-ports=443
add action=dst-nat chain=dstnat dst-address-type=local dst-port=8443 \
protocol=tcp to-addresses=192.168.2.209 to-ports=8443
add action=dst-nat chain=dstnat dst-address-type=local dst-port=1194 \
protocol=udp to-addresses=192.168.2.209 to-ports=1194
add action=dst-nat chain=dstnat dst-address-type=local dst-port=9987 \
protocol=tcp to-addresses=192.168.2.217 to-ports=9987
add action=dst-nat chain=dstnat dst-address-type=local dst-port=9987 \
protocol=udp to-addresses=192.168.2.217 to-ports=9987
add action=dst-nat chain=dstnat dst-address-type=local dst-port=3478 \
protocol=tcp to-addresses=192.168.2.149 to-ports=3478
add action=dst-nat chain=dstnat dst-address-type=local dst-port=3478 \
protocol=udp to-addresses=192.168.2.149 to-ports=3478
add action=dst-nat chain=dstnat dst-address-type=local dst-port=9523 \
protocol=tcp to-addresses=192.168.2.149 to-ports=9523
add action=dst-nat chain=dstnat dst-address-type=local dst-port=9523 \
protocol=udp to-addresses=192.168.2.149 to-ports=9523
add action=dst-nat chain=dstnat dst-address-type=local dst-port=32400 \
protocol=tcp to-addresses=192.168.2.247 to-ports=32400
add action=dst-nat chain=dstnat dst-address-type=local dst-port=54321 \
protocol=tcp to-addresses=192.168.2.247 to-ports=54321
add action=dst-nat chain=dstnat dst-address-type=local dst-port=54321 \
protocol=udp to-addresses=192.168.2.247 to-ports=54321
add action=dst-nat chain=dstnat dst-address-type=local dst-port=50443 \
protocol=udp to-addresses=192.168.2.203 to-ports=50443
add action=dst-nat chain=dstnat dst-address-type=local dst-port=50443 \
protocol=tcp to-addresses=192.168.2.203 to-ports=50443
add action=dst-nat chain=dstnat dst-address-type=local dst-port=40000-40050 \
protocol=tcp to-addresses=192.168.2.221 to-ports=40000-40050
add action=dst-nat chain=dstnat dst-address-type=local dst-port=40000-40050 \
protocol=udp to-addresses=192.168.2.221 to-ports=40000-40050
add action=dst-nat chain=dstnat dst-address-type=local dst-port=2022 \
protocol=tcp to-addresses=192.168.2.221 to-ports=2022
add action=dst-nat chain=dstnat dst-address-type=local dst-port=2022 \
protocol=udp to-addresses=192.168.2.221 to-ports=2022
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh address=192.168.2.0/24 port=2202
set api disabled=yes
set winbox address=192.168.2.0/24
set api-ssl disabled=yes
/ip ssh
set strong-crypto=yes
/ip upnp
set enabled=no show-dummy-rule=no
/ip upnp interfaces
add interface=bridge-local type=internal
add interface=pppoe-client type=external
/routing igmp-proxy
set quick-leave=yes
/routing igmp-proxy interface
add alternative-subnets=0.0.0.0/0 interface=vlan1.4 upstream=yes
add interface=bridge-local
/system clock
set time-zone-name=Europe/Amsterdam
/system logging
add topics=igmp-proxy
/tool bandwidth-server
set enabled=no
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=none
/tool mac-server ping
set enabled=no
/tool sniffer
set filter-interface=vlan1.4 |