From f9b5f6b33b77f5970322c7c74079c44c1f7b584d Mon Sep 17 00:00:00 2001 From: saundersp Date: Sat, 15 Jul 2023 00:36:16 +0200 Subject: [PATCH] More restrictive second pc packet redirection mask --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cdcf0d..6f82170 100644 --- a/README.md +++ b/README.md @@ -109,8 +109,8 @@ services config --ipv4 manual 192.168.137.1 255.255.255.0 192.168.137.1 config --nameservers # Configure packets redirections -iptables -I INPUT -s 192.168.137.0/24 -j ACCEPT -iptables -I FORWARD -o eth0 -s 192.168.137.0/24 -j ACCEPT +iptables -I INPUT -s 192.168.137.2/30 -j ACCEPT +iptables -I FORWARD -o eth0 -s 192.168.137.2/30 -j ACCEPT iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE ```