Hi!
I'm trying to follow a guide to set specific DNS servers for my guest network. On my private network I use a Windows server which the guest wifi is not allowed to access.
This is the guide: https://github.com/RMerl/asuswrt-me...dicated-DHCP-options-bind-to-a-specific-SSID?
I'm having questions regarding which wlan ID I should put in this file.
My private network is 68an and my guest network is 68an_guest.
This is the output of "nvram show | grep 68an"
Should I put both wl0.1 and wl1.1?
I have both 2.4GHz and 5GHz networks running with the same SSIDs
My config file would then look like this:
The fact that I have two lines with ifconfig seems wrong to me, but I'm not very experienced with linux/unix systems.
I would be very thankful if anyone can comment and maybe give me pointers to get a correct config.
I'm trying to follow a guide to set specific DNS servers for my guest network. On my private network I use a Windows server which the guest wifi is not allowed to access.
This is the guide: https://github.com/RMerl/asuswrt-me...dicated-DHCP-options-bind-to-a-specific-SSID?
I'm having questions regarding which wlan ID I should put in this file.
My private network is 68an and my guest network is 68an_guest.
This is the output of "nvram show | grep 68an"
Code:
wl1.1_wpa_psk=********
wl0_ssid=68an
wl_ssid=68an
wl0.1_ssid=68an_guest
asus_device_list=<3>RT-AC68U>192.168.*.*>D8:50:E6:CF:E6:A0>0>68an>255.255.255.0>1
wl1_ssid=68an
wl1.1_ssid=68an_guest
wl0.1_wpa_psk=*******
Should I put both wl0.1 and wl1.1?
I have both 2.4GHz and 5GHz networks running with the same SSIDs
My config file would then look like this:
Code:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
logger "dnsmasq-dhcp: Configure wl0.1 & wl1.1 to have special DHCP"
ifconfig wl0.1 172.30.20.2 netmask 255.255.255.0
ifconfig wl1.1 172.30.20.2 netmask 255.255.255.0
iptables -D INPUT -i wl0.1 -j ACCEPT
iptables -D INPUT -i wl1.1 -j ACCEPT
iptables -I INPUT -i wl0.1 -j ACCEPT
iptables -I INPUT -i wl1.1 -j ACCEPT
ebtables -t broute -D BROUTING -i wl0.1 -p ipv4 -j DROP
ebtables -t broute -I BROUTING -i wl0.1 -p ipv4 -j DROP
ebtables -t broute -D BROUTING -i wl1.1 -p ipv4 -j DROP
ebtables -t broute -I BROUTING -i wl1.1 -p ipv4 -j DROP
pc_append "
log-dhcp
interface=wl0.1
interface=wl1.1
dhcp-option=wl0.1,3,172.30.20.1
dhcp-option=wl1.1,3,172.30.20.1
dhcp-option=wl0.1,6,8.8.8.8,8.8.4.4
dhcp-option=wl1.1,6,8.8.8.8,8.8.4.4
" /tmp/etc/dnsmasq.conf
The fact that I have two lines with ifconfig seems wrong to me, but I'm not very experienced with linux/unix systems.
I would be very thankful if anyone can comment and maybe give me pointers to get a correct config.