Hello Proxmox forums,
I am new to Proxmox. I get myself a dedicated server at Hetzner Cloud. I setup cloud-init template of Ubuntu 20.04, everything went fine.
I am using 192.168.100.1/24 vmbr0 network.
I am using NAT to forward traffic etc., unfortunately I am unable to access public internet from the inside of the VM. Everything is failing. curl, ping,..
After running a tcpdump on host machine, it seems that the VM can access the host machine so the traffic must be dropped there. (tcpdump -n -l -i vmbr0)
These are iptables rules I added manually:
Host machine /etc/network/interfaces:
I was googling for about two hours, but I give up for now.
I am not network admin or so, I may be lacking some knowledge in this area resulting in some stupid mistake. But, I can't find it myself.
Thanks
I am new to Proxmox. I get myself a dedicated server at Hetzner Cloud. I setup cloud-init template of Ubuntu 20.04, everything went fine.
I am using 192.168.100.1/24 vmbr0 network.
I am using NAT to forward traffic etc., unfortunately I am unable to access public internet from the inside of the VM. Everything is failing. curl, ping,..
After running a tcpdump on host machine, it seems that the VM can access the host machine so the traffic must be dropped there. (tcpdump -n -l -i vmbr0)
These are iptables rules I added manually:
Code:
-A PREROUTING -i vmbr0 -p tcp -m tcp --dport 9900 -j DNAT --to-destination 192.168.100.101:22
-A PREROUTING -i vmbr0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 192.168.0.101:443
-A PREROUTING -i vmbr0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.0.101:80
-A POSTROUTING -s 192.168.0.0/24 -o vmbr0 -j MASQUERADE
Host machine /etc/network/interfaces:
Code:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp0s31f6
iface enp0s31f6 inet static
address _REDACTED_/26
gateway _REDACTED_
up route add -net 94.130.136.64 netmask 255.255.255.192 gw _REDACTED_ dev enp0s31f6
# route _REDACTED_/26 via _REDACTED_
iface enp0s31f6 inet6 static
address _REDACTED_/64
gateway fe80::1 # hetzner gw
auto vmbr0
iface vmbr0 inet static
address 192.168.100.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
I was googling for about two hours, but I give up for now.
I am not network admin or so, I may be lacking some knowledge in this area resulting in some stupid mistake. But, I can't find it myself.
Thanks