Sign in to follow this  
Followers 0
Chinasmoker

I wanna block some port

4 posts in this topic

#1 ·  Posted (edited)

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

Edited by Chinasmoker

One is never too old to learn

Share this post


Link to post
Share on other sites



#2 ·  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

Share this post


Link to post
Share on other sites

router

firewall

Spackle

:D

Thanks,I mean that I use script to block port on a pc(not router)

One is never too old to learn

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0