Atualizar update_srv1.sh
This commit is contained in:
@@ -6,36 +6,35 @@ wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv
|
|||||||
#sed -i s'/enp0s8/enp0s3/g' /usr/local/bin/sync-update
|
#sed -i s'/enp0s8/enp0s3/g' /usr/local/bin/sync-update
|
||||||
#wget https://raw.githubusercontent.com/tmferreira-ti/SSORI/refs/heads/main/configs/sshd_config -O /etc/ssh/sshd_config --no-check-certificate --no-cache
|
#wget https://raw.githubusercontent.com/tmferreira-ti/SSORI/refs/heads/main/configs/sshd_config -O /etc/ssh/sshd_config --no-check-certificate --no-cache
|
||||||
systemctl restart netwoking
|
systemctl restart netwoking
|
||||||
read
|
#apt update
|
||||||
apt update
|
#apt install ssh -y
|
||||||
apt install ssh -y
|
#sed -i 's/^#PermitRootLogin\s\+prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||||
sed -i 's/^#PermitRootLogin\s\+prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
||||||
#apt autoremove --purge isc-dhcp-server -y
|
#apt autoremove --purge isc-dhcp-server -y
|
||||||
apt install isc-dhcp-server -y
|
#apt install isc-dhcp-server -y
|
||||||
wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dhcpd.conf -O /etc/dhcp/dhcpd.conf --no-check-certificate --no-cache
|
#wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dhcpd.conf -O /etc/dhcp/dhcpd.conf --no-check-certificate --no-cache
|
||||||
wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/isc-dhcp-server -O /etc/default/isc-dhcp-server --no-check-certificate --no-cache
|
#wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/isc-dhcp-server -O /etc/default/isc-dhcp-server --no-check-certificate --no-cache
|
||||||
|
|
||||||
systemctl enable nftables
|
systemctl enable nftables
|
||||||
#reboot
|
reboot
|
||||||
|
|
||||||
apt install bind9 -y
|
#apt install bind9 -y
|
||||||
|
|
||||||
wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dns/named.conf.options -O /etc/bind/named.conf.options
|
#wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dns/named.conf.options -O /etc/bind/named.conf.options
|
||||||
|
|
||||||
wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dns/named.conf.local -O /etc/bind/named.conf.local --no-check-certificate --no-cache
|
#wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dns/named.conf.local -O /etc/bind/named.conf.local --no-check-certificate --no-cache
|
||||||
|
|
||||||
mkdir -p /etc/bind/domains/fatecseg/
|
#mkdir -p /etc/bind/domains/fatecseg/
|
||||||
|
|
||||||
wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dns/db.fatecseg.edu.br -O /etc/bind/domains/fatecseg/db.fatecseg.edu.br --no-check-certificate --no-cache
|
#wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dns/db.fatecseg.edu.br -O /etc/bind/domains/fatecseg/db.fatecseg.edu.br --no-check-certificate --no-cache
|
||||||
|
|
||||||
#wget https://github.com/tmferreira-ti/ASOR/raw/refs/heads/main/Confs/srv1/dns/db.0.17.172 -O /etc/bind/domains/fatecseg/db.0.17.172 --no-check-certificate --no-cache
|
#wget https://github.com/tmferreira-ti/ASOR/raw/refs/heads/main/Confs/srv1/dns/db.0.17.172 -O /etc/bind/domains/fatecseg/db.0.17.172 --no-check-certificate --no-cache
|
||||||
|
|
||||||
echo "domain fatecseg.edu.br" > /etc/resolv.conf
|
#echo "domain fatecseg.edu.br" > /etc/resolv.conf
|
||||||
echo "search fatecseg.edu.br" >> /etc/resolv.conf
|
#echo "search fatecseg.edu.br" >> /etc/resolv.conf
|
||||||
echo "nameserver 172.17.0.1" >> /etc/resolv.conf
|
#echo "nameserver 172.17.0.1" >> /etc/resolv.conf
|
||||||
echo "nameserver 172.17.0.2" >> /etc/resolv.conf
|
#echo "nameserver 172.17.0.2" >> /etc/resolv.conf
|
||||||
|
|
||||||
chattr +i /etc/resolv.conf
|
#chattr +i /etc/resolv.conf
|
||||||
|
|
||||||
#systemctl restart named
|
#systemctl restart named
|
||||||
reboot
|
#reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user