Commit Graph

9 Commits

Author SHA1 Message Date
Ben Roberts
256afcbd97 Add configuration option to select iptables implementation
When running gocast in a container, the default iptables implementation
may not match that used on the underlying host kernel. The current
container uses the legacy iptables implementation and calls the
`iptables` binary. This fails with exit code 3 when running on a host
using the newer nftables implementation. The container already has
`iptables-nft` binary included, so just needs a way to call this instead
of the default `iptables` binary.

This change implements a new `iptables_binary` config option, defaulting
to `iptables`, and calls this when adding or removing NAT rules.

Fixes #32

This change was written using AI LLM.

Authored-By: Claude Code (Sonnet 4.5)
2026-06-17 17:18:59 +01:00
Daniel Santos
f1542981d6 feat(gocast_nat): Add listen port option 2022-03-16 13:23:35 -06:00
mgaitonde
f883e4d4b3 Expand system error message 2022-03-09 13:17:04 -08:00
Mayuresh Gaitonde
6be4d69d02 Add unit tests 2020-12-17 17:25:53 -08:00
Mayuresh Gaitonde
b0dbda04c9 Add a fix for gw ip 2019-09-12 14:44:21 -07:00
Mayuresh Gaitonde
e15172111e fix non local peer and add multihop 2018-11-26 16:44:39 -08:00
Mayuresh Gaitonde
1d4fe095f1 Nat support and fix monitoring issues 2018-10-26 17:09:45 -07:00
Mayuresh Gaitonde
6fafdbbd16 ADd consul support , multiple monitors, config file 2018-10-25 22:23:04 -07:00
Mayuresh Gaitonde
e20f691de5 Initial commit for gocast 2018-10-22 19:03:42 -07:00