Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IPFW AND CRON

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hello Gurus,
I have a FreeBSD box running with NAT and IPFW. I have been trying to figure out what command to use to disable an internal IP address (f.ex. 192.168.0.2), and what command to use to enable it again. By disable/enable I mean allowing that IP to access the internet. Once I have figured this out, I would like to have a cron script running that automatically disables that specific internal IP at f.ex. 20:00PM, and enables again at f.ex. 08:00AM. Would any of you guys be able to point me in the right direction?
 
Ipchains would be :
ipchains -I input -s xx.xx.xx.xx -j DENY -l and
ipchains -I input -s xx.xx.xx.xx -j ACCEPT -l

But none too sure for IPFWD.

Get a great Linux driven firewall for free from :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top