Opened 21 months ago

Last modified 20 months ago

#808 accepted Feature Wish

ifconfig-push-ipv6 should behave like ifconfig-push (DNS names)

Reported by: Obbi Owned by: Gert Döring
Priority: minor Milestone: release 2.5
Component: IPv6 Version: OpenVPN 2.4.0 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: ifconfig, ipv6, push
Cc:

Description

Since ifconfig-push allows the use of dns names that will be resolved by the server and then pushed to the client, it should be possible to do the same with ipv6. Otherwise the dns names for client adresses in the custom client configs is semi useless.

p.ex. one might want to use:
ifconfig-push name.example.com 255.255.255.0 # maybe even change to /24 to be more consistent with below...
ifconfig-ipv6-push name.example.com /64

It is useful cause it allows address changes by changing dns zones which will have to be done either way when using dns names in the first place.

Another reason is consistency in my opinion ipv6 specific config options should behave as their counterparts (where possible)

It looks like the resolver part needs to go somewhere in between there:
https://github.com/OpenVPN/openvpn/blob/master/src/openvpn/options.c#L1069

Since I'm not familiar with the ovpn source I'm not sure if there are routines/helper for resolving ipv6 addresses so before considering implementing this I thought I get some ideas/feedback first.

Change History (3)

comment:1 Changed 21 months ago by Gert Döring

Milestone: release 2.5
Owner: set to Gert Döring
Status: newaccepted

I wasn't aware --ifconfig-push could be used in this manner when implementing --ifconfig-ipv6-push so I only did "addresses". But you're right, this certainly is a useful feature.

I'll take this, but I'm not making promises on delivery. It's likely that this won't make a 2.4.x release either if it's too intrusive - but we hope to have a 2.5.0 in less than the 3 years time 2.3->2.4 took us...

comment:2 Changed 20 months ago by Antonio

I have just sent a patch implementing this (missing) feature to the mailing list.
Subject is "[PATCH] ifconfig-ipv6(-push): allow using hostnames" and it is based on current master.

Anybody willing to perform more tests is more than welcome!

comment:3 Changed 20 months ago by Antonio

Note: support for "xxxx/bits" is still work in progress :)

Note: See TracTickets for help on using tickets.