Advertisement
Guest User

Untitled

a guest
Oct 8th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. Hi all,
  2.  
  3. I have 1 requirement which is to seperate my IoT devices from my personal devices. So I am fine with vlan1 and then LAN subnet but want to bind the first Guest WLAN (wl0.1) to a seperate bridge and vlan (for tagging on wired ports).
  4.  
  5. vlan1 - personal stuff
  6. vlan9 - IoT devices
  7.  
  8. Some devices need to communicate between vlan1 & vlan9 so besides outside NAT I will also need some extra iptables. My problem now is... I cannot even connect after my changes.
  9.  
  10. So any suggestions on why I cannot connect? And steps further with help on iptables would be appreciated:
  11.  
  12. This is my /jffs/config/dnsmasq.conf:
  13. [CODE]
  14. pid-file=/var/run/dnsmasq.pid
  15. user=nobody
  16. bind-dynamic
  17. interface=wl0.1
  18. no-dhcp-interface=pptp*
  19. no-resolv
  20. servers-file=/tmp/resolv.dnsmasq
  21. no-poll
  22. no-negcache
  23. cache-size=1500
  24. min-port=4096
  25. domain=home.zwarts.ws
  26. expand-hosts
  27. bogus-priv
  28. domain-needed
  29. local=/guest.domain.com/
  30. dhcp-range=wl0.1,192.168.254.10,192.168.254.220,255.255.255.0,900s
  31. dhcp-option=wl0.1,3,192.168.254.1
  32. dhcp-option=wl0.1,6,192.168.254.1,0.0.0.0
  33. dhcp-option=wl0.1,15,guest.domain.com
  34. dhcp-authoritative
  35. addn-hosts=/etc/hosts.dnsmasq
  36. stop-dns-rebind
  37. dhcp-name-match=set:wpad-ignore,wpad
  38. dhcp-ignore-names=tag:wpad-ignore
  39. [/CODE]
  40.  
  41. And this one in services-start
  42. [CODE]
  43. #!/bin/ash
  44. PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"
  45. rm /tmp/000services-start
  46.  
  47. #robocfg vlan 1 ports "0t 1 5t"
  48. robocfg vlan 9 ports "0t 5t 7t"
  49.  
  50. vconfig add eth0 9
  51. ifconfig vlan9 up
  52.  
  53. ifconfig br1 down
  54. brctl delbr br1
  55. brctl addbr br1
  56.  
  57. brctl delif br0 wl0.1
  58. brctl delif br0 wl1.1
  59.  
  60. brctl addif br1 wl0.1
  61. brctl addif br1 wl1.1
  62. brctl addif br1 vlan9
  63.  
  64.  
  65. ifconfig br1 192.168.254.1 netmask 255.255.255.0
  66. ifconfig br1 up
  67.  
  68.  
  69. nvram set lan1_ifnames="vlan9 wl0.1 wl1.1"
  70. nvram set lan1_ifname="br1"
  71.  
  72. nvram commit
  73.  
  74. killall eapd
  75. eapd
  76.  
  77. touch /tmp/000services-start
  78. [/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement