I would like to redirect all ipv6 traffic from my local network to a VPN interface. Eth1 is a local interface on the local server, while eth0 is used for internet connection from my home router.
So the packets should go like this: any local client -> local server -> remote vpn -> open world. I've had this setup using ipv4 only for quite some time and it works fine. For ipv6 I believe I'd have to add a routing rule on my local server, but I have no clue how it should be done properly.
Local server interfaces:
eth0 Link encap:Ethernet HWaddr 9e:17:d2:87:42:95 inet addr:192.168.13.21 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::d217:c2ff:fe87:5295/64 Scope:Link eth1 Link encap:Ethernet HWaddr 00:13:3b:0f:e5:04 inet addr:10.0.6.5 Bcast:10.0.6.255 Mask:255.255.255.0 inet6 addr: fe80::213:3bff:fe0f:e504/64 Scope:Link tap0 Link encap:Ethernet HWaddr 7a:fa:d6:54:38:09 inet addr:172.16.0.65 Bcast:172.16.0.66 Mask:255.255.255.252 inet6 addr: fe80::64fa:c6ff:fe54:3809/64 Scope:Link
Besides the routing rule, is there anything else that should be done either on the local environment or the remote vpn machine? I believe ipv6 forwarding is enabled everywhere.
I'll appreciate any help and I would be glad to answer any follow-up questions that need to be answered. Cheers
Edit: The vpn server uses OpenVPN. It's currently all set up to work with ipv4 I believe. Is there anything that I should be specifically modifying in the config of openvpn server or the clients to make it work?