LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   problems with NAT on Deb 10 box (https://www.linuxquestions.org/questions/linux-networking-3/problems-with-nat-on-deb-10-box-4175691366/)

ktpmm17 03-01-2021 07:30 AM

problems with NAT on Deb 10 box
 
I've got a Deb10 VM on a laptop and would like this to do the NAT'ing for a Dell server with VM's on the backside. Here is how I have my Deb10 interfaces set up:

Code:

iface enp0s17 inet dhcp (usually gets 192.168.1.191)
iface enp0s8 inet static
  address 10.0.0.20
  netmask 255.255.255.0

The results of "ip route show" on Deb10 laptop are:

Code:

default via 192.168.1.1 dev enp0s17
10.0.0.0/24 dev enp0s8 proto kernel scope link src 10.0.0.20
192.168.1.0/24 dev enp0s17 proto kernel scope link src 192.168.1.191


The Deb10 laptop can reach the Internet, but cannot ping the other VM's in the 10.0.0.X range. IPTables allows everything.


On my Dell server VM, I have the following network set up:

Code:

iface eth0 inet static
  address 10.0.0.30
  netmask 255.255.255.0
  gateway 10.0.0.20

IPTables allow everything through. I should be able to ping my laptop but cannot.

Pretty basic set up but I am obviously missing something. Any help would be appreciated

berndbausch 03-01-2021 07:56 AM

To comment, I would need more information. What hypervisor you use for the VMs. What is the VM host's OS. What kind of network is 10.0.0/24. Can the other VMs connect to each other?

Re-reading your question, you seem to have VMs running on a Dell server which is connected to the 10.0.0/24 network. The main question is how the Debian10 VM on your laptop is connected to this network.

ktpmm17 03-01-2021 08:27 AM

Quote:

Originally Posted by berndbausch (Post 6226071)
To comment, I would need more information. What hypervisor you use for the VMs. What is the VM host's OS. What kind of network is 10.0.0/24. Can the other VMs connect to each other?

Re-reading your question, you seem to have VMs running on a Dell server which is connected to the 10.0.0/24 network. The main question is how the Debian10 VM on your laptop is connected to this network.

I'm using qemu/kvm for my VM's. VM's are mostly Linux (Debian, Ubuntu and CentOS) with one Windows that will be my domain controller. The VM's are on the 10.0.0.x network and can talk to each other.

My laptop is on the 192.168.1.x network and as the Dell server.

FIOS Router -> Network Orbi (doing DHCP) -> laptop (192.168.1.x)
FIOS Router -> Network Orbi (doing DHCP) -> Dell server (192.168.1.x)

I'd like to add a second network and have the Dell server come through the laptop, or at the very least, have all the VM's come through qemu then to the Internet.


All times are GMT -5. The time now is 07:38 PM.