From 2f5bdd0219d7f346b5ed9756d15db644d0da8477 Mon Sep 17 00:00:00 2001 From: wildcapuchino Date: Fri, 27 Sep 2024 22:36:29 -0300 Subject: [PATCH] Add sysctl port forwarding instructions --- en/fpv-openipc-aio-internet-forwarding.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/en/fpv-openipc-aio-internet-forwarding.md b/en/fpv-openipc-aio-internet-forwarding.md index e47b9fa..248ad65 100644 --- a/en/fpv-openipc-aio-internet-forwarding.md +++ b/en/fpv-openipc-aio-internet-forwarding.md @@ -71,6 +71,20 @@ sudo iptables --table nat -A POSTROUTING -o $INTERNET_IF -j MASQUERADE ``` This script will receive as input `$1` the AIO ethernet interface, and forward the traffic to `$2`. +Enable IP forwading by editing `/etc/sysctl.conf` on your local PC and adding: +``` +net.ipv4.ip_forward = 1 +``` +And enable the changes with: +```bash +sudo sysctl -p /etc/sysctl.conf +``` + +on Debian/Ubuntu systems this can be also done restarting the procps service: +``` +sudo /etc/init.d/procps restart +``` + 9. Run the script on your local PC: ```bash chmod u+x ./forward.sh