mirror of https://github.com/apache/cloudstack.git
Disallow sshd listening on public nic, for domR in dhcp server mode
This commit is contained in:
parent
413ec914ed
commit
7b70259566
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue