Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. AllowGroups sshusers
  2. AllowUsers localUser@192.168.2.* # 2 is not a typo
  3. # localUser not in group sshusers. Intention: AllowUsers should override
  4. # previous configuration, allowing access for localUser, even if he is
  5. # not member of sshusers
  6.  
  7. AllowGroups sshusers
  8. DenyUsers localUser@!192.168.2.*
  9. # localUser is member of sshusers. Intention: Access is granted, but with
  10. # the negotiation of the match-expression for the LAN, access should be
  11. # denied for external login.
  12. # Also tried "!localUser@192.168.2.*"
  13.  
  14. # localUser member of sshusers
  15. AllowGroups sshusers
  16. DenyUsers localUser@192.168.2.*
  17.  
  18. AllowGroups sshusers
  19. DenyUsers localuser@!192.168.2.*,
  20.  
  21. DenyUsers localuser@!192.168.2.*,!10.8.0.*,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement