mak3r / turnkey

turnkey operations from containers - prebuilt images with k3s running hosting the setup container
Apache License 2.0
9 stars 2 forks source link

hostapd container is failing to use iptables #4

Closed mak3r closed 4 years ago

mak3r commented 4 years ago

Are the iptables commands required for this process? Use nftables instead of (legacy) iptables when building the container.

...
/bin/ap.sh: line 45: /proc/sys/net/ipv4/ip_forward: Read-only file system
+ iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
+ iptables-save
# Warning: iptables-legacy tables present, use iptables-legacy-save to see them
...
mak3r commented 4 years ago

it's probably not necessary to save the iptables entry in the container as it will be restored when the container comes up again based on the script. In all likelihood, it is not necessary to setup ip_forward or masquerading. Further investigation is necessary to confirm. Currently this module works as expected.