Newbie struggling to get to step 2 with NAT...
Posted: 18. Jan 2018, 13:14
Apologies if this is such a stupid question, but I have spent a couple of hours trying to find the answer to this, but I'm not sufficiently familiar with the precise terminology. Hopefully it'll be a simple one to answer!
I have a Linux box running VirtualBox 5.2 on a machine that has several IP addresses. I've set up guest VMs in the past where the MAC address is used to make a bridged network as though the host wasn't even there.
For my next trick, I'd like to have guests that are running legacy OSes for which no good software firewall exists. So I think the bridged method is no good and I'd like to set up NAT on a 1:1 IP address basis - so IPAddr1=Host, IPAddr2=Guest1, IPAddr3=Guest2. These are all Public IP addresses.
So do I have to set up a virtual LAN and give each of my guests it's own LAN IP address (eg. 10.0.0.2, 10.0.0.3,...) and then port forward (IPAddr2:<all ports> --> 10.0.0.2, IPAddr3:<all ports> --> 10.0.0.3, etc)?
Then any generic ufw rules I have on the host (eg. ufw allow from 62.30.1.2 to any ) will apply to all guest
And more specific rules can also be created on the host (eg. ufw allow from 62.30.1.2 to 10.0.0.2 ) will apply to specific guests? [Or maybe this should use Public IPAddr2?]
There must be a HowTo on this somewhere - what should I search for?
I have a Linux box running VirtualBox 5.2 on a machine that has several IP addresses. I've set up guest VMs in the past where the MAC address is used to make a bridged network as though the host wasn't even there.
For my next trick, I'd like to have guests that are running legacy OSes for which no good software firewall exists. So I think the bridged method is no good and I'd like to set up NAT on a 1:1 IP address basis - so IPAddr1=Host, IPAddr2=Guest1, IPAddr3=Guest2. These are all Public IP addresses.
So do I have to set up a virtual LAN and give each of my guests it's own LAN IP address (eg. 10.0.0.2, 10.0.0.3,...) and then port forward (IPAddr2:<all ports> --> 10.0.0.2, IPAddr3:<all ports> --> 10.0.0.3, etc)?
Then any generic ufw rules I have on the host (eg. ufw allow from 62.30.1.2 to any ) will apply to all guest
And more specific rules can also be created on the host (eg. ufw allow from 62.30.1.2 to 10.0.0.2 ) will apply to specific guests? [Or maybe this should use Public IPAddr2?]
There must be a HowTo on this somewhere - what should I search for?