No internet on host. All VMs have internet access

Geetarcowboy

New Member
Nov 18, 2023
5
0
1
If anyone would be so kind to give me some help.

I have both VMs and 2 Containers both have access to internet, However Proxmox host does not. I am unable to download templates.
i can ping gateway 192.168.0.1
I can ping other devices on network

I cannot ping google.com
I cannot ping 1.1.1.1
I can not ping 8.8.8.8

/etc/networks/interfaces
Code:
auto lo
iface lo inet loopback

iface enp3s0f0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.50/24
        gateway 192.168.0.1
        bridge-ports enp3s0f0
        bridge-stp off
        bridge-fd 0

iface enp0s31f6 inet manual

iface enp3s0f1 inet manual

/etc/resolv.conf

Code:
search ht.home
nameserver 192.168.0.1
nameserver 1.1.1.1
nameserver 8.8.8.8


host

Code:
127.0.0.1 localhost.localdomain localhost
192.168.0.50 pve.ht.home pve

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
 
Ive been drilling through my Router and Just cant see anything that could cause it as every other device in the network works fine. As well as all VMs under Proxmox.
 
Unable to install MTR on the Proxmox host since no internet but this is the Traceroute for the Proxmox host


Code:
1  puma7-atom (192.168.0.1)  5.368 ms  6.105 ms  6.098 ms
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *

This is the MTR for the Kali VM- its routed through Pfsense.
Screenshot 2023-12-03 164132.png


Updated interfaces since reinstalling Pfsense after the Fresh install of Proxmox.


Code:
auto lo
iface lo inet loopback

iface enp3s0f0 inet manual

iface enp0s31f6 inet manual

iface enp3s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.50/24
        gateway 192.168.0.1
        bridge-ports enp3s0f0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
        address 192.168.1.2/24
        gateway 192.168.1.1
        bridge-ports enp3s0f1
        bridge-stp off
        bridge-fd 0
 
problem at here : gateway 192.168.0.1
192.168.0.1 NAT function has problem

go to check this machine 192.168.0.1

and you can not have two gateway at /etc/network/interfaces
only one gateway was correct
 
Last edited:
if you don't know why can I have two gateway at /etc/network/interfaces
then your problem may not at how to use pve server
at basic network knowledge
 
Im hoping that was just a message getting lost in translation instead of how Condescending that sounded.
The Second Gateway is pointed to Pfsence not the Hirton Router,

This is my workaround for getting internet access through pfsense rather then my Hirton router through vmbr0.

After a reboot I am able to ping 1.1.1.1/8.8.8.8/google through the Vmbr1.
 
Im hoping that was just a message getting lost in translation instead of how Condescending that sounded.
The Second Gateway is pointed to Pfsence not the Hirton Router,

This is my workaround for getting internet access through pfsense rather then my Hirton router through vmbr0.

After a reboot I am able to ping 1.1.1.1/8.8.8.8/google through the Vmbr1.
i have the same issue, and hade to use the same workaround to have internet on the host....
 
Ok.
I think there is a misunderstanding here.
As @Yogorov wrote: You can not have two gateways. What the "gateway" does, it tells the machine that if there is an "unknown" route, then relay all those packets to that gateway.
So actually, when you define the second, you ruin your routing.

The question is, what do you want to achieve with setup?