I have been seeing a lot of brute force attempts on a fedora box. How do I use firewalld to block all ssh traffic outside of a given range? I'm looking for something like the iptables:
iptables -A INPUT -p tcp --destination-port 22 -m iprange --src-range 192.168.1.100-192.168.1.200 -j ACCEPT
Best Answer
Also just as an alternative to Iptables. You can control the ssh access as followed
Edit your /etc/ssh/sshd_config
AllowUsers admin@192.169.1.100 admin@192.168.1.200 testadmin
--OR--
AllowUsers *@192.168.1.100 *@192.168.1.200
Restart sshd services.