I posted earlier asking if anyone knew of a good windows based firewall that ran from the command line, but can't seem to find it. Having looked for close to a month, still no dice, so like a true nutcase, I decided to code my own...
I was wondering if anyone in here has any pointers or warnings to give me before I start this...even suggestions. I kind of want to do the whole thing in vbscript or, if even possible, a batch file. I have activeperl installed, but I'd like something that has a fair chance of working on other systems that don't happen to have perl installed. If push comes to shove, I suppose I could just whip out my c compiler tho.
Also, I am wondering if this is even possible under windows. On my unix systems, I can control my access levels from shell scripts easily. On windows....I haven't really the foggiest notion of where to start, but I suspect I'll have to browse microsoft's site an awful lot ... ugh.
Just to refresh tho, I basically want to do the following from the command line
myscript /stop 111.111.111.111
//this blocks access to/from 111.111.111.111 for the system
myscript /go 111.111.111.111
//this re-enables access to/from 111.111.111.111 for the system
I'm tired of going through windows and menus just to get something this simple done. and yes, I alter my firewall rules many times a day as part of my job.
PS - If you can think of a command line based firewall or a better way of doing this for windows, I'm still interested.
PPS - Windows is a requirement. Unix is not an option in this case.
Thanks in advance
I was wondering if anyone in here has any pointers or warnings to give me before I start this...even suggestions. I kind of want to do the whole thing in vbscript or, if even possible, a batch file. I have activeperl installed, but I'd like something that has a fair chance of working on other systems that don't happen to have perl installed. If push comes to shove, I suppose I could just whip out my c compiler tho.
Also, I am wondering if this is even possible under windows. On my unix systems, I can control my access levels from shell scripts easily. On windows....I haven't really the foggiest notion of where to start, but I suspect I'll have to browse microsoft's site an awful lot ... ugh.
Just to refresh tho, I basically want to do the following from the command line
myscript /stop 111.111.111.111
//this blocks access to/from 111.111.111.111 for the system
myscript /go 111.111.111.111
//this re-enables access to/from 111.111.111.111 for the system
I'm tired of going through windows and menus just to get something this simple done. and yes, I alter my firewall rules many times a day as part of my job.
PS - If you can think of a command line based firewall or a better way of doing this for windows, I'm still interested.
PPS - Windows is a requirement. Unix is not an option in this case.
Thanks in advance