Disallow sshd listening on public nic, for domR in dhcp server mode

This commit is contained in:
edison 2010-09-08 11:04:18 -07:00
parent 413ec914ed
commit 7b70259566
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ setup_dhcpsrvr() {
echo "$ETH0_IP $NAME" >> /etc/hosts
[ -f /etc/httpd/conf/httpd.conf ] && sed -i -e "s/^Listen.*$/Listen $ETH0_IP:80/" /etc/httpd/conf/httpd.conf
[ -f /etc/httpd/conf.d/ssl.conf ] && mv /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.bak
[ -f /etc/ssh/sshd_config ] && sed -i -e "s/^[#]*ListenAddress.*$/ListenAddress $ETH1_IP/" /etc/ssh/sshd_config
}
setup_secstorage() {