Pushing IPV6 configuration to a client not supporting IPV6
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Apr 16, 2013 7:58 am
Pushing IPV6 configuration to a client not supporting IPV6
I am connecting to a VPN provider that supports IPV6. My configuration does not support it, and I just want the IPV4 setup.
On connect, the server pushes routes and ifconfig with IPv6 data to the client and making it crash.
I have not specified tun-ipv6 in the client configuration, and I got a warning about that the server and client config does not match. But shouldn't it be enough to not specify this option in the client config to make it ignore IPv6 commands pushed by the server?
Is it totally impossible to connect to a IPv6 ready server with a IPv4 only client? If not, how can I make it ignore the pushed commands?
On connect, the server pushes routes and ifconfig with IPv6 data to the client and making it crash.
I have not specified tun-ipv6 in the client configuration, and I got a warning about that the server and client config does not match. But shouldn't it be enough to not specify this option in the client config to make it ignore IPv6 commands pushed by the server?
Is it totally impossible to connect to a IPv6 ready server with a IPv4 only client? If not, how can I make it ignore the pushed commands?
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Pushing IPV6 configuration to a client not supporting IP
you can prevent the pulling of routes using
you can overrule the pulling of *anything* by not specifying "client" in the client config; specify
instead; you will be responsible for setting up the link , however.
An alternative is to use an "up" script and use
to have openvpn not automatically bring up the interface.
Code: Select all
route-nopull
Code: Select all
tls-client
An alternative is to use an "up" script and use
Code: Select all
ifconfig-noexec
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Apr 16, 2013 7:58 am
Re: Pushing IPV6 configuration to a client not supporting IP
OK, thank you. I guess that is an option, but I want some routes (all IPv4 routes) and the IPv4 IP, so I would have to make a more or less intelligent script then.
Would it be possible to make openvpn ignore this error;
Linux ifconfig inet6 failed: external program exited with error status: 1
and continue? That would solve my issues as well.
Would it be possible to make openvpn ignore this error;
Linux ifconfig inet6 failed: external program exited with error status: 1
and continue? That would solve my issues as well.
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Pushing IPV6 configuration to a client not supporting IP
you'll have to use
this scrilpt will be called with parameters
and perhaps a few more, so the script needs to do something like
Code: Select all
ifconfig-noexec
up /etc/openvpn/ipv4-up.sh
Code: Select all
tun/tap-dev tun-mtu link-mtu ifconfig-local-ip ifconfig-remote-ip
Code: Select all
#!/bin/bash
/sbin/ifconfig $1 $4 $5 mtu $2
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Apr 16, 2013 7:58 am
Re: Pushing IPV6 configuration to a client not supporting IP
Yes, thank you.
Which and in what order of parameters is the route script called with? How would an example of a route script look?
Which and in what order of parameters is the route script called with? How would an example of a route script look?
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Pushing IPV6 configuration to a client not supporting IP
I'd try it first with the "regular" route script, i.e. don't use "route-nopull" but simply let openvpn take care of it - failures in the 'route' commands do NOT cause openvpn to abort.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Apr 16, 2013 7:58 am
Re: Pushing IPV6 configuration to a client not supporting IP
Thanks again.
As expected you were right.
It works OK now, with this ifconfig-up script:
Thank you
As expected you were right.
It works OK now, with this ifconfig-up script:
Code: Select all
#!/bin/sh
/sbin/ifconfig $dev $ifconfig_local netmask $ifconfig_netmask mtu 1500 broadcast $ifconfig_broadcast