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>
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>
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>
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>
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.)
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>