Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. Connman to control OpenVPN connection (Florent Le Saout)


----------------------------------------------------------------------

Message: 1
Date: Tue, 27 Dec 2016 18:52:57 +0100
From: Florent Le Saout <[email protected]>
To: "[email protected]" <[email protected]>
Subject: Connman to control OpenVPN connection
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Hello,

I'm trying to get vpn connection managed by connman.

I've been looking in the documentation in the sources or website, but
didn't find my answer yet.

So far, I can connect to my OpenVPN server manually via connmanctl, so I
guess my vpn config file is quite ok.

But the remaining question is about the autoconnection and link
verification.

>From my understanding autoconnect, reconnect etc, that we can configure
in main config file only applies to technologies, but VPNs are not
technologies from connman perspectives, so they are listed as service
(maybe my statement here is not correct ?).

My goal is to be able, as  soon as I get proper network connection,
either by ethernet, cellular or wifi technologies to get connected to my
vpn server and in case of disconnection (so implicitly a connection
check is done in background) to get reconnected.

  * How to setup autoconnect and reconnect with OpenVPN (also in case we
    change technology from ethernet to cellular for instance) ?

  * Regarding routes, I would like to know how to apply the routes
    pushed by the OpenVPN server as the default route?

  * Regarding DNS server, I also would like to know how to get the DNS
    pushed by the OpenVPN applied in resolv.conf ?

If my questions are unclear feel free to ask.

Below you can find more details about my setup.

Thanks,

Florent.

----------------------------------------------------------------------------

My setup is :

  * connman 1.33
  * connman-vpnd
  * connman-plugin-vpn
  * openvpn 2.3.14

My VPN config file is :

    [global]
    Name = OpenVPVN
    Description = OepnVPN custom configuration

    [provider_openvpn]
    Type = OpenVPN
    Name = Custom VPN
    Host = MY_SERVER_IP
    Domain = MY_DOMAIN
    Networks =
    192.168.1.0/255.255.255.0/10.8.0.1,192.168.0.0/255.255.0.0/10.8.0.1
    OpenVPN.ConfigFile=/etc/openvpn/client-openvpn.conf

My VPN config stored by connman is :

    connmanctl> services vpn_MY_SERVER_IP_MY_DOMAIN
    /net/connman/service/vpn_MY_SERVER_IP_MY_DOMAIN
    Type = vpn
      Security = [  ]
      State = ready
      Favorite = True
      Immutable = False
      AutoConnect = False
      Name = Custom VPN
      IPv4 = [ Method=fixed, Address=10.8.0.18, Netmask=255.255.255.255,
    Gateway=MY_SERVER_IP ]
      IPv4.Configuration = [ Method=fixed, Address=10.8.0.18,
    Netmask=255.255.255.255, Gateway=MY_SERVER_IP ]
      IPv6 = [  ]
      IPv6.Configuration = [ Method=off ]
      Nameservers = [ 10.8.0.1 ]
      Nameservers.Configuration = [  ]
      Timeservers = [  ]
      Timeservers.Configuration = [  ]
      Domains = [ ran.com ]
      Domains.Configuration = [  ]
      Proxy = [ Method=direct ]
      Proxy.Configuration = [  ]
      Provider = [ Host=MY_SERVER_IP, Type=openvpn ]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.01.org/pipermail/connman/attachments/20161227/01690cac/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 14, Issue 29
***************************************

Reply via email to