Newbie needs help with a simple IPV6 PTP tunnel

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
rgschmi
OpenVpn Newbie
Posts: 4
Joined: Sun Jan 11, 2015 7:14 pm

Newbie needs help with a simple IPV6 PTP tunnel

Post by rgschmi » Sun Jan 11, 2015 7:57 pm

I'm running a Hercules emulator on OPENSUSE 13.1, which needs an internal point to point tunnel. I have no problem building an IPv4 tunnel with the following:

openvpn --mktun --dev tun0
ifconfig tun0 192.168.1.1 pointopoint 192.168.1.2

Is there an equivalent set of commands for IPv6? I've tried lots of combinations, but can't seem to make it work.

Thanks

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Newbie needs help with a simple IPV6 PTP tunnel

Post by maikcat » Mon Jan 12, 2015 10:27 am

hercules? you naughty boy... ;) z/OS or z/VM?

can you post what did you tried?

can you try this?

Code: Select all

ifconfig tun0 inet6 add 2001:610:120::200:0:1 2001:610:120::200:0:2 up
Michael.

rgschmi
OpenVpn Newbie
Posts: 4
Joined: Sun Jan 11, 2015 7:14 pm

Re: Newbie needs help with a simple IPV6 PTP tunnel

Post by rgschmi » Thu Jan 15, 2015 6:01 am

z/OS :roll:

I don't remember all the combinations I tried, both inside and outside of OPENVPN.

However, I created a tun5 with OPENVPN and tried what you suggested.


I get:

Don't know how to set addresses for family 10

I tried it with and without brackets. With brackets I get a resolver error, so brackets are not needed.

I also tried a lot of combinations using --ipconfig-ipv6 and --tun-ipv6 as an OPENVPN operands.

I have been able to add single IPv6 addresses to tun interfaces, which I can ping, so IPv6 is alive and well, I just can't configure a tunnel, which I need for MPCPTP6. I'm not an IPv6 expert, and was hoping to use this environment as a learning aid. I'm learning alright!

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Newbie needs help with a simple IPV6 PTP tunnel

Post by maikcat » Thu Jan 15, 2015 6:38 am

I have been able to add single IPv6 addresses to tun interfaces
now i am confused,is it working or not?
I just can't configure a tunnel
you can use openvpn to configure a simple tunnel using ipv6,which btw
ifconfig tun0 192.168.1.1 pointopoint 192.168.1.2
does NOT create a TUNNEL , it justs create a tun based interface in ptp mode and assigns it an ip.

Michael.

rgschmi
OpenVpn Newbie
Posts: 4
Joined: Sun Jan 11, 2015 7:14 pm

Re: Newbie needs help with a simple IPV6 PTP tunnel

Post by rgschmi » Fri Jan 16, 2015 3:50 am

Told you I was a newbie! I didn't realize it wasn't a tunnel I was creating with IPv4. It is not working yet, I just wanted to show that I IPv6 is running on linux.

I guess what I want then is the IPv6 equivalent of the IPv4 tun based ptp interface I created.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Newbie needs help with a simple IPV6 PTP tunnel

Post by maikcat » Fri Jan 16, 2015 6:50 am

Told you I was a newbie
without wanting to argue with you , you said "'im not an IPv6 expert, and was hoping to use this environment as a learning aid. I'm learning alright!"
i assumed you were talking about z/OS , i dont know many "newbies" experimenting with hercules and z/OS btw ;) .

you can use openvpn to create ipv6 point-to-point tunnel,
just read first the howtos of howe to create a simple tunnel using static key and i will help you.

Michael.

rgschmi
OpenVpn Newbie
Posts: 4
Joined: Sun Jan 11, 2015 7:14 pm

Re: Newbie needs help with a simple IPV6 PTP tunnel

Post by rgschmi » Sat Jan 17, 2015 8:09 pm

I have several 'newbie' stati (statuses?). I'm pretty new at linux, openvpn, and IPv6. Been around mainframe networking for a LOOONG time :o .

My goal is to create the easiest possible tun device to allow me to get hercules IPv6 connectivity. My understanding is that with a tun device I need two IP addresses, one that exists in linux and one that will be used by the hercules guest.

I read the VPN using a static key setup, which brings up a concern about keys. I don't really want to use a key if possible.

I've entered the commands for the server side of the tunnel and and have no issues with ipv4, however I do have problems trying to use ipv6 addresses. I'm beginning to wonder if I'm having OPENSUSE issues.

Here is what I entered:

openvpn --dev tun20 --ifconfig-ipv6 2605:a000:1400:8039::112 2605:a000:1400:8039::113

I'm entering all this from the console, not from a config file and I believe the syntax is correct.

I'm getting 'bind failed on local address [undef]. Address already in use.' These are new addresses and a new tun name, so I'm not sure what I am doing wrong.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Newbie needs help with a simple IPV6 PTP tunnel

Post by Traffic » Sat Jan 17, 2015 9:30 pm

rgschmi wrote:I'm getting 'bind failed on local address [undef]. Address already in use.'
would suggest you already have openvpn running .. on the same address ..

Post Reply