I wanna block ssh access for 172.24.0.0/24 network which answer is correct.
1: iptables -A INPUT -s 172.24.0.0/24 -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
2:iptables ‐A INPUT ‐s 172.25.0.0/16 ‐p tcp ‐dport 22 ‐j REJECT
BY
MANOJ SAINI
<kataria02511@gmail.com>
___________________________________________________________________________________
I will go with 2nd option
iptables ‐A INPUT ‐s 172.25.0.0/16 ‐p tcp ‐dport 22 ‐j REJECT
iptables ‐A INPUT ‐s 172.25.0.0/16 ‐p tcp ‐dport 22 ‐j REJECT
vikas kanojia
<decentandsimple@gmail.com>
_________________________________________________________________________________
iptables -A INPUT -p tcp -s 172.24.0.0/24 --dport 22 -j REJECT
No comments:
Post a Comment