Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jiddick ExRex

macrumors 65816
Original poster
May 14, 2006
1,469
0
Roskilde, DK
My parents have a Powermac running on Airport and they want an app (or script) to shut off all internet communication when they feel the kids have been online for long enough.

I thought I could provide it by making a location called Airport-Off with nothing but firewire enabled and then making a remote 'scselect Airport-Off' script but that won't make it possible to enable airport again :)

What easy measures could I provide to disabling/enabling out of the house traffic from this mac via a bash script?
 

toddburch

macrumors 6502a
Dec 4, 2006
748
0
Katy, Texas
How about plugging Airport into a switched power outlet? Or, unplug the modem.

Sorry - but that would be my low-tech approach!

Todd
 

Jiddick ExRex

macrumors 65816
Original poster
May 14, 2006
1,469
0
Roskilde, DK
How about plugging Airport into a switched power outlet? Or, unplug the modem.

Sorry - but that would be my low-tech approach!

Todd
Thx for the input.

1. This doesn't deny the children to go down an plug the thing back in (these are problem children so I need a software approach where they are not allowed to do any physical mending)
2. Pretty hard for our other mac to be online at the same time wouldn't you say?
 

Jiddick ExRex

macrumors 65816
Original poster
May 14, 2006
1,469
0
Roskilde, DK
ifconfig <interface> down

Just tried doing this and while working, it shuts off the current network the mac is connected to.
1. It doesn't keep the children from rebooting the mac and going on with their business.
2. Any new ssh attempt cannot be done because the network connection breaks.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
The only sensible way I can see of doing this is to swap between two firewall configurations as required. One for "normal" use that enables traffic to the internet, another for "locked down" that only allows traffic to local IPs (10.0.0.x or 192.168.0.x depending on your local setup).

You would have to have the children running in a locked down account to start with that cannot stop/start the firewall to make this worthwhile...
 

Jiddick ExRex

macrumors 65816
Original poster
May 14, 2006
1,469
0
Roskilde, DK
The only sensible way I can see of doing this is to swap between two firewall configurations as required. One for "normal" use that enables traffic to the internet, another for "locked down" that only allows traffic to local IPs (10.0.0.x or 192.168.0.x depending on your local setup).

You would have to have the children running in a locked down account to start with that cannot stop/start the firewall to make this worthwhile...

They already are. How do I go about doing going in a locked down state?
 

SC68Cal

macrumors 68000
Feb 23, 2006
1,642
0
Just throwing this out there:

What happened to sitting down and talking to your children? Are we so "hands-off" these days that we create elaborate firewall rulesets, as opposed to sitting down and saying "Johnny, no going on the computer past eleven, you need to be in bed!"
 

Jiddick ExRex

macrumors 65816
Original poster
May 14, 2006
1,469
0
Roskilde, DK
Just throwing this out there:

What happened to sitting down and talking to your children? Are we so "hands-off" these days that we create elaborate firewall rulesets, as opposed to sitting down and saying "Johnny, no going on the computer past eleven, you need to be in bed!"

I understand what you are saying but allow me to elaborate.
These are children in family care placed by the state in the hands of my parents' professional educational hands. My parents have three weeks left to decide whether the 12-year kid needs to be sent off to a daily institution for 24-hour intensive care.

Another badly chosen conflict through simple computer rules are not what these kids need.

So while I agree with your overall statement, technology together with damaged children who need a helping educational hand can be a help. We have the technology to do so and in this circumstance it's a well chosen tool for channeling the conflicts to something useful and more educational (like why it's not ok stealing from other people opposed to why the kid should not stay up all night surfing the net).

Was that clear enough?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.