tjhastings91
New Around Here
Hardware: RT-AC88U
Firmware: 382.1_beta3
After expending a whole lot of effort, I thought I might be able to block wired IoT smart devices at the port level from being able to access the local network. After reading 24 threads on this website, I cobbled together a script that was similar to what others had created. I think only one of those threads mentioned the same router. The script commands complete successfully, but wired devices can't connect to the router.
This wan-start script is supposed to allow the device connected to port 2 to access the Internet without access to the local network.
This dnsmasq.postconf script supports DHCP on the isolated network.
Can you see what is blocking this setup from working ?
Firmware: 382.1_beta3
After expending a whole lot of effort, I thought I might be able to block wired IoT smart devices at the port level from being able to access the local network. After reading 24 threads on this website, I cobbled together a script that was similar to what others had created. I think only one of those threads mentioned the same router. The script commands complete successfully, but wired devices can't connect to the router.
This wan-start script is supposed to allow the device connected to port 2 to access the Internet without access to the local network.
Code:
ip link add link eth0 name vlan20 type vlan id 20
ip addr add 192.168.20.1/24 brd 192.168.20.255 dev vlan20
ip link set dev vlan20 address 00:00:00:00:00:20
ip link set dev vlan20 up
brctl addif br0 vlan20
robocfg vlan 1 ports "0 1 3 5 7 8t"
robocfg vlan 20 ports "2t 8t"
ebtables -t broute -I BROUTING -p IPv4 -i vlan20 --ip-src 192.168.20.0/24 -j DROP
ebtables -t broute -I BROUTING -p ARP -i vlan20 --arp-ip-src 192.168.20./24 -j DROP
ebtables -I FORWARD -i vlan20 -o ! eth0 -j DROP
ebtables -I FORWARD -i ! eth0 -o vlan20 -j DROP
This dnsmasq.postconf script supports DHCP on the isolated network.
Code:
interface=vlan20
dhcp-range=vlan20,192.168.20.2,192.168.20.254,255.255.255.0,6h
dhcp-option=vlan20,3,192.168.20.1
dhcp-option=vlan20,6,208.67.222.222
Can you see what is blocking this setup from working ?