1. Download The Debian Bookworm network installation CD
2. install follow steps and on set software unselect all
note command to see network
ip a
3 sudo nano /etc/network/interfaces
3.1 sudo systemctl restart networking
3.2 echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
3.3 sudo nano /etc/sysctl.conf
uncomment #
net.ipv4.ip_forward=1
3.4 sudo sysctl -p
3.5
sudo iptables -t nat -A POSTROUTING -o enx000ec6c29c18-j MASQUERADE
sudo iptables -A FORWARD -i ens33 -o enx000ec6c29c18 -j ACCEPT
sudo iptables -A FORWARD -i enx000ec6c29c18 -o ens33 -m state --state RELATED,ESTABLISHED -j ACCEPT
3.6 sudo apt install iptables-persistent
6 sudo apt install open-vm-tools isc-dhcp-server
7 sudo nano /etc/dhcp/dhcpd.conf
7 sudo systemctl restart isc-dhcp-server
8 sudo nano /etc/default/isc-dhcp-server
7 sudo systemctl restart isc-dhcp-server
sudo systemctl enable isc-dhcp-server
8 sudo nano /etc/systemd/system/nightly-reboot.service
[Unit]
Description=Scheduled Nightly Reboot
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl --force reboot
9 sudo nano /etc/systemd/system/nightly-reboot.timer
[Unit]
Description=Nightly Reboot Scheduling
[Timer]
OnCalendar=*-*-* 2:01:00
RandomizedDelaySec=300
[Install]
WantedBy=multi-user.target
10 sudo systemctl daemon-reload
sudo systemctl enable nightly-reboot.timer
sudo systemctl start nightly-reboot.timer