mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
This PR fixes a bunch of small things to allow a new flow to test clients pinging a resource within docker compose. Masquerade/Forwarding is enabled directly in the container for now, this might change in the future. Also added a README to be able to run this locally. --------- Signed-off-by: Gabi <gabrielalejandro7@gmail.com> Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
8 lines
205 B
Bash
Executable File
8 lines
205 B
Bash
Executable File
#!/bin/sh
|
|
if [ $ENABLE_MASQUERADE = "1" ]; then
|
|
IFACE="utun"
|
|
iptables -A FORWARD -i $IFACE -j ACCEPT
|
|
iptables -A FORWARD -o $IFACE -j ACCEPT
|
|
iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
|
|
fi
|