Skip to content

Instantly share code, notes, and snippets.

@rickyngk
Created September 21, 2018 07:00
Show Gist options
  • Save rickyngk/bf55d4f18c34895ee14023060d4ead16 to your computer and use it in GitHub Desktop.
Save rickyngk/bf55d4f18c34895ee14023060d4ead16 to your computer and use it in GitHub Desktop.
Sample libwrap config
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
sshd : ALL : allow
sockd : ALL : allow
ALL : ALL : deny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment