도찐개찐
[Mac] VMware Fusion Nat Port Forwading 본문
Mac 사용자들은 취약점 점검 시 vmware로 포트 포워딩이 필요할 때가 있다.
이때, 다음과 같이 설정해주면 포트 포워딩 가능하다.
1. VMware Fusion nat 설정 수정
sudo vi /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf
[incomingtcp]
# Use these with care - anyone can enter into your VM through these...
# The format and example are as follows:
#<external port number> = <VM's IP address>:<VM's port number>
#8080 = 172.16.3.128:80
8080 = 172.16.245.128:8080
2. 네트워크 인터페이스 재시작
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
a60105302@60105302s-MacBook-Pro bin % sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
Stopped DHCP service on vmnet1
Disabled hostonly virtual adapter on vmnet1
Stopped DHCP service on vmnet8
Stopped NAT service on vmnet8
Disabled hostonly virtual adapter on vmnet8
Stopped all configured services on all networks
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
a60105302@60105302s-MacBook-Pro bin % sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
Enabled hostonly virtual adapter on vmnet1
Started DHCP service on vmnet1
Started NAT service on vmnet8
Enabled hostonly virtual adapter on vmnet8
Started DHCP service on vmnet8
Started all configured services on all networks
a60105302@60105302s-MacBook-Pro bin %
출처 : https://white-hat.tistory.com/20
728x90
'MAC' 카테고리의 다른 글
윈도우(Windows10) 설치 USB만들기 in MacOS (0) | 2024.03.25 |
---|---|
[Mac] tar: Ignoring unknown extended header keyword (0) | 2024.01.05 |
[Mac] hosts 파일 수정 (0) | 2023.02.22 |
MacOS Homebrew 설치 (0) | 2022.03.14 |
Comments