|
本帖最后由 bbeyes 于 2023-1-26 16:43 编辑
贴一个刷了openwrt后配置好的文件,官方固件试试参考一下
光猫桥接,配置VLAN绑定:pppoe VLAN:10,IPTV VLAN:1010
------------------------------
网络配置,wan拨号,itv接收组播,man用来访问光猫:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config device
option name 'eth0'
option macaddr 'd4:da:21:******'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.6.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'eth1'
option macaddr '24:cf:24:******'
config interface 'wan'
option proto 'pppoe'
option device 'eth1.10'
option username '******'
option password '******'
option ipv6 'auto'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '6 1 2 3'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 4'
option vid '2'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '5t 4t'
option vid '10'
config switch_vlan
option device 'switch0'
option vlan '4'
option ports '5t 4t'
option vid '1010'
config interface 'itv'
option proto 'static'
option device 'eth1.1010'
option force_link '0'
option gateway '192.168.8.1'
option defaultroute '0'
option metric '20'
list ipaddr '192.168.8.8'
config interface 'man'
option proto 'dhcp'
option device 'eth1'
option defaultroute '0'
option metric '10'
-----------------------------------
防火墙单独设置itv区域,增加防火墙规则,组播仅进入路由udpxy,不转发:
config zone
option name 'itv'
option output 'ACCEPT'
option forward 'REJECT'
list network 'itv'
option input 'REJECT'
config rule
option name 'Allow-itv-UDP'
list proto 'udp'
option src 'itv'
list dest_ip '224.0.0.0/4'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-itv-IGMP'
list proto 'igmp'
option src 'itv'
option target 'ACCEPT'
option family 'ipv4'
|
|