I wanted to block the shell access (SSH connection) for my Linux system (having IP Address 192.168.1.204) connected with openWRT Router. I am running 18.06.8 openWRT firmware on my Linksys router.
I learned to know that if I use FORWARD chain of iptables and Insert the below rule in the FORWARD chain of filter table at the router then the router should block this specific ssh connection intended for my Linux system but It is not the reality. I am able to do SSH to my Linux System from another device.
the rule is: iptables -I FORWARD -d 192.168.1.204 -p tcp --destport 22 -j DROP
can somebody suggest if I am missing something in the rule?
Also, is it possible to block any private connections( b/w two devices) from the router?
Thanks in Advance!!