User Tools

Site Tools


info:ssh-geoip

Differences

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

Link to this comparison view

Next revision Both sides next revision
info:ssh-geoip [2017/03/01 20:51]
created
info:ssh-geoip [2017/03/01 20:55]
Line 20: Line 20:
 We want default behaviour to block all SSH traffic We want default behaviour to block all SSH traffic
  
-  sed -i '/​^sshd/​d' ​./infile+  sed -i '/​^sshd/​d'​ /etc/​hosts.deny
   echo sshd: ALL >> /​etc/​hosts.deny   echo sshd: ALL >> /​etc/​hosts.deny
  
Line 26: Line 26:
 Now call our script for allow traffic from inside hosts.allow Now call our script for allow traffic from inside hosts.allow
  
-  sed -i '/​^sshd/​d' ​./infile+  sed -i '/​^sshd/​d'​ /etc/​hosts.allow
   echo "sshd: ALL: spawn /​usr/​local/​bin/​ipfilter.sh %a" >> /​etc/​hosts.allow   echo "sshd: ALL: spawn /​usr/​local/​bin/​ipfilter.sh %a" >> /​etc/​hosts.allow
  
info/ssh-geoip.txt ยท Last modified: 2017/03/01 21:19 by