Jump to content

Recommended Posts

Posted (edited)

I wanna block some port,es.1433,but I dont know how to do ,api or wmi ? group policy?

router

firewall

Spackle

:D

Edited by everseeker

Everseeker

Posted (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 by Chinasmoker

One is never too old to learn

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...