What's new

Guest wifi scheduling via iptables

  • 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!

Terrabytes

Occasional Visitor
Let me start out by saying that my iptables knowledge is limited.

I am trying to mimic Parental Control Scheduling on the Guest Wifi. Reviewing iptables I was able to piece together the following.

iptables -A WGNPControls -i br1 -m time --timestart 07:30:00 --timestop 07:45:00 --weekdays Mon,Tue,Wed,Thu,Fri --kerneltz -m mac --mac-source xx:xx:xx:xx:xx:xx -j DROP
iptables -A WGNPControls -i br1 -m time --timestart 21:15:00 --timestop 21:30:00 --kerneltz -m mac --mac-source xx:xx:xx:xx:xx:xx -j DROP

Is this the correct syntax to disable internet between set times and dates based on mac address? If so I should be able to added it to firewall-start so it is added on reboot?

Your help is appreciated..
 

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!
Top