c# - Programmatically add rules to "Windows Firewall with Advanced Security snap-in"? -



c# - Programmatically add rules to "Windows Firewall with Advanced Security snap-in"? -

is there library in .net allow me manipulate windows firewall advanced security in windows 7?

the reason inquire because, want able add together program/port exceptions programmatically.

for example, want add together program.exe inbound rules section , program, want allow tcp port 5660 , udp port 5660. other ports should blocked programme alone;

i reasoned comfortably set in inbound rules section in windows firewall advanced security; hope best way of doing it?

however, how accomplish programmatically?

i have seen illustration here, think 1 talks "allow programme through windows firewall snap-in", not have port information.

greg's reply in question helped me.

http://stackoverflow.com/questions/1242566/any-way-to-turn-the-internet-off-in-windows-using-c

c# windows-7 firewall

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -