abs0luetzer0
New Around Here
Hey I have a bit of an issue I was hoping someone could help me with.
I have a small office environment using a N66R for WiFi. I'm trying to use the guest network to allow access to the internet and a few internal host machines, but I cannot make it work. I've allowed access to the intranet through the Guest Network and I was trying to write script and place it in the jffs/scripts folder to block the IPs I do not want the guest to have access to, but something is wrong with my script and guests still have access to all systems.
my firewall-start script is pretty straight forward:
#!/bin/sh
ebtables -t broute -A BROUTING -p IPv4 -i wl0.1 --ip-dst 172.30.1.128/26 --ip-proto tcp -j DROP
also tried
iptables -I INPUT -i wl0.1 -s 172.30.1.128/26 -j DROP
iptables -I OUTPUT -o wl0.1 -s 172.30.1.128/26 -j DROP
I set permissions with chmod a+rx /jffs/scripts/*
I want to block all hosts between 128 and 191, but the above line does not do the job. Some help or guidance would be appreciated.
I have a small office environment using a N66R for WiFi. I'm trying to use the guest network to allow access to the internet and a few internal host machines, but I cannot make it work. I've allowed access to the intranet through the Guest Network and I was trying to write script and place it in the jffs/scripts folder to block the IPs I do not want the guest to have access to, but something is wrong with my script and guests still have access to all systems.
my firewall-start script is pretty straight forward:
#!/bin/sh
ebtables -t broute -A BROUTING -p IPv4 -i wl0.1 --ip-dst 172.30.1.128/26 --ip-proto tcp -j DROP
also tried
iptables -I INPUT -i wl0.1 -s 172.30.1.128/26 -j DROP
iptables -I OUTPUT -o wl0.1 -s 172.30.1.128/26 -j DROP
I set permissions with chmod a+rx /jffs/scripts/*
I want to block all hosts between 128 and 191, but the above line does not do the job. Some help or guidance would be appreciated.