kilo/pkg
Lucas Servén Marín ede3118cc8
pkg/encapsulation/ipip*: fix ipip iptables rules
Since #116 implemented fragile comparisons of iptables rules to avoid
calling the iptables binary excessively during every reconciliation, the
iptables rules for IPIP encapsulation must be updated to match the
expected output. One complication is that rather than returning the
protocol number in the rule, iptables resolves the protocol number to a
name by looking up the number in the netd protocols database. This name
can vary depending on the host's environment. This commit adds two
solutions for resolving the protocol name:
1. a fixed mapping to the string `ipencap`, which should always work
for Kilo whenever it runs in the Alpine Linux container; and
2. a runtime lookup using the netd database, which only works if Kilo is
compiled with CGO and is meant to be used only if Kilo is not running in
the normal container environment.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
2021-03-13 15:24:55 +01:00
..
calico pkg/mesh,pkg/wireguard: allow DNS name endpoints 2020-02-22 17:17:13 +01:00
encapsulation pkg/encapsulation/ipip*: fix ipip iptables rules 2021-03-13 15:24:55 +01:00
iproute pkg/{encapsulation,mesh}: abstract encapsulation 2019-05-13 18:30:03 +02:00
ipset init 2019-01-18 02:50:10 +01:00
iptables cmd/kg,pkg: add --resync-period flag 2021-03-01 18:20:06 +01:00
k8s pkg/k8s: bump headers for 2021 2021-01-30 17:40:01 +01:00
mesh pkg/mesh: correctly check 172.16/12 IP range 2021-03-06 00:50:48 +01:00
route pkg/route,pkg/mesh: replace NAT with ip rules 2020-02-20 21:27:50 +01:00
version init 2019-01-18 02:50:10 +01:00
wireguard pkg/*: allow kgctl to compile for other OSes 2020-11-14 12:16:07 +01:00