Hello all I was doing a lot of searching yesterday and I found a few topics that mention my needs but I am still stuck on getting this to work. Sorry if this has been covered I just can't seem to find a topic that solved my need 100%. I am running an ASUS RT-AC66U router and I am trying to create a vlan ( 10 ) on port 4 (This is done). I then need to server out DHCP on this specific port / vlan on 192.168.10.2-255 . I then want to allow this vlan to talk to the VLAN1 LAN only to a specific machine, 192.168.1.100 on port 21. I can't seem to figure out how to get dhcp working or the iptable rules / ebtables that allow this. Any and all help would be appreciated. I do already have the jffs partition setup with a startup script. This is what I have so far
cat /jffs/scripts/services-start
cat /jffs/configs/dnsmasq.conf.add
cat /jffs/scripts/services-start
Code:
#!/bin/sh
cru a lightsoff "0 22 * * * /jffs/scripts/ledsoff.sh"
cru a lightson "0 6 * * * /jffs/scripts/ledson.sh"
cru a CleanCameraStore "0 5 * * * * /jffs/scripts/CleanCameraStore.sh"
robocfg vlan 1 ports "1 2 3 8t"
robocfg vlan 10 ports "4 8t"
vconfig add eth0 10
brctl addbr br10
brctl addif br10 vlan10
ifconfig vlan10 up
ifconfig br10 192.168.10.1 netmask 255.255.255.0 up
killall eapd
eapd
cat /jffs/configs/dnsmasq.conf.add
Code:
interface=br10
dhcp-range=br10,192.168.10.2,192.168.10.254,255.255.255.0,86400s
dhcp-option=br10,3,192.168.10.1
dhcp-option=br10,6,8.8.8.8,8.8.4.4
Last edited: