[K12OSN] OT: Limit Network Access by time

Sudev Barar sudev at mantraonline.com
Sat Feb 28 01:17:00 UTC 2004


On Fri, 2004-02-27 at 19:51, Les Mikesell wrote:
> On Fri, 2004-02-27 at 08:09, Jim Kronebusch wrote:
> > Wouldn’t the following two commands
> > 0 23 * * * /sbin/ipchains -I ethout 1 -i eth1 -j DENY
> > 0 23 * * * /sbin/ipchains -I ethin 1 -i eth1 -j DENY
> > Completely disable the interface on all ports?  I assumed if I ran this
> > on the local (Green Network for IPCop) it would disable routing

> On a RedHat based system you should be able to run
> ifdown interface
> ifup   interface
> to completely deactivate it, and the ifup script
> will deal with picking up a DHCP address if needed.
> If you drop the inside interface you could still
> receive inbound email, etc.
Been doing exactly that through my crontab file. No problems. Local
network and services are up but outside interface is down. No switch
timers etc etc. AND satisfy the geek in you ;-)
-- 
Sudev Barar

Learning Linux






More information about the K12OSN mailing list