linux_wiki:network_services_overview_ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:network_services_overview_ssh [2018/05/20 15:29]
billdozor [Host Based: Firewall]
linux_wiki:network_services_overview_ssh [2018/05/20 15:30]
billdozor
Line 127: Line 127:
   * TCP Wrappers (hosts.allow, hosts.deny)   * TCP Wrappers (hosts.allow, hosts.deny)
  
 +\\
 ==== Host Based: Firewall ==== ==== Host Based: Firewall ====
  
-Create a rich rule<code bash>irewall-cmd --add-rich-rule='rule family="ipv4" service name="ssh" source address="192.168.1.152" log prefix="SSHD HOST DENIED: " reject'+Create a rich rule<code bash>firewall-cmd --add-rich-rule='rule family="ipv4" service name="ssh" source address="192.168.1.152" log prefix="SSHD HOST DENIED: " reject'
 firewall-cmd --reload firewall-cmd --reload
 </code> </code>
   * Rejects ssh traffic from the source address 192.168.1.152 and logs the rejection.   * Rejects ssh traffic from the source address 192.168.1.152 and logs the rejection.
  
 +\\
 ==== Host Based: TCP Wrappers ==== ==== Host Based: TCP Wrappers ====
  
  • linux_wiki/network_services_overview_ssh.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)