Hello,
I need some hints about writing a script to control the firewall, an
example would be very helpful. Here is what I want to do.
I want to have a special file on my web server, whenever someone visits
this special file, a script will be executed. The script will grab the ip
of the visitor, then opens certain ports for the specific ip.
For example, when someone visits
http://www.myhost.com/hack.html from ip 127.0.0.1
I want the script to do the following to modify the firewall:
ipchains -I input -s 127.0.0.1/255.255.255.255 -d 10.0.0.1 2214:2312 -p 6
-j ACCEPT
Now, how do I go about that? Hope someone would spare a few minutes to
help, thanks.