It’s for a friend, honest: but does the lazyweb know a way to tweak the firewall in OS X so that all traffic on Port 80 is forbidden between midnight and 3.30pm, so that some work gets done?
-
Archives
- October 2019
- September 2019
- November 2018
- August 2018
- July 2018
- January 2018
- November 2017
- October 2017
- September 2017
- July 2017
- December 2016
- October 2016
- May 2016
- March 2015
- April 2011
- March 2011
- April 2010
- February 2010
- January 2010
- December 2009
- November 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003
- August 2003
- July 2003
- June 2003
- May 2003
- April 2003
- March 2003
- February 2003
- January 2003
- December 2002
- November 2002
- October 2002
- September 2002
- August 2002
- July 2002
- June 2002
-
Meta
I don’t know how to do it directly in the OS X firewall, but IPNetSentryX will do it at a price. I use some of Peter’s other software, and it’s good stuff.
Alternatively (and free), use cron to run a shell script to alter firewall rules using the ipfw command.
Cronnix is a free GUI for cron. ipfw is a little complicated, but if all you’re doing is allowing or denying port 80, the commands are simple enough.
Tweak the schedule settings in your router instead – couldn’t be easier, or easier to circumvent. In my experience the only real solution to this problem is to work somewhere with no connection to the internet at all, wired or otherwise – or else to give the router password to someone else. Then, of course, you’ll spend all day scrabbling around the house looking for bits of paper which might have passwords written on them. It strikes me that this really is all a bit like nicotine withdrawal; however creative your attempts to deny yourself, ubiquity is not on your side.
It really isn’t me, Sean. I don’t write on a mac. And I don’t know about my friend’s router: my offers helpfully to examine it were rejected. As you say, a bit like nicotine withdrawal. Also, the friend’s neighbours leavce their wifi open.
I was hoping for a settings file that could be flipped twice a day by a cron job: to someone innocent of unix, that would be entirely sufficient. But I don’t know what, if anything, is the settings file used.
should do the trick, but you know, test it and stuff. your instincts about cron are right on 🙂 in the morning you’d want to run
in the morning. of course my BSD is so rusty as to have partially fallen off so I take no responsibility for the above being in any way accurate and a solid read of the man page is reccomended.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html
Shannon: Thank you so much for that. My friend will be enormously grateful hate you with a passion ignore this useful tip entirely. But at least we know how it should be done, and — tee hee — I could probably do it by remote control.