WhiteHat Security

[Mac] VMware Fusion Nat Port Forwading 본문

보안/Penetration testing

[Mac] VMware Fusion Nat Port Forwading

BokdungAbum

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 % 

'보안 > Penetration testing' 카테고리의 다른 글

Blind SQL Injection - Bit 연산  (0) 2022.07.08
[OSINT] karma 사용법  (0) 2019.08.06
안드로이드 Proxy 설정 방법 (wifi, iptables)  (0) 2019.01.25
icmpsh을 이용한 리버스쉘  (0) 2018.09.20
Comments