Building Linux Virtual Private Networks
(view this code in a separate window)
# vpn/etc
Port 9876
PidFile /var/run/sshd_vpn.pid

HostKey /etc/ssh/ssh_host_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600

SyslogFacility AUTH
LogLevel INFO

RSAAuthentication yes
AllowUsers sshvpn

# Restrictive settings
#
IgnoreRhosts yes
IgnoreUserKnownHosts yes
PermitRootLogin no
StrictModes yes

PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
RhostsAuthentication no
RhostsRSAAuthentication no
X11Forwarding no
PrintMotd no
KeepAlive yes


Home
Contents
Authors
Reviews
Errata
Colophon
Source Code
Sample Chapter
Suggested Reading
Purchase

New Riders Publishing