Hi everyone,
i've installed proxmox-ve 7.3 on top of a fresh Debian 11 installation hosted at Hetzner. Based on my research i've been able to setup interfaces which enable the guest system (Win) to access the internet.
My issue now are:
- i'm not able to ping the guest from the host
- i'm not able to port forward to the guest
/etc/network/interface on the host:
On the Windows guest i've configured vmbr1 as a network interface and set following settings manually for the interface in Win:
Did i mix to many guides in this setup? tbh i'm not realy understanding the routing and iptables parts.
I would very much appreciate any support to resolve my issues.
Thank you!
i've installed proxmox-ve 7.3 on top of a fresh Debian 11 installation hosted at Hetzner. Based on my research i've been able to setup interfaces which enable the guest system (Win) to access the internet.
My issue now are:
- i'm not able to ping the guest from the host
- i'm not able to port forward to the guest
/etc/network/interface on the host:
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp2s0
iface enp2s0 inet static
address 148.xxx.8.xxx/27
gateway 148.xxx.8.yyy
pointopoint 148.xxx.8.yyy
up route add -net 148.xxx.8.zzz netmask 255.255.255.224 gw 148.xxx.8.yyy dev enp2s0
auto vmbr0
iface vmbr0 inet static
address 148.xxx.8.xxx/27
hwaddress d4:3d:7e:ed:0b:72
broadcast 148.xxx.8.xyz
netmask 255.255.255.224
gateway 148.xxx.8.yyy
bridge-ports none
bridge-stp off
bridge-fd 0
pre-up brctl addbr vmbr0
up route add 10.10.10.2/32 dev vmbr0
up route add 10.10.10.3/32 dev vmbr0
auto vmbr1
iface vmbr1 inet static
address 10.9.9.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up iptables -t nat -A POSTROUTING -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '10.9.9.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2302 -j DNAT --to 10.9.9.5:2302
post-down iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2302 -j DNAT --to 10.9.9.5:2302
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t nat -F
On the Windows guest i've configured vmbr1 as a network interface and set following settings manually for the interface in Win:
- IP 10.9.9.5
- SUBNET 255.255.255.0
- GATEWAY 10.9.9.1
Code:
ping 10.9.9.5
PING 10.9.9.5 (10.9.9.5) 56(84) bytes of data.
^C
--- 10.9.9.5 ping statistics ---
328 packets transmitted, 0 received, 100% packet loss, time 334848ms
Did i mix to many guides in this setup? tbh i'm not realy understanding the routing and iptables parts.
I would very much appreciate any support to resolve my issues.
Thank you!