Setting up Native IPv6 for OVZ for Proxmox on your Dedibox /Online.net. No Failover IP, Virtual MAC or Router required.
I have to mention that messing with your network config can do terrible things to your server, so proceed at your own risk..
Good for the Kidechire that don't require KVM in Proxmox.
1) Enable IPv6
/etc/modprobe.d/local.conf
options ipv6 disable=0
2) Get IPv6 to start on boot add the line ipv6 below loop
/etc/module
ipv6
3) Reboot server to enable IPv6
4) Enable Forwarding and Proxy
/etc/sysctl.conf
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.all.proxy_ndp = 1
net.ipv6.bindv6only = 1
5) in putty issue command
sysctl -p
6) From the online console go to the IPv6 tab and create a /64 subnet from your /48 IP block.
7) Create a new file named dhclient6.conf in
/etc/dhcp/
Replace DUID with the DUID number of the /64 from the online console.
interface "vmbr0" {
send dhcp6.client-id DUID;
request;
}
8) Network Configuration, add the following lines to your interfaces file
/etc/network/interfaces
iface vmbr0 inet6 static
address YourIPv6::1
netmask 64
accept_ra 2
pre-up dhclient -cf /etc/dhcp/dhclient6.conf -pf /run/dhclient6.eth0.pid -v -nw -6 -P vmbr0
pre-down dhclient -x -pf /run/dhclient6.eth0.pid
9) Restart Network issue the command in putty or reboot your server
service networking restart
You can add IPv6 directly in the CT creation page from the Proxmox Web GUI, no need to configure anything else prior.
From the Proxmox Web GUI
Top Right click "Create CT" button
Fill the info accordingly until you reach the "Network" tab
Beside "IP address" input your IPv6 address eg. xxxx:xxx:xxxx:xxx::2 Make sure you reserve this IP strictly for this CT and that the IP is not used anywhere else.
You may choose any IPv6 within your range but xxxx:xxx:xxxx:xxx::1 since this is already in use for the Proxmox host.
On the "DNS" tab leave it as is, we will change it after the CT is created.
Once on the "Confirm" tab you can review your setting and if all is well then click the "Finish" button
After your CT is created click on the CT and it should be highlighted blue, then Click on the "DNS" tab to the right of the CT
Under the "DNS" tab double click on "DNS server" and if the CT will be a IPv6 only you can delete all the IPv4 DNS and input a IPv6 DNS of your choosing. 2001:4860:4860::8888 for Googles Public DNS or 2001:470:20::2 for HE's Public DNS or use them both separating them with a space in between.
If you have followed the steps correctly you should now be able to start your CT and access it from the internet.
Well hope it's not too confusing. Let me know if this works out or if I goofed something up..
This tutorial is actually a continuation from my other guide on setting up IPv6 on KVM for your Dedibox server which you can find Here
Reference:
http://ift.tt/1DtFqwQ
http://ift.tt/1NIVD4b
http://ift.tt/1DtFtJc
http://ift.tt/1DtFqwT
http://ift.tt/1NIVD4f
http://ift.tt/1kfercT
http://ift.tt/1dvHQ0Z
0 comments:
Post a Comment