Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Proxmox KVM routed network with multiple public IPs
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Proxmox KVM routed network with multiple public IPs

I have a dedicated hosting with hetzner. Additionally i have bought one IP

My main IP is: 148.111.111.200 My main subnet is: 255.255.255.224

My additional IP is 148.222.222.13

I have got a windows server 2012 VM.
I configured it ;
Ip : 148.222.222.13
netmask : 255.255.255.255 (tried 255.255.255.224 but cant get access internet again)
Gateway : 148.111.111.200 (main ip)
DNS : 8.8.8.8 , 8.8.4.4

With this conf i cant get to access internet from windows vm. and there is pointopoint line in while configuring linux vms in hetzner wiki but i dont know where can i write this thing in Windows 2012. So Windows VM cant get to access internet with my additional ip :)
My windows vm using vmbr0 with bridged in proxmox gui.

My proxmox got config like this;

auto eth0
iface eth0 inet static
address 148.111.111.200
netmask 255.255.255.255
pointopoint 148.111.111.193
gateway 148.111.111.193
broadcast 148.111.111.193

default route to access subnet

auto vmbr0
iface vmbr0 inet static
address 148.111.111.200
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0

#subnet
up ip route add 148.222.222.13/32 dev vmbr0

auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0

post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE

Comments

  • erm this is confusing, you got so many different IPs. btw why do you have p-t-p and broadcast with your gateway?

    thorn said: auto eth0 iface eth0 inet static address 148.111.111.200 netmask 255.255.255.255 pointopoint 148.111.111.193 gateway 148.111.111.193 broadcast 148.111.111.193

  • thornthorn Member
    edited December 2015

    There is no error in my config. I have done my config with http://wiki.hetzner.de/index.php/Proxmox_VE/en

    I can access internet with a ubuntu machine and anyone can access to me from my public ip.

        Eth0;
        address 5.9.x.13 (add ip)
        netmask 255.255.255.224 (subnet of ip)
        gateway 5.9.x.15 (main ip)
    

    BUT I CANT GO INTERNET SAME CONFIG FROM A WINDOWS MACHINE :(

  • can't get in done in tcp/ipv4?

Sign In or Register to comment.