Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /etc/hosts.allow
  2. /etc/hosts.deny
  3. Access controls that should be enforced by tcp-wrappers are defined here.
  4. Further details are described in hosts_access(5).
  5.  
  6. # /etc/hosts.allow
  7. sshd: 1.2.3.0/255.255.255.0
  8. sshd: 192.168.0.0/255.255.255.0
  9.  
  10. # /etc/hosts.deny
  11. sshd: ALL
  12.  
  13. sudo ipfw add allow src-ip 10.0.0.0/8,172.16.0.0/16,192.168.0.0/16 dst-ip me dst-port 22
  14. sudo ipfw add reject src-ip any dst-ip me dst-port 22
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement