From 6d9c814003c7bd95f011f26de0d55ed1e0f57b48 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Apr 2020 01:11:19 -0400 Subject: [PATCH] add iptable rule to allow lan access --- iptable.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iptable.sh b/iptable.sh index 431bd8f..398f2b2 100755 --- a/iptable.sh +++ b/iptable.sh @@ -51,6 +51,8 @@ iptables -A INPUT -j ACCEPT -m state --state ESTABLISHED # allow LAN iptables -A OUTPUT -d 192.168.122.0/24 -j ACCEPT +iptables -A INPUT -s 192.168.122.0/24 -j ACCEPT + iptables -I INPUT -p tcp -m tcp --dport 8388 -j ACCEPT iptables -I INPUT -p tcp -m tcp --dport 2222 -j ACCEPT iptables -I INPUT -p tcp -m tcp --dport 1080 -j ACCEPT