명령행으로 방화벽 제어하기(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
'OS > windows 여러가지' 카테고리의 다른 글
VMware 아무나 모르는 인터페이스 연결방식의 원리 (0) | 2011.06.03 |
---|---|
윈도우 IPC$ C$ ADMIN$ 없애기 (1) | 2011.06.01 |
Windows 7의 성능(Performance)은 windows xp에 비해 어떻게 향상되었을까요? (0) | 2011.02.10 |
windows 7에서 우분투 10.10 원격접속하기 (0) | 2011.02.10 |
스레드프로그래밍 셋팅 및 간단한 예제 (0) | 2010.09.28 |