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 |
Tags
- web.xml
- bash
- VirtualBox
- plugin
- 단축키
- profile
- JavaScript
- import
- maVen
- ssh
- find
- vscode
- IntelliJ
- grep
- port
- Windows 10
- xargs
- 네트워크
- Windows
- Source
- resource
- netsh
- GIT
- context
- Quartz
- Eclipse
- tomcat
- lsof
- Mac
- 줄바꿈 문자
Archives
- Today
- Total
develog
[windows] netsh 포트 포워딩 적용하기 본문
Windows PowerShell 을 관리자 권한으로 실행한다
기본 사용법
# 포트 포워딩 리스트 보기
netsh interface portproxy show v4tov4
# 포트 포워딩 등록
# 로컬 8888 포트를 127.0.0.1:8080 포트로 포워딩
netsh interface portproxy add v4tov4 listenport=8888 connectaddress=127.0.0.1 connectport=8080
# 포트 포워딩 삭제
# 로컬 8888 포트 포워딩을 삭제
netsh interface portproxy delete v4tov4 listenport=8888
80, 443, 22 포트 포워딩하기
# windows 에서 virtualbox 192.168.56.101 로 포트 포워딩 하기
netsh interface portproxy add v4tov4 listenport=80 connectaddress=192.168.56.101 connectport=80
netsh interface portproxy add v4tov4 listenport=443 connectaddress=192.168.56.101 connectport=443
netsh interface portproxy add v4tov4 listenport=22 connectaddress=192.168.56.101 connectport=22