Re: [PATCH 1/1] vpnc: add support to change interface name

2014-09-30 Thread Dan Williams
On Mon, 2014-09-29 at 10:27 +0200, Christian Hesse wrote:
> By default interface name is 'tun' with an incrementing number (tun0,
> tun1, ...). By specifying 'Interface name' in vpnc config you can change
> the name to something more descriptice.

Pushed this, thanks!  After some consideration though, I moved the
interface name UI widget to the Advanced dialog, since I don't think
most users would need to enter anything in there.  Hopefully that's OK
with you :)

Dan

> ---
>  properties/nm-vpnc-dialog.ui | 89 
> +---
>  properties/nm-vpnc.c | 43 -
>  src/nm-vpnc-service.c| 13 ++-
>  3 files changed, 114 insertions(+), 31 deletions(-)
> 
> diff --git a/properties/nm-vpnc-dialog.ui b/properties/nm-vpnc-dialog.ui
> index 168782e..6c46785 100644
> --- a/properties/nm-vpnc-dialog.ui
> +++ b/properties/nm-vpnc-dialog.ui
> @@ -555,7 +555,7 @@ config: DPD idle timeout (our side) 0
>
>  True
>  False
> -8
> +9
>  3
>  6
>  6
> @@ -574,8 +574,8 @@ config: DPD idle timeout (our side) 0
>
>  2
>  3
> -4
> -5
> +5
> +6
>
>  
>  
> @@ -593,8 +593,8 @@ config: DPD idle timeout (our side) 0
>
>  2
>  3
> -2
> -3
> +3
> +4
>
>  
>  
> @@ -611,8 +611,8 @@ config: DPD idle timeout (our side) 0
>
>  1
>  2
> -5
> -6
> +6
> +7
>
>  
>  
> @@ -626,8 +626,8 @@ config: IPSec secret 
>
>  1
>  2
> -4
> -5
> +5
> +6
>  
>
>  
> @@ -641,8 +641,8 @@ config: IPSec secret 
>   name="mnemonic_widget">group_password_entry
>
>
> -4
> -5
> +5
> +6
>  GTK_FILL
>  
>
> @@ -657,6 +657,8 @@ config: IPSec secret 
>  gateway_entry
>
>
> +1
> +2
>  GTK_FILL
>  
>
> @@ -666,13 +668,27 @@ config: IPSec secret 
>  True
>  False
>  0
> +_Interface 
> name:
> +True
> + name="mnemonic_widget">interface_name_entry
> +  
> +  
> +GTK_FILL
> +
> +  
> +
> +
> +  
> +True
> +False
> +0
>  G_roup 
> name:
>  True
>  group_entry
>
>
> -3
> -4
> +4
> +5
>  GTK_FILL
>  
>
> @@ -687,6 +703,21 @@ config: IPSec gateway 
>
>  1
>  2
> +1
> +2
> +
> +  
> +
> +
> +  
> +True
> +True
> + Name of 
> the tun/tap
> +network interface
> +  
> +  
> +1
> +2
>  
>
>  
> @@ -700,8 +731,8 @@ config: IPSec ID 
>
>  1
>  2
> -3
> -4
> +4
> +5
>  
>
>  
> @@ -715,8 +746,8 @@ config: IPSec ID 
>   name="mnemonic_widget">user_password_entry
>
>
> -2
> -3
> +3
> +4
>  GTK_FILL
>  
> 

Re: [PATCH 1/1] vpnc: add support to change interface name

2014-09-30 Thread Christian Hesse
Dan Williams  on Tue, 2014/09/30 12:33:
> On Mon, 2014-09-29 at 10:27 +0200, Christian Hesse wrote:
> > By default interface name is 'tun' with an incrementing number (tun0,
> > tun1, ...). By specifying 'Interface name' in vpnc config you can change
> > the name to something more descriptice.
> 
> Pushed this, thanks!

Great, thanks!

> After some consideration though, I moved the
> interface name UI widget to the Advanced dialog, since I don't think
> most users would need to enter anything in there.  Hopefully that's OK
> with you :)

I had thought about that myself... ;)
So I am fine.
-- 
Schoene Gruesse
Chris
 O< ascii ribbon campaign
   stop html mail - www.asciiribbon.org


signature.asc
Description: PGP signature
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH 1/1] openvpn: add support to change interface name

2014-09-30 Thread Christian Hesse
Christian Hesse  on Mon, 2014/09/29 14:46:
> By default interface name is 'tun' or 'tap' with an incrementing number
> (tun0, tun1, ... or tap0, tap1, ...). By specifying 'Interface name' in
> vpnc config you can change the name to something more descriptice.

The vpnc part has been merge with some changes. So questions arise:

* Do you want to update the UI file for GTK+ 3.4 and get an updated patch for
  that?
* Do you want the interface name widget on Advanced dialog? I suppose yes.
* Any other changes?
-- 
Schoene Gruesse
Chris
 O< ascii ribbon campaign
   stop html mail - www.asciiribbon.org


signature.asc
Description: PGP signature
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Question about cgdcont --> ip, ipv4v6, ipv6 --> MM--> NM?

2014-09-30 Thread Thomas Schäfer
Hi,

I am testing a little bit ipv6 (v6 only and v4/v6-dualstack) mobile 
connections via UMTS and LTE.

While modemmamanger

mmcli -m 0 --simple-connect="apn=internet,ip-type=ipv4v6"
mmcli -m 0 --simple-connect="apn=internet,ip-type=ipv6"

works. (using qmi, mbim and/or at+cgdcont ) I want to go up - to 
networkmanager.

So I am missing the possibility to configure the apn-type via NM .

(gsm section)
https://developer.gnome.org/NetworkManager/unstable/ref-settings.html


http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/libnm-util/nm-setting-gsm.h

How is it possible to set the IP-version? 

Which connection-editor(gnome, kde ...) is able to do it?

Regards,

Thomas




___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Question about cgdcont --> ip, ipv4v6, ipv6 --> MM--> NM?

2014-09-30 Thread Dan Williams
On Tue, 2014-09-30 at 21:52 +0200, Thomas Schäfer wrote:
> Hi,
> 
> I am testing a little bit ipv6 (v6 only and v4/v6-dualstack) mobile 
> connections via UMTS and LTE.
> 
> While modemmamanger
> 
> mmcli -m 0 --simple-connect="apn=internet,ip-type=ipv4v6"
> mmcli -m 0 --simple-connect="apn=internet,ip-type=ipv6"
> 
> works. (using qmi, mbim and/or at+cgdcont ) I want to go up - to 
> networkmanager.
> 
> So I am missing the possibility to configure the apn-type via NM .
> 
> (gsm section)
> https://developer.gnome.org/NetworkManager/unstable/ref-settings.html
> 
> 
> http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/libnm-util/nm-setting-gsm.h
> 
> How is it possible to set the IP-version? 

You configure the IPv4 and IPv6 methods, and optionally set "may-fail".
The logic is in
src/devices/wwan/nm-modem.c::nm_modem_get_connection_ip_type().  So, if
your modems supports IPV4V6:

ip4-method=auto, ip6-method=auto => IPV4V6
ip4-method=auto, ip6-method=ignore => IP
ip4-method=disabled, ip6-method=auto => IPV6

If the modem does not support IPV4V6, then NM will use the "may-fail"
property:

ip4-method=auto, ip6-method=auto, ip6-may-fail=yes => IP
ip4-method=auto, ip6-method=auto, ip4-may-fail=yes => IPV6

Dan

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list