How to share NAT to VM2 through internal adapter

Discussions related to using VirtualBox on Windows hosts.
Post Reply
stststx
Posts: 2
Joined: 6. Sep 2022, 08:50

How to share NAT to VM2 through internal adapter

Post by stststx »

A NAT adapter has been attached to VM1 for internet access, how to get VM2 online with internal adapter connecting to VM1?
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to share NAT to VM2 through internal adapter

Post by mpack »

That isn't how NAT is used, because NAT addressed packets can't be routed.

That IS how NAT network is used. So I suggest you change network modes.
stststx
Posts: 2
Joined: 6. Sep 2022, 08:50

Re: How to share NAT to VM2 through internal adapter

Post by stststx »

mpack wrote:That isn't how NAT is used, because NAT addressed packets can't be routed.

That IS how NAT network is used. So I suggest you change network modes.
Can iptables route the traffic from internal to NAT if I have Tor-Browser on the VM1
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: How to share NAT to VM2 through internal adapter

Post by fth0 »

Yes. Just pretend that VM1 is a physical PC with two LAN adapters and search the Internet for how to configure that.
Post Reply