가상머신 설치 후 스냅샷찍기

서버 ip

ip addr

ping 168.126.63.1

ip가 10.0.2.15임

ip가 10.0.2.15임

10.0.2.15 포트포워딩해줘야 서버에 접속할 수 있음

image.png

네트워크를 어댑터에 브리지로 설정하면 192.168.0.XXX ip가 들어옴

image.png

포트포워딩

포트포워딩

포트포워딩 후 xshell에서 내 pc의 ip로 접속

#설치
sudo apt update
sudo apt -y install vsftpd
sudo apt -y install openssh-server
sudo apt -y install xinetd telnetd
sudo apt -y install postfix
sudo apt -y install sendmail
sudo apt -y install dovecot-pop3d
sudo apt -y install dovecot-imapd
sudo apt -y install samba
sudo apt -y install nfs-kernel-server
sudo apt -y install bind9 bind9utils #네임서버
sudo apt -y install lamp-server^ #apm 한번에 설치
sudo apt -y install roundcube
sudo apt -y install isc-dhcp-server
sudo apt -y install squid
sudo apt -y install isc-dhcp-server tftpd-hpa inetutils-inetd vsftpd pxelinux

sudo apt -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
wget [<https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1+ubuntu24.04_all.deb>](<https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1+ubuntu24.04_all.deb>)
dpkg -i zabbix-release_7.0-1+ubuntu24.04_all.deb
sudo apt update
sudo apt -y install zabbix-agent2

#ELK7
curl -fsSL [<https://artifacts.elastic.co/GPG-KEY-elasticsearch>](<https://artifacts.elastic.co/GPG-KEY-elasticsearch>) | sudo gpg --dearmor -o /usr/share/keyrings/elastic.gpg
echo "deb [signed-by=/usr/share/keyrings/elastic.gpg] [<https://artifacts.elastic.co/packages/7.x/apt>](<https://artifacts.elastic.co/packages/7.x/apt>) stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
sudo apt update
sudo apt -y install packetbeat
#ELK8
wget -O - [<https://artifacts.elastic.co/GPG-KEY-elasticsearch>](<https://artifacts.elastic.co/GPG-KEY-elasticsearch>) | gpg --dearmor -o /etc/apt/keyrings/elasticsearch-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/elasticsearch-keyring.gpg] [<https://artifacts.elastic.co/packages/8.x/apt>](<https://artifacts.elastic.co/packages/8.x/apt>) stable main" | tee /etc/apt/sources.list.d/elastic-8.x.list
apt update
sudo apt -y install packetbeat
sudo apt -y install net-tools
sudo apt -y install lrzsz
sudo apt -y install unzip
sudo apt -y install wget
sudo apt -y install curl