파일 -> 가상시스템 내보내기 (재설치 필요 없어짐)
      -> 가상시스템 가져오기 (ubuntu 24102)
Bootstrap Example
라우터 설정
[R1]
config t
hostname HACKER
interface fastethernet0/0
ip address 100.100.100.254 255.255.255.0
no shutdown
exit
interface serial1/0
ip address 1.1.1.1 255.255.255.252
no shutdown
exit
router rip
version 2
network 100.100.100.0
network 1.1.1.0
[R2]
config t
hostname ST
interface fastethernet0/0
ip address 10.0.2.15 255.255.255.0
no shutdown
exit
interface serial1/0
ip address 1.1.1.2 255.255.255.252
no shutdown
router rip
version 2
network 10.0.2.0
network 1.1.1.0
NAT 설정
      (NAT로 네트워크를 설정하여 외부 네트워크와 연결되어야 ubuntu에 웹서버 설치가 가능하다.)
kali > ping 168.126.63.1 (연결확인)
sudo apt -y install lamp-server^ (웹서버 설치)
Bootstrap Example
r2 설정 변경!
config t
hostname ST
interface fastethernet0/0
ip address *125.246.95.254* 255.255.255.0
no shutdown
exit
interface serial1/0
ip address 1.1.1.2 255.255.255.252
no shutdown
router rip
version 2
network 10.0.2.0
network 1.1.1.0
Bootstrap Example
ping을 막는 방법
1. 라우터에서 막는 방법
(show access-lists > Standard IP access list 1
          10 deny 100.100.100.1
          20 permit any)
config t
access-list 1 deny 100.100.100.1 0.0.0.0
access-list 1 permit any
interface fastethernet0/0
ip access-group 1 out
exit
or
config t
access-list 1 deny 100.100.100.1 0.0.0.0
access-list 1 permit any
interface serial1/0
ip access-group 1 in
exit
2. 서버에서 막는 방법
sudo tcpdump
sudo tcpdump -i enp0s3 icmp
sudo sysctl -a | grep icmp
sudo sysctl -w net.ipv4.icmp_echo_ignore_all=1
      (=0에서 =1로 바꿔주면 ping에 반응 안하게 됨)
또는
iptables -A INPUT -p icmp -j DROP
iptables -L로 확인
sudo iptables -A INPUT -p icmp -j DROP
sudo iptables -F
Bootstrap Example
UTM
*서버 설정하기
외부 네트워크는 NAT으로 설정할 것 (NAT으로 설정해야 인터넷이 가능)