You are on page 1of 2

apt-cdrom add

dvd2 2x
dvd3 2x
apt-get update
apt-get install -y bind9* dnsutils apache* mysql* php7.3* unzip nmap proftpd*
samba* munin*
nano /etc/ssh/sshd_conf
/etc/init.d/ssh restart
winscp
unzip php
mv php
chmod 777 -R /var/www/html
mysqladmin -u root password 123456
/etc/init.d/mysql restart
nmap localhost
unzip J
unzip O
unzip w
nano /etc/apache2/sites-enabled/www.conf
/etc/init.d/apache2 restart

nano /etc/proftpd/proftpd.conf
/etc/init.d/proftpd restart

apt-get install -y squid-common


apt-get install -y squid
nano /etc/squid/squid.conf
ctrl+w
http_port 3128
cache_mem 16 mb
cache_mgr kia@ujianfinal
visible_hostname kia
acl situs dstdomain www
http_access deny situs
acl lan src iplan network/prefix
http_access allow lan
http_access allow all
/etc/init.d/squid restart
nano /etc/init.d/routing
iptables -t nat -A PREROUTING -s iplan network/prefix -i eth1 -p tcp --dport 80 -j
REDIRECT --to-port 3128
/etc/init.d/routing restart

nano /etc/samba/smb.conf
path = /home/server
writeable = yes
browseable = yes
security = user
save
/etc/init.d/smbd restart
cd /home
mkdir server
chmod 777 -R /home/server
useradd user
smbpasswd user
123

nano /etc/munin/munin.conf
a simple host tree
[namadomain]
127.0.0.1
save
htpasswd -c /etc/munin/munin-htpasswd user

nano /etc/munin/apache24.conf
#Require local
AuthUserFile /etc/munin/munin-htpasswd
AuthName "Munin"
AuthType Basic
Require valid-user
save
/etc/init.d/munin-node restart
/etc/init.d/apache2 restart

apt-cdrom add
dvd3
apt-get install -y postfix
apt-get install -y dovecot-imapd dovecot-pop3d
dpkg reconfigure postfix
nano /etc/postfix/main.cf
home_mailbox = Maildir/
nano /etc/dovecot/conf.d/10-mail.conf
maildirmake dovecot /etc/skel/Maildir
/etc/init.d/postfix restart
/etc/init.d/dovecot restart
adduser upin
adduser ipin
phpmyadmin
apt-get install -y roundcube
nano /etc/roundcube/conf.inc.php
nano /etc/apache2/sites-enabled/mail.conf
/etc/init.d/apache2 restart

You might also like