Mailing List Archive

svn commit: vpnc r549 - /trunk/vpnc-script
Author: Joerg Mayer
Date: Mon May 26 22:00:45 2014
New Revision: 549

Log:
Sync to vpnc-script git repo:

David Woodhouse
Set MTU on Windows


Modified:
trunk/vpnc-script

Modified: trunk/vpnc-script
==============================================================================
--- trunk/vpnc-script (original)
+++ trunk/vpnc-script Mon May 26 22:00:45 2014
@@ -36,7 +36,6 @@
#* INTERNAL_IP6_DNS -- IPv6 list of dns servers
#* CISCO_DEF_DOMAIN -- default domain name
#* CISCO_BANNER -- banner from server
-#* CISCO_SPLIT_DNS -- comma-separated list of domain names with split DNS
#* CISCO_SPLIT_INC -- number of networks in split-network-list
#* CISCO_SPLIT_INC_%d_ADDR -- network address
#* CISCO_SPLIT_INC_%d_MASK -- subnet mask (for example: 255.255.255.0)
@@ -723,6 +722,31 @@
if [ -n "$INTERNAL_IP4_DNS" ]; then
$RESTORERESOLVCONF
fi
+
+
+ if [ -n "$IPROUTE" ]; then
+ if [ -n "$INTERNAL_IP4_ADDRESS" ]; then
+ $IPROUTE addr del "$INTERNAL_IP4_ADDRESS/255.255.255.255" peer "$INTERNAL_IP4_ADDRESS" dev "$TUNDEV"
+ fi
+ # If the netmask is provided, it contains the address _and_ netmask
+ if [ -n "$INTERNAL_IP6_ADDRESS" ] && [ -z "$INTERNAL_IP6_NETMASK" ]; then
+ INTERNAL_IP6_NETMASK="$INTERNAL_IP6_ADDRESS/128"
+ fi
+ if [ -n "$INTERNAL_IP6_NETMASK" ]; then
+ $IPROUTE -6 addr del $INTERNAL_IP6_NETMASK dev $TUNDEV
+ fi
+ else
+ if [ -n "$INTERNAL_IP4_ADDRESS" ]; then
+ ifconfig "$TUNDEV" 0.0.0.0
+ fi
+ if [ -n "$INTERNAL_IP6_ADDRESS" ] && [ -z "$INTERNAL_IP6_NETMASK" ]; then
+ INTERNAL_IP6_NETMASK="$INTERNAL_IP6_ADDRESS/128"
+ fi
+ if [ -n "$INTERNAL_IP6_NETMASK" ]; then
+ ifconfig "$TUNDEV" inet6 del $INTERNAL_IP6_NETMASK
+ fi
+ fi
+
destroy_tun_device
}


_______________________________________________
vpnc-devel mailing list
vpnc-devel@unix-ag.uni-kl.de
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/
Re: svn commit: vpnc r549 - /trunk/vpnc-script [ In reply to ]
Hi!

2014-05-26 22:00 GMT+02:00 <vpnc@unix-ag.uni-kl.de>:
> Author: Joerg Mayer
> Date: Mon May 26 22:00:45 2014
> New Revision: 549
>
> Log:
> Sync to vpnc-script git repo:
>
> David Woodhouse
> Set MTU on Windows
>
>
> Modified:
> trunk/vpnc-script
>
> Modified: trunk/vpnc-script
> ==============================================================================
> --- trunk/vpnc-script (original)
> +++ trunk/vpnc-script Mon May 26 22:00:45 2014
> @@ -36,7 +36,6 @@
> #* INTERNAL_IP6_DNS -- IPv6 list of dns servers
> #* CISCO_DEF_DOMAIN -- default domain name
> #* CISCO_BANNER -- banner from server
> -#* CISCO_SPLIT_DNS -- comma-separated list of domain names with split DNS

How relates this change to MTU?


> #* CISCO_SPLIT_INC -- number of networks in split-network-list
> #* CISCO_SPLIT_INC_%d_ADDR -- network address
> #* CISCO_SPLIT_INC_%d_MASK -- subnet mask (for example: 255.255.255.0)
_______________________________________________
vpnc-devel mailing list
vpnc-devel@unix-ag.uni-kl.de
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/
Re: svn commit: vpnc r549 - /trunk/vpnc-script [ In reply to ]
On Mon, May 26, 2014 at 10:31:14PM +0200, Szabolcs Hubai wrote:
> Hi!
> > -#* CISCO_SPLIT_DNS -- comma-separated list of domain names with split DNS
>
> How relates this change to MTU?

It doesn't. It was just another difference between the vpnc-script repo
and the vpnc repo that I missed :-)

Ciao
Jörg
--
Joerg Mayer <jmayer@loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
_______________________________________________
vpnc-devel mailing list
vpnc-devel@unix-ag.uni-kl.de
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/
Re: svn commit: vpnc r549 - /trunk/vpnc-script [ In reply to ]
This irrelevant change reverts the vpnc-script part of r532 [1].
Please revert this deletion!


Thanks,
Szabolcs


[1]: http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2013-December/003992.html

2014-05-27 0:01 GMT+02:00 Joerg Mayer <jmvpnc@loplof.de>:
> On Mon, May 26, 2014 at 10:31:14PM +0200, Szabolcs Hubai wrote:
>> Hi!
>> > -#* CISCO_SPLIT_DNS -- comma-separated list of domain names with split DNS
>>
>> How relates this change to MTU?
>
> It doesn't. It was just another difference between the vpnc-script repo
> and the vpnc repo that I missed :-)
>
> Ciao
> Jörg
> --
> Joerg Mayer <jmayer@loplof.de>
> We are stuck with technology when what we really want is just stuff that
> works. Some say that should read Microsoft instead of technology.
> _______________________________________________
> vpnc-devel mailing list
> vpnc-devel@unix-ag.uni-kl.de
> https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
> http://www.unix-ag.uni-kl.de/~massar/vpnc/

_______________________________________________
vpnc-devel mailing list
vpnc-devel@unix-ag.uni-kl.de
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/
Re: svn commit: vpnc r549 - /trunk/vpnc-script [ In reply to ]
On Thu, Nov 13, 2014 at 08:58:00PM +0100, Szabolcs Hubai wrote:
> This irrelevant change reverts the vpnc-script part of r532 [1].
> Please revert this deletion!

> [1]: http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2013-December/003992.html
>
> 2014-05-27 0:01 GMT+02:00 Joerg Mayer <jmvpnc@loplof.de>:
> > On Mon, May 26, 2014 at 10:31:14PM +0200, Szabolcs Hubai wrote:
> >> Hi!
> >> > -#* CISCO_SPLIT_DNS -- comma-separated list of domain names with split DNS
> >>
> >> How relates this change to MTU?
> >
> > It doesn't. It was just another difference between the vpnc-script repo
> > and the vpnc repo that I missed :-)

Actually what I meant is that I missed to add a comment on the removal.
I intend to sync this file from time to time to the vpnc-script repo - so
please get this line into
git://git.infradead.org/users/dwmw2/vpnc-scripts.git, the contact address
is probably the one in the header of vpnc-script:
# © 2009-2012 David Woodhouse <dwmw2@infradead.org>
and let me know once it's in. I'll then update from there (I should sync
again anyway soon).

Thanks
Jörg

--
Joerg Mayer <jmayer@loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
_______________________________________________
vpnc-devel mailing list
vpnc-devel@unix-ag.uni-kl.de
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/