I want to SSH to 192.168.1.15 server from my machine, my ip was 192.168.1.99.Source destination was UP, with IP 192.168.1.15.This is a LAN, there are 30 machines connected to the network and working fine, I'm playing around the local machines cos i need to apply the same rules in production VPS.I have applied the below iptables in my machine 192.168.1.99. Now i can't receive any packets from outside and i can't send any packets outside, while applying the below chainiptables -P INPUT DROPiptables -P OUTPUT DROPiptables -P FORWARD DROPAfter the above CHAIN i have added the below rules and it want to allow ssh from machine to 192.168.1.15 to access the 192.164.1.15 but still i can't access 192.168.1.15.iptables -A INPUT -p tcp -i eth0 --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPTiptables -A OUTPUT -p tcp -o eth0 --sport 22 -m state --state ESTABLISHED -j ACCEPTiptables -A OUTPUT -o eth0 -p tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPTiptables -A INPUT -i eth0 -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPTAny one please check whether my rules are right. Still i can't access the machine 15.
iptables applied in local machine, Can't access remote ssh
iptables;ufw