ipv6 forwarding in guest

cvandeplas

New Member
Nov 9, 2008
7
0
1
christophe.vandeplas.com
I try to get my guest working as an IPv6 router.
(running proxmox 1.0), Linux gw601 2.6.24-1-pve #1 SMP PREEMPT Fri Oct 24 11:34:13 CEST 2008 i686 GNU/Linux


IPv6 works perfectly in the Guest:
# ping6 imset.org
PING imset.org(2001:41d0:1:2ed1::1) 56 data bytes
64 bytes from 2001:41d0:1:2ed1::1: icmp_seq=1 ttl=49 time=51.4 ms


But I cannot get ipv6 forwarding enabled.
root@gw601:~# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
-bash: /proc/sys/net/ipv6/conf/all/forwarding: Permission denied


It is possible to activate ipv4 forwarding:
root@gw601:~# cat /proc/sys/net/ipv4/conf/all/forwarding
1


(the changes are also in the sysctl.conf file, but ipv6 doesn't work).

I checked the configuration of the openVZ host.
I found the /etc/vz/vz.conf file that contained
## Enable IPv6
IPV6="no"

I changed the value to IPV6="yes". Even after a full reboot of the host I can't activate ipv6 forwarding in the guest.

Does someone has any idea how to solve this?

thanks
 
I never tested IPv6 but I will put on my todo list.
 
Hmm, I found the 'cause':

To get ipv6 forwarding in the guest, you need to enable ipv6 forwarding in the host.
Every guest will have ipv6 forwarding enabled. (maybe not really something you want)

This is not the same for ipv4. If enabled in the host, the guest will also have it enabled.
But if the host has ipv4 forwarding disabled, the guest can still enable it.

It's still not possible to edit/change ipv6 forwarding options in the guest. This means I can't run my radvd in the guest.

I'm going to continue the research on the openVZ forum and documentation...
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!