Commit Graph

24 Commits

Author SHA1 Message Date
Hans Dedecker 8d7993d8f9 464xlat: add ip rule logic in the proto shell handler
Integrate ip rule support for the prelocal routing table lookup in the 464xlat
proto shell handler as netifd does not install anymore an ip rule for the prelocal
routing table.
The prelocal routing table ip rule needs to be installed before the local routing
table ip rule so the 464xlat traffic with as destination the IPv6 anycast address
is routed to the nat46 module otherwise the traffic will be dropped in the IPv6
local table.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2017-06-26 09:36:31 +02:00
Hans Dedecker c39de0ab35 464xlat: fix white space errors
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2017-06-26 09:36:16 +02:00
Hans Dedecker 3d18d0cfc2 464xlat: rework process id write logic
Write the process id in the pid file immediately after the 464xlat pid file has
been openend. Before the process id was written when the parent process exits
leaving a window where no valid process id was in place in the 464xlat pid file.
This lead to issues if the 464xlat utility was launched to terminate a running
464xlat utility as it could possibly terminate a random process.
If the parent process exits the pid file is updated with the process id of the
forked 464xlat utility.
Also rework the signal handling of SIGTERM so the running 464xlat utility is
correctly terminated.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2017-06-26 09:36:05 +02:00
Hans Dedecker ae774f4a97 nat46: add PKG_MIRROR_HASH
Provide PKG_MIRROR_HASH for LEDE download mirror

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2017-06-26 09:35:44 +02:00
Hans Dedecker e5e48d9a86 nat46: improve 1:1 map share ratio support
683fbd2 nat46-core: code clean-up
09df268 nat46-core: extend portless protocol support in 1:1 share ratio

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2017-06-26 09:35:22 +02:00
Hans Dedecker ae6a0e45d8 nat46: support portless protocols in 1:1 share ratio
5fed76d nat46-core: support portless protocols in 1:1 share ratio
df4c7da nat46-core: minor code improvements
4e45bd5 treewide: fix white space errors

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2017-06-26 09:34:37 +02:00
Hans Dedecker 85e771d2f1 nat46: Depend on IPV6 as IPv6 is kernel builtin module now (#195)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-06-12 21:49:18 +02:00
Markus Stenberg 5cd413d16a Revert "kmod-ipv6 => @IPV6."
This reverts commit bcaa87776f.

Caused circular dependencies; reverted for now. (kmod-ipv6 explicit
dependencies _should_ be eliminated though, but this is clearly not
the way.)
2015-12-12 00:25:10 +02:00
Markus Stenberg bcaa87776f kmod-ipv6 => @IPV6. 2015-12-11 14:05:14 +02:00
Hans Dedecker 8e12b6fd3e nat46: Remove unnecessary 464xlat wan forwarding rule
Remove unnecessary 464xlat wan forwarding firewall rule with as
outgoing interface the 464xlat interface and as destination the
local IPv6 464xlat address as it's never hit.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2015-08-04 14:45:15 +02:00
Hans Dedecker 64ceee8d87 nat46: Fix 464xlat interface teardown
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2015-08-04 14:39:53 +02:00
Steven Barth 2e110ce133 nat46: fix netfilter references
Signed-off-by: Steven Barth <steven@midlink.org>
2015-07-02 20:54:12 +02:00
Steven Barth 969d1cf568 nat46: fix leak of conntrack entries, fix checksum calculation
Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-30 15:55:54 +02:00
Steven Barth e318b03d19 Merge pull request #91 from dedeckeh/master
nat46: Refuse link local address as implicit source in 464xlat
2015-04-22 11:21:48 +02:00
Hans Dedecker 94c5d19efa nat46: Refuse link local address as implicit source in 464xlat
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2015-04-20 18:26:20 +02:00
Steven Barth ed025182d7 nat46: fix interface name handling
Signed-off-by: Steven Barth <steven@midlink.org>
2015-04-17 15:58:00 +02:00
Steven Barth 326d4de13c nat46: shorten prefix for 464xlat interface
Signed-off-by: Steven Barth <steven@midlink.org>
2015-04-17 15:11:53 +02:00
Hans Dedecker b508f93679 nat46: Delete 464xlat device when pause is interrupted by SIGTERM 2015-04-16 15:08:18 +02:00
Steven Barth 3ed7001954 nat46: initial 464xlat support
Signed-off-by: Steven Barth <steven@midlink.org>
2015-03-31 16:47:54 +02:00
Steven Barth 9c661a093f nat46: fix compilation with newer kernels (thx to Andrew Yourtchenko)
Signed-off-by: Steven Barth <steven@midlink.org>
2015-02-21 10:31:14 +01:00
Steven Barth 3f11a2a9db nat46: fix compiler issues with gcc 4.9
Signed-off-by: Steven Barth <steven@midlink.org>
2014-11-05 11:40:36 +01:00
Steven Barth 69f203d5c3 Add SPDX license tags
Signed-off-by: Steven Barth <steven@midlink.org>
2014-11-03 13:17:00 +01:00
Steven Barth 589aff1736 nat46: add map-t meta-package
Signed-off-by: Steven Barth <steven@midlink.org>
2014-09-02 13:56:54 +02:00
Steven Barth 963a3a1aa6 Package ayourtch's nat46 kernel module 2014-06-04 09:48:11 +02:00