Chinasmoker Posted April 22, 2008 Posted April 22, 2008 (edited) I wanna block some port,eg.1433,but I dont know how to do ,api or wmi ? group policy? Edited April 22, 2008 by Chinasmoker One is never too old to learn
everseeker Posted April 22, 2008 Posted April 22, 2008 (edited) I wanna block some port,es.1433,but I dont know how to do ,api or wmi ? group policy?routerfirewallSpackle Edited April 22, 2008 by everseeker Everseeker
Chinasmoker Posted April 22, 2008 Author Posted April 22, 2008 routerfirewallSpackle Thanks,I mean that I use script to block port on a pc(not router) One is never too old to learn
Chinasmoker Posted April 22, 2008 Author Posted April 22, 2008 (edited) Func pb() $port = GUICtrlRead($Input1) Select Case $port =0 MsgBox(0,"","你还没输入端口号") Case $port <>0 $pb = Run(@ComSpec & " /c ipseccmd -w REG -p 'port' -r 'port' -f *+0:") & $port & ":tcp -n BLOCK -x";the port is a var EndSelect EndFunc is that all right? Edited April 22, 2008 by Chinasmoker One is never too old to learn
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now