From 3669d791c704c11006544f3321f990b5a770f306 Mon Sep 17 00:00:00 2001 From: Rooholla-KhorramBakht <38699860+Rooholla-KhorramBakht@users.noreply.github.com> Date: Mon, 20 May 2024 20:28:34 -0400 Subject: [PATCH] Update setup.md --- docs/setup.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/setup.md b/docs/setup.md index 3370351..a381885 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -12,7 +12,7 @@ The following steps configure the host computer to share its internet with the r ```bash sudo systemctl -w net.ipv4.ip_forward=1 ``` -##### Configure the iptables: +#### Configure the iptables: ```bash sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE @@ -21,7 +21,7 @@ sudo iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT ``` Note that `wlan0` should be replaced with the actual name of the network interface over which the internet is provided to the host computer, and eth0 should be replaced with the name of the Ethernet interface connected to the robot and has an IP address in range `192.168.123.x`. -##### Storing the Settings +#### Storing the Settings Make the iptables rules persistent by installing the `iptables-persistent`: ```bash @@ -94,4 +94,4 @@ With this, a docker container with all the required dependencies will be launche ```docker ARG BASE_IMAGE FROM ${BASE_IMAGE} -``` \ No newline at end of file +```