fff-gateway: Add firewall rules to ensure nothing is forwarded onto WAN

Submitted by Fabian Blaese on Sept. 8, 2019, 9:54 p.m.

Details

Message ID 20190908215415.9814-1-fabian@blaese.de
State Superseded
Headers show

Commit Message

Fabian Blaese Sept. 8, 2019, 9:54 p.m.
Signed-off-by: Fabian Bläse <fabian@blaese.de>
---
 .../fff/fff-gateway/files/usr/lib/firewall.d/10-no-forward-wan | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 src/packages/fff/fff-gateway/files/usr/lib/firewall.d/10-no-forward-wan

Patch hide | download patch | download mbox

diff --git a/src/packages/fff/fff-gateway/files/usr/lib/firewall.d/10-no-forward-wan b/src/packages/fff/fff-gateway/files/usr/lib/firewall.d/10-no-forward-wan
new file mode 100644
index 0000000..5dbdd36
--- /dev/null
+++ b/src/packages/fff/fff-gateway/files/usr/lib/firewall.d/10-no-forward-wan
@@ -0,0 +1,3 @@ 
+# Ensure nothing is forwarded onto WAN interface
+iptables -A FORWARD -o $IF_WAN -j REJECT --reject-with --reject-with icmp-net-unreachable
+ip6tables -A FORWARD -o $IF_WAN -j REJECT --reject-with --reject-with no-route