명령어로 방화벽 예외포트 열기
명령행으로 방화벽 제어하기(Windows XP SP2 이상) 윈도우
netsh firewall add portopening
[ protocol = ] TCP|UDP|ALL
[ port = ] 1-65535
[ name = ] name
[ [ mode = ] ENABLE|DISABLE
[ scope = ] ALL|SUBNET|CUSTOM
[ addresses = ] addresses
[ profile = ] CURRENT|DOMAIN|STANDARD|ALL
예)
netsh firewall add portopening protocol=TCP port=80 "Web Server" mode=enable scope=all
방화벽설정 초기화
netsh firewall reset
netsh firewall>show allowedprogram ==> 도메인 프로필에 대한 허용된 프로그램 구성:
모드 이름 / 프로그램
-------------------------------------------------------------------
사용 Winrtm32 / C:\WINDOWS\system32\winrtm32.exe
사용 Rtxc / C:\WINDOWS\system32\rtxc.exe
표준 프로필에 대한 허용된 프로그램 구성:
모드 이름 / 프로그램
-------------------------------------------------------------------
사용 Winrtm32 / C:\WINDOWS\system32\winrtm32.exe
사용 Rtxc / C:\WINDOWS\system32\rtxc.exe
사용 TClient / C:\Program Files\TCOstream\Client\TClient.exe
사용 HDNyCl MFC 응용 프로그램 / C:\HANDY\BIN\HDNyCl.exe
netsh firewall set icmpsetting 8 ENABLE
netsh firewall add allowedprogram C:\WINDOWS\system32\rtxc.exe Rtxc ENABLE
netsh firewall add allowedprogram "C:\Program Files\TCOstream\Client\TClient.exe" TClient ENABLE
netsh firewall add allowedprogram C:\WINDOWS\system32\winrtm32.exe Winrtm32 ENABLE
netsh firewall add allowedprogram C:\HANDY\BIN\HDNyCl.exe HDNyCl ENABLE
출처
http://www.devpia.co.kr/MAEUL/Contents/Detail.aspx?BoardID=17&MAEULNO=8&no=114455&ref=114455&page=1