I have a CentOS terminal working as a router with APF installed.
Also 1 terminal with 3 NICs (3 IPs) is using that router as a Gateway to access the internet.
What I want is APF to block SSH access, on the 2 of 3 NICs (IPs). So in result, SSH is only accessible for a specific IP and not all three.
How can I achieve that directly on the router with APF or iptables?
What I have tried: iptables -A INPUT -s xxx.xxx.xxx.xxx -p tcp --destination-port 22 -j DROP