aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/6in4/files
Commit message (Collapse)AuthorAgeFilesLines
* 6in4/6in4.sh: remove some bashism (usage of [[)Sven Roederer2020-01-261-1/+1
| | | | | | | "[[" is a bash extension for test. As the ash-implementation is not fully compatible we drop its usage. Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
* 6in4: add rfc1918 check functionSean Kenny2019-10-181-0/+19
| | | | | | | | | | | | | | | | | | | | | | | This is a precursor to adding proper support for multiple 6in4 tunnels with the already programmed tunlink parameter. This is an essential sanity check so as to not break existing and working behind NAT setups. Signed-off-by: Sean Kenny <skenny@wfap.ca> 6in4: add myip he.net api parameter logic This is to add proper support for multiple 6in4 tunnels with the already programmed tunlink parameter. As it stands before this commit, if there is a multi wan setup that consists of dynamic ips, there is no way to use the dynamic update feature as the he.net api is implicitly using the ip address of the caller. This will explicitly use the ipaddr specified in the interface config OR the ip of the tunlink interface specified in the dynamic update api call instead ONLY if the final resolved ipaddr variable is not an rfc1918 address. Signed-off-by: Sean Kenny <skenny@wfap.ca>
* 6in4: support multiple additional user prefixesJo-Philipp Wich2018-03-131-5/+10
| | | | | | | | | | | | | | Support configuration in the form... list ip6prefix 2001:db8:1234::/64 list ip6prefix 2001:db8:5678::/64 ... to allow specifying multiple routed IPv6 prefixes. Implements feature request FS#1361. Signed-off-by: Jo-Philipp Wich <jo@mein.io> Acked-by: Hans Dedecker <dedeckeh@gmail.com>
* 6in4: add missing colon when setting default ca_pathDaniel Golle2017-01-231-1/+1
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* 6in4: fix invalid local variable declaration (FS#188)Jo-Philipp Wich2016-09-271-1/+1
| | | | | | | | Remove an invalid local variable declaration in the tunnel update subshell invocation. Local declarations outside of function scopes are illegal since the Busybox update to version 1.25.0 . Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* 6in4: use uclient-fetch instead of wget/curlFelix Fietkau2016-01-201-22/+5
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48391
* Revert "6in4: Corrected tunnelbroker tunnel update URL"Jo-Philipp Wich2016-01-191-1/+1
| | | | | | | | | The auth change appears to break the endpoint update for most users and with my local tests the old update url works just fine. This reverts commit 99c03a88cb6fed0519efdfaac305794653a12542. SVN-Revision: 48384
* 6in4: Corrected tunnelbroker tunnel update URLHauke Mehrtens2015-12-271-1/+1
| | | | | | | | | | | | | | Changed the tunnel update URL into format tunnelbrokers example has, that made it work again. Current method gives "Username/Password Authentication Failed." when I tried the wget line manually and logread eventually says also "6in4: update failed". With corrected URL it works fine: "good 111.222.333.444" or "nochg 111.222.333.444" and logread concurs with success, and tunnel actually updates. Tested-by: Vaasa Hacklab <info@vaasa.hacklab.fi> Signed-off-by: Sami Olmari <sami@olmari.fi> SVN-Revision: 48006
* 6in4: add tunlink option supportSteven Barth2015-10-151-5/+12
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 47189
* ipv6: remove now unneeded source-dest-routing workaroundsSteven Barth2015-05-191-9/+4
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 45700
* 6in4: make host dependency more specificSteven Barth2015-03-101-1/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 44635
* 6in4: fix update timeoutJo-Philipp Wich2015-02-081-7/+27
| | | | | | | | | The recent rework of the 6in4 endpoint update broke the retry mechanism. Rework the timeout handling and make the update status more verbose. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44327
* 6in4: don't use /dev/stdout for wget callsJo-Philipp Wich2015-02-071-3/+3
| | | | | | | | | Busybox ash does not implement /dev/stdout, therfore any wget output is written into a file /dev/stdout instead of onto the standard output. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44301
* 6in4: detect curl and busybox wgetSteven Barth2014-11-091-8/+27
| | | | | | | | | | | | | | | | b52053b 6in4: https support for he.net tunnel api introduced HTTPS support using wget. The busybox version of wget, however, doesn't support the -V option, thus poluting logfiles with a full invalid-parameter-output. Redirect stderr to fix that. As libcurl and curl support selecting the SSL library of your choice, also add support for curl which is more commonly used on OpenWrt than "real" wget which needs libopenssl. Also make sure to respect SSL_CERT_DIR and increase timeouts. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43228
* 6in4: https support for he.net tunnel apiSteven Barth2014-10-301-2/+11
| | | | | | | | | | HE.net tunnel update API requests are now made via https if an SSL-capable wget is installed. Certificate validation is conditionally enabled if the CA certs are available. Signed-off-by: Andrew Skalski <askalski@gmail.com> SVN-Revision: 43124
* 6in4: Tos supportSteven Barth2014-10-021-2/+4
| | | | | | | | | | Tos support is added as a string parameter which can have the following values : -inherit (outer header inherits the tos value of the inner header) -hex value Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> SVN-Revision: 42749
* 6in4: send password unhashedJo-Philipp Wich2014-06-271-5/+1
| | | | | | | | | | | | | | | The preferred he.net /nic/update endpoint expects the password or updatekey in plain text and not as md5 sum, therfore remove the hashing operation from the script. This effectively renders the "updatekey" option redundant but we keep it around for backwards compatibility. Both "option password" and "option updatekey" will have end up in the "&password=" parameter of the update url and are passed through unmodified. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 41358
* 6in4: adjust update url (#16617)Jo-Philipp Wich2014-05-291-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 40876
* 6in4: add support for he.net updatekeySteven Barth2014-02-201-3/+6
| | | | SVN-Revision: 39646
* 6in4: fix typo in config variable (fixes #14830)Steven Barth2014-01-201-1/+1
| | | | SVN-Revision: 39347
* 6in4, 6rd, 6to4: Use source-restricted routes by defaultSteven Barth2014-01-171-4/+12
| | | | SVN-Revision: 39307
* 6in4: fix typo in last commitSteven Barth2013-01-301-1/+1
| | | | SVN-Revision: 35409
* 6in4: work around hanging wget processSteven Barth2013-01-301-2/+4
| | | | SVN-Revision: 35408
* 6in4: add support for native IPv6 prefix handlingSteven Barth2013-01-151-2/+5
| | | | SVN-Revision: 35171
* 6in4: make local ip6addr optionalJo-Philipp Wich2012-10-141-6/+8
| | | | SVN-Revision: 33761
* packages: sort network related packages into package/network/Felix Fietkau2012-10-101-0/+90
SVN-Revision: 33688