버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

코드 블럭
wget -O /usr/sbin/ishare2 https://raw.githubusercontent.com/ishare2-org/ishare2-cli/main/ishare2 && chmod +x /usr/sbin/ishare2 && ishare2

Install ishare2 Image Manager GUI

코드 블럭
# cd /opt
# git clone https://github.com/ishare2-org/ishare2-web-gui.git
# cd ishare2-web-gui
# docker images
REPOSITORY          TAG           IMAGE ID       CREATED          SIZE
ishare              latest        b8d5dcdcbe12   10 minutes ago   87.6MB
python              3.11-alpine   a6fe4140edea   10 days ago      52.5MB

Patch

코드 블럭
sed -i '/skip_ssl/d' /etc/mysql/mysql.conf.d/mysqld.cnf
echo "skip_ssl" >> /etc/mysql/mysql.conf.d/mysqld.cnf
sed -i 's/Update-Package-Lists "1"/Update-Package-Lists "0"/g' /etc/apt/apt.conf.d/20auto-upgrades

...

코드 블럭
title/etc/network/interfaces
linenumberstrue
# The primary network interface
iface eth0 inet manual
auto pnet0
# For DHCP Network
# iface pnet0 inet dhcp
#     bridge_ports eth0
#     bridge_stp off
# For Static Network
iface pnet0 inet static
    address 192.168.0.10/24
    gateway 192.168.0.1
    bridge_ports eth0
    bridge_stp off

# Cloud devices
iface eth1 inet manual
auto pnet1
iface pnet1 inet manual
    bridge_ports eth1
    bridge_stp off
...
iface eth9 inet manual
auto pnet9
iface pnet9 inet manual
    bridge_ports eth9
    bridge_stp off

Reboot

코드 블럭
reboot

Run ishare2 GUI

코드 블럭
# docker run --name ishare --network=host -d -p 5000:5000 -v /opt/unetlab:/opt/unetlab -it ishare

Firewall (optional)

코드 블럭
apt -y install ufw
systemctl enable --now ufw
ufw allow from 172.16.0.0/12 comment "Docker Internal"
ufw allow from 10.177.0.0/16 comment "Docker Internal"
ufw allow from 192.168.0.0/24 to any port 80   proto tcp comment "PNET - My Network"
ufw allow from 192.168.0.0/24 to any port 443  proto tcp comment "PNET - My Network"
ufw allow from 192.168.0.0/24 to any port 5000 proto tcp comment "PNET - My Network"