What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Issues Blocking Certain IPs on Guest Network

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.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top