Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 12, 2007, 04:29 PM   #1
Jiddick ExRex
macrumors 65816
 
Jiddick ExRex's Avatar
 
Join Date: May 2006
Location: Roskilde, DK
An ssh-script to shutdown all internet traffic on remote mac?

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?
__________________
The owner of a perfect SR MBP 2.2 Matte!
Jiddick ExRex is offline   0 Reply With Quote
Old Oct 12, 2007, 05:45 PM   #2
toddburch
macrumors 6502a
 
Join Date: Dec 2006
Location: Katy, Texas
Send a message via AIM to toddburch Send a message via MSN to toddburch
How about plugging Airport into a switched power outlet? Or, unplug the modem.

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

Todd
toddburch is offline   0 Reply With Quote
Old Oct 12, 2007, 07:32 PM   #3
SC68Cal
macrumors 68000
 
Join Date: Feb 2006
ifconfig <interface> down
SC68Cal is offline   0 Reply With Quote
Old Oct 13, 2007, 01:22 AM   #4
Jiddick ExRex
Thread Starter
macrumors 65816
 
Jiddick ExRex's Avatar
 
Join Date: May 2006
Location: Roskilde, DK
Quote:
Originally Posted by toddburch View Post
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?
__________________
The owner of a perfect SR MBP 2.2 Matte!
Jiddick ExRex is offline   0 Reply With Quote
Old Oct 13, 2007, 01:24 AM   #5
Jiddick ExRex
Thread Starter
macrumors 65816
 
Jiddick ExRex's Avatar
 
Join Date: May 2006
Location: Roskilde, DK
Quote:
Originally Posted by SC68Cal View Post
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.
__________________
The owner of a perfect SR MBP 2.2 Matte!
Jiddick ExRex is offline   0 Reply With Quote
Old Oct 13, 2007, 01:38 AM   #6
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
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...
robbieduncan is offline   0 Reply With Quote
Old Oct 13, 2007, 01:59 AM   #7
Jiddick ExRex
Thread Starter
macrumors 65816
 
Jiddick ExRex's Avatar
 
Join Date: May 2006
Location: Roskilde, DK
Quote:
Originally Posted by robbieduncan View Post
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?
__________________
The owner of a perfect SR MBP 2.2 Matte!
Jiddick ExRex is offline   0 Reply With Quote
Old Oct 13, 2007, 02:48 AM   #8
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by Jiddick ExRex View Post
They already are. How do I go about doing going in a locked down state?
Assuming this is up-to-date I'd start here
robbieduncan is offline   0 Reply With Quote
Old Oct 13, 2007, 02:59 AM   #9
SC68Cal
macrumors 68000
 
Join Date: Feb 2006
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!"
SC68Cal is offline   0 Reply With Quote
Old Oct 13, 2007, 03:50 AM   #10
Jiddick ExRex
Thread Starter
macrumors 65816
 
Jiddick ExRex's Avatar
 
Join Date: May 2006
Location: Roskilde, DK
Quote:
Originally Posted by SC68Cal View Post
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?
__________________
The owner of a perfect SR MBP 2.2 Matte!
Jiddick ExRex is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Ssh server. How to block all internet traffic except ssh? Mikehuang OS X Mavericks (10.9) 3 Mar 30, 2014 08:55 PM
SSH Control - ssh/telnet remote control app for iOS Velestar iPhone and iPod touch Apps 0 Jan 23, 2014 03:43 AM
iMac mid 2011 - script for HDD shutdown at startup? drtome iMac 0 Dec 22, 2013 07:19 AM
Remote access of Mac from windows-mac over internet meashish OS X 10.8 Mountain Lion 6 Jul 24, 2013 12:19 AM
A little problem: Need to bypass shutdown script Ri-dog Mac Basics and Help 5 Jan 18, 2013 08:21 AM

Forum Jump

All times are GMT -5. The time now is 03:54 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC