当前位置:   article > 正文

Force LAN port 4 to use the Guest network for Asus/merlin RT-AC68U_guest network lan

guest network lan

 

I needed to restrict LAN port#4 for Internet only use, just like the Wireless Guest Network access. Then I plug an 8-port Ethernet switch into LAN port 4 of the RT-AC68U router, to expand the number of Internet-only wired connections. It is for attaching wired network devices that have no business on my local area network, but need to access the Internet.

After a couple hours of research I got it working. Here it is. It should restrict LAN port#4 to the Internet only, exactly like the Wireless Guest Network access built into the router. Anyone see a hole? Suggestions? Thank you.


/jffs/scripts/services-start
 

Code:

  1. #!/bin/sh
  2. # force LAN port 4 to use the Guest network
  3. robocfg vlan 1 ports "1 2 3 5t"
  4. robocfg vlan 10 ports "4 5t"
  5. vconfig add eth0 10
  6. ifconfig vlan10 up
  7. brctl addif br0 vlan10
  8. ebtables -t broute -I BROUTING -p IPv4 -i vlan10 --ip-dst 192.168.1.0/24 --ip-proto tcp -j DROP
  9. ebtables -t filter -I FORWARD -i vlan10 -o ! vlan2 -j DROP
  10. ebtables -t filter -I FORWARD -i ! vlan2 -o vlan10 -j DROP

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/人工智能uu/article/detail/897302
推荐阅读
相关标签
  

闽ICP备14008679号