# custom-etc-hostconfig
# This file is going away
AFPSERVER=-NO-
AUTHSERVER=-NO-
TIMESYNC=-NO-
QTSSERVER=-NO-
APPLETALK=-NO-
MAILSERVER=-NO-
MANAGEMENTSERVER=-NO-
NETINFOSERVER=-NO-
RPCSERVER=-NO-
NETBOOTSERVER=-NO-
NISDOMAIN=-NO-
TIMESYNC=-NO-
QTSSERVER=-NO-
SSHSERVER=-NO-
WEBSERVER=-NO-
SMBSERVER=-NO-
VPNSERVER=-NO-
# setting-custom-hostconifg.sh
#!/bin/bash
sudo mv /etc/hostconfig org-hostconfig
sudo cp custom-etc-hostconfig /etc/hostconfig
sudo chmod 644 /etc/hostconfig
cat /etc/hostconfig
#---------------------------------------------------------------------
# /etc/hosts.deny
#---------------------------------------------------------------------
# hostsdeny.txt
ALL:ALL
# setting-hosts-deny.sh
#!/bin/bash
sudo cp hostsdeny.txt /etc/hosts.deny
sudo chmod 644 /etc/hosts.deny
# 実行
sudo ./setting-custom-hostconifg.sh
sudo ./setting-hosts-deny.sh
0 件のコメント:
コメントを投稿