Softaculous


Topic : Config and Routing of Subnet in Virtualizor


Posted By: svenhege on May 10, 2015, 6:41 pm
Hello!

We have an installtion of virtualizor 0n a Hetzner Server with KVM. We have with this server 3 single Ip´s and a /28 Subnet. The single ips are working when setting up a vm. The internet access does not work for the subnet. We have the subnet gw configured and the new VM gets the config which is ussually correct. The internet does not work!

Any suggestions?

Regards Sven

Posted By: jevingala on May 11, 2015, 6:23 am | Post: 1
Hi,

Since you are facing issue to configure hetzner ip subnet you can check this guide and follow the instructions :

http://virtualizor.com/wiki/NAT

Please let us know if you still face any issues.



-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Posted By: thornz on July 5, 2016, 11:32 pm | Post: 2
Hi, i got a Ded from hetzner i have done what this page is said http://www.virtualizor.com/wiki/NAT.

But my ips not reachable i cant access internet from my vms.

i have used one usable add ip gateway for my vms.

Here is the my config

/etc/sysconfig/network-scripts/ifcfg-viifbr0

DEVICE=viifbr0
BOOTPROTO=none
ONBOOT=yes
HWADDR=08:60:6E:46:FB:46
IPADDR=144.76.56.xx ---> main ip addres
NETMASK=255.255.255.224
SCOPE="peer 144.76.56.xx" ---> main gateway

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=08:60:6E:46:FB:xx ---> main mac addres
BRIDGE=viifbr0

now we use the first usable ip as gateway for VMs

/etc/sysconfig/network-scripts/ifcfg-viifbr0:1

DEVICE=viifbr0:1
TYPE=Bridge
BOOTPROTO=static
IPADDR=136.243.212.xx ---> main usable additional ip
NETMASK=255.255.255.224
ONBOOT=yes
DELAY=0
STP=off

/etc/sysconfig/network-scripts/route-viifbr0

ADDRESS0=0.0.0.0
NETMASK0=0.0.0.0
GATEWAY0=144.76.56.xx ---> main ip gateway

Posted By: jevingala on July 6, 2016, 5:36 am | Post: 3
Hi,

You don't need to do anything on server , just need to add ip pool on panel .
Incase of subnet ips you need to follow our guide.
And if you have separate ips then add the ip pool with the settings provided by your data center with mac address generated on their panel.
I assume you are using KVM Virtualizor.


-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Posted By: thornz on July 6, 2016, 7:13 am | Post: 4
i have fixed it by adding my subnet's first ip as gateway and removed manually created bridge. thank you

Posted By: quickbooks2018 on February 7, 2018, 3:26 pm | Post: 5
Quote From : thornz July 6, 2016, 7:13 am
i have fixed it by adding my subnet's first ip as gateway and removed manually created bridge. thank you


Dear Support,

I bought your Virtualizor Panel, I installed Virtualzor on Hertzner Server.

I have created the viifbr0 all is well, Created Centos VM but machine has no

internet connectivity, please guide

Regards

Posted By: zvictorp on September 10, 2018, 7:11 am | Post: 6
Quote From : quickbooks2018 February 7, 2018, 3:26 pm
Quote From : thornz July 6, 2016, 7:13 am
i have fixed it by adding my subnet's first ip as gateway and removed manually created bridge. thank you


Dear Support,

I bought your Virtualizor Panel, I installed Virtualzor on Hertzner Server.

I have created the viifbr0 all is well, Created Centos VM but machine has no

internet connectivity, please guide

Regards



I fixed the issue by adding

iptables -t nat -A POSTROUTING -o viifbr0 -j MASQUERADE

Posted By: qmp21 on October 16, 2019, 8:01 am | Post: 7
:) hello, everyone, in order to assign public ip pool fallow above configuration guide and select 1st last ip, and subnet 1st ip as gateway, select nat option, if not work ips vps ips ping from outside just fallow below

change subnet masq example /29 to /24
issue few commands
echo 1 > /proc/sys/net/ipv4/conf/viifbr0/forwarding
service virtnetwork restart
systemctl stop systemd-networkd.socket
systemctl disable systemd-networkd
systemctl disable systemd-networkd.socket
systemctl stop systemd-networkd
reboot

creat new vps and check
best  of luck
Done

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.