Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- web.xml
- import
- tomcat
- IntelliJ
- context
- ssh
- 단축키
- Windows
- port
- find
- bash
- netsh
- lsof
- 공통표준용어
- grep
- xargs
- Source
- Quartz
- 네트워크
- profile
- VirtualBox
- resource
- copy-dependencies
- DB 도메인
- Eclipse
- Windows 10
- maVen
- JavaScript
- GIT
- Mac
Archives
- Today
- Total
develog
[windows] netsh, port open, 방화벽 포트 오픈/삭제/확인하기 본문
cmd(명령 프롬프트) 를 관리자 권한으로 실행한다
netsh 명령으로 포트를 오픈/삭제/확인한다
# 포트 확인하기
netsh firewall show port
netsh advfirewall firewall show rule name=all
netsh advfirewall firewall show rule name="포트오픈 22"
netsh advfirewall firewall show rule name="포트오픈 80"
netsh advfirewall firewall show rule name="포트오픈 443"
netsh advfirewall firewall show rule name="포트오픈 3306"
# 포트 오픈하기
netsh advfirewall firewall add rule name="포트오픈 22" dir=in action=allow protocol=TCP localport=22
netsh advfirewall firewall add rule name="포트오픈 80" dir=in action=allow protocol=TCP localport=80
netsh advfirewall firewall add rule name="포트오픈 443" dir=in action=allow protocol=TCP localport=443
netsh advfirewall firewall add rule name="포트오픈 3306" dir=in action=allow protocol=TCP localport=3306
# 포트 삭제하기
netsh advfirewall firewall delete rule name="포트오픈 22" protocol=tcp local
netsh advfirewall firewall delete rule name="포트오픈 80" protocol=tcp local
netsh advfirewall firewall delete rule name="포트오픈 443" protocol=tcp local
netsh advfirewall firewall delete rule name="포트오픈 3306" protocol=tcp local
Comments