Because windows guest using UDP multicast streams over TCP, it can work with double-nat. Try following this tutorial to install udpxy+igmpproxy on Openwrt guest: https://openwrt.org/docs/guide-user/network/wan/udp_multicast
I try udpxy+igmpproxy but result is the same.
VLC error:
Your input can't be opened:
VLC is unable to open the MRL 'http://192.168.0.111:4022/udp/232.2.1.53:5002'. Check the log for details.
I checked ISP MODEM is in bridge mode. My ISP sends IPTV trough vlan 3999, port set to trunk.
On OpenWRT I have:
eth0 (lan)is conected to my local bridge with DHCP IP 192.168.0.111
eth1 (wan) is conected to trunk port on ISP MODEM (vlan 3999) STATIC IP 10.10.10.10
last try settings:
network:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdb4:50f4:9201::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'dhcp'
option defaultroute '0'
option peerdns '0'
option igmp_snooping '1'
config interface 'wan'
option proto 'static'
option ifname 'eth1'
option ipaddr '10.10.10.10'
option netmask '255.255.255.0'
igmpproxy:
config igmpproxy
option quickleave 1
option verbose 2
config phyint
option network wan
option direction upstream
list altnet 0.0.0.0/0
config phyint
option network br-lan
option direction downstream
firewall:
config defaults
option syn_flood 1
option input ACCEPT
option output ACCEPT
option forward REJECT
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 1
config zone
option name lan
list network 'lan'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
config zone
option name wan
list network 'wan'
list network 'wan6'
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1
config forwarding
option src lan
option dest wan
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option name Allow-DHCP-Renew
option src wan
option proto udp
option dest_port 68
option target ACCEPT
option family ipv4
# Allow IPv4 ping
config rule
option name Allow-Ping
option src wan
option proto icmp
option icmp_type echo-request
option family ipv4
option target ACCEPT
config rule
option name Allow-IGMP
option src wan
option proto igmp
option family ipv4
option target ACCEPT
# Allow DHCPv6 replies
# see https://dev.openwrt.org/ticket/10381
config rule
option name Allow-DHCPv6
option src wan
option proto udp
option src_ip fc00::/6
option dest_ip fc00::/6
option dest_port 546
option family ipv6
option target ACCEPT
config rule
option name Allow-MLD
option src wan
option proto icmp
option src_ip fe80::/10
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family ipv6
option target ACCEPT
# Allow essential incoming IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Input
option src wan
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
list icmp_type router-solicitation
list icmp_type neighbour-solicitation
list icmp_type router-advertisement
list icmp_type neighbour-advertisement
option limit 1000/sec
option family ipv6
option target ACCEPT
# Allow essential forwarded IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Forward
option src wan
option dest *
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
option limit 1000/sec
option family ipv6
option target ACCEPT
config rule
option name Allow-IPSec-ESP
option src wan
option dest lan
option proto esp
option target ACCEPT
config rule
option name Allow-ISAKMP
option src wan
option dest lan
option dest_port 500
option proto udp
option target ACCEPT
# include a file with users custom iptables rules
config include
option path /etc/firewall.user
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
# option src lan
# option src_ip 192.168.45.2
# option dest wan
# option proto tcp
# option target REJECT
# block a specific mac on wan
#config rule
# option dest wan
# option src_mac 00:11:22:33:44:66
# option target REJECT
# block incoming ICMP traffic on a zone
#config rule
# option src lan
# option proto ICMP
# option target DROP
# port redirect port coming in on wan to lan
#config redirect
# option src wan
# option src_dport 80
# option dest lan
# option dest_ip 192.168.16.235
# option dest_port 80
# option proto tcp
# port redirect of remapped ssh port (22001) on wan
#config redirect
# option src wan
# option src_dport 22001
# option dest lan
# option dest_port 22
# option proto tcp
### FULL CONFIG SECTIONS
#config rule
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 80
# option dest wan
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
# option target REJECT
#config redirect
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 1024
# option src_dport 80
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
config rule
option src wan
option proto igmp
option target ACCEPT
config rule
option src wan
option proto udp
option dest lan
option dest_ip 224.0.0.0/4
option target ACCEPT
config rule
option src wan
option proto udp
option dest_ip 224.0.0.0/4
option target ACCEPT
Still no joy
Don't now what is wrong.
Any idea?
Did your ISP issue you the IP address 10.10.10.10?
No I find it in some guide.
I also try with dhcp:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdb4:50f4:9201::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'dhcp'
option defaultroute '0'
option peerdns '0'
option igmp_snooping '1'
config interface 'wan'
option proto 'dhcp'
option ifname 'eth1'
igmp won't start if I set eth1 to dhcp:
root@OpenWrt:~# igmpproxy -n -d -v -v /var/etc/igmpproxy.conf
Searching for config file at '/var/etc/igmpproxy.conf'
Config: Quick leave mode enabled.
Config: Got a phyint token.
Config: IF: Config for interface br-lan.
Config: IF: Got downstream token.
Config: IF: Got ratelimit token '0'.
Config: IF: Got threshold token '1'.
IF name : br-lan
Next ptr : 0
Ratelimit : 0
Threshold : 1
State : 2
Allowednet ptr : 0
buildIfVc: Interface lo Addr: 127.0.0.1, Flags: 0x0049, Network: 127/8
buildIfVc: Interface br-lan Addr: 192.168.0.111, Flags: 0x1043, Network: 192.168.0/24
Found config for br-lan
adding VIF, Ix 0 Fl 0x0 IP 0x6f00a8c0 br-lan, Threshold: 1, Ratelimit: 0
Network for [br-lan] : 192.168.0/24
There must be at least 1 Vif as upstream.
Use DHCP, unless the guide is from your ISP.
I see something!!!
config igmpproxy
option quickleave 1
option verbose 2
config phyint
option network wan
option zone wan
option direction upstream
list altnet 0.0.0.0/0
config phyint
option network lan
option zone lan
option direction downstream
- YOU NEVER ADDED THE FIREWALL ZONES SO A RULE WOULD BE MADE!!!
- LAN NETWORK SHOULD BE LAN, NOT BR-LAN
I changed igmpproxy settings as you say.
igmproxy won't start - same error as previous post
Can you please check my network settings again.
root@OpenWrt:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP qlen 1000
link/ether 00:15:5d:c8:04:28 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:15:5d:c8:04:31 brd ff:ff:ff:ff:ff:ff
inet6 fe80::215:5dff:fec8:431/64 scope link
valid_lft forever preferred_lft forever
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 00:15:5d:c8:04:28 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.111/24 brd 192.168.0.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fe80::215:5dff:fec8:428/64 scope link
valid_lft forever preferred_lft forever
root@OpenWrt:~# igmpproxy -n -d -v -v /var/etc/igmpproxy.conf
Searching for config file at '/var/etc/igmpproxy.conf'
Config: Quick leave mode enabled.
Config: Got a phyint token.
Config: IF: Config for interface br-lan.
Config: IF: Got downstream token.
Config: IF: Got ratelimit token '0'.
Config: IF: Got threshold token '1'.
IF name : br-lan
Next ptr : 0
Ratelimit : 0
Threshold : 1
State : 2
Allowednet ptr : 0
buildIfVc: Interface lo Addr: 127.0.0.1, Flags: 0x0049, Network: 127/8
buildIfVc: Interface br-lan Addr: 192.168.0.111, Flags: 0x1043, Network: 192.168.0/24
Found config for br-lan
adding VIF, Ix 0 Fl 0x0 IP 0x6f00a8c0 br-lan, Threshold: 1, Ratelimit: 0
Network for [br-lan] : 192.168.0/24
There must be at least 1 Vif as upstream.
I bean thinking. This openwrt is not default router in my network. Maybe because of that won't start VLC stream?
udp://@232.4.1.1:5002
Where to put openwrt ip:
I try udp://192.168.0.11@232.4.1.1:5002
but not working?!?
you need tagged wan eth1 to vlan 3999
config interface 'wan'
option proto 'static'
option ifname 'eth1.3999'
If set wan proto to dhcp, you will don't want ISP to push iptv default gateway & dns to openwrt. Set any static private ip, ISP iptv does not need a valid ip.