Hello i have a dedicated server at a hoster with one public IP and a Subnet of /29. The Public IP is where Proxmox is running. But i can´t connect my VM to the Internet only the Host IP i can ping.
My Configuration:
HOST /etc/network/interface
I used OVS bridges
HOST iptables -t nat -L -n -v
HOST ip route
Guest BSD
IP: 192.168.2.6
GW:192.168.2.1
netstat -r
i can´t get an internet connection but i can ping the 192.168.1.11.
Simply don´t see the error.
So does anyone have the answer for me.
Greeting Daniel
My Configuration:
HOST /etc/network/interface
I used OVS bridges
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback
allow-vmbr0 enp2s0
iface enp2s0 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
#pointopoint 192.168.1.20
#post-up echo 1 > /proc/s.ys/net/ipv4/ip_forward
#post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp
auto vmbr1
iface vmbr1 inet static
address 192.168.2.1
netmask 255.255.255.224
ovs_type OVSBridge
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.2.0/29' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.2.0/29' -o vmbr0 -j MASQUERADE
auto vmbr0
iface vmbr0 inet static
address 192.168.1.0
netmask 255.255.255.224
gateway 192.168.1.20
ovs_type OVSBridge
ovs_ports enp2s0
HOST iptables -t nat -L -n -v
Code:
Chain PREROUTING (policy ACCEPT 328 packets, 19959 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 32 packets, 1936 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 43 packets, 2873 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 43 packets, 2873 bytes)
pkts bytes target prot opt in out source destination
272 15547 MASQUERADE all -- * vmbr0 192.168.2.0/29 0.0.0.0/0
HOST ip route
Code:
default via 192.168.1.20 dev vmbr0 onlink
192.168.1.12/27 dev vmbr0 proto kernel scope link src 192.168.1.11
192.168.2.0/29 dev vmbr1 proto kernel scope link src 192.168.2.1
Guest BSD
IP: 192.168.2.6
GW:192.168.2.1
netstat -r
Code:
Destination Gateway Flags Netif Expire
0.0.0.0/32 192.168.2.1 UGS em0
default 192.168.2.1 UGS em0
192.168.2.0/29 link#1 U em0
i can´t get an internet connection but i can ping the 192.168.1.11.
Simply don´t see the error.
So does anyone have the answer for me.
Greeting Daniel
Last edited: