https://github.com/massgravel/Microsoft-Activation-Scripts
apt install isc-dhcp-server -y
nano /etc/dhcp/dhcpd.conf
#option domain-name "example.com";
#option domain-name-servers x.x.x.x;
default-lease-time 3600;
max-lease-time 7200;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 1.1.1.1, 8.8.8.8;
range 192.168.0.100 192.168.0.200;
}
nano /etc/default/isc-dhcp-server
add interface
systemctl restart isc-dhcp-server.service
dhcp-lease-list
apt install ufw
nano /etc/ufw/sysctl.conf
net/ipv4/ip_forward=1
net/ipv6/conf/default/forwarding=1
nano /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
nano /etc/default/ufw
DEFAULT_FORWARD_POLICY="ACCEPT"
nano /etc/ufw/before.rules
*nat
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
COMMIT
ufw allow 1:65535/tcp
ufw allow 1:65535/udp
ufw enable
nano /etc/apt/apt.conf.d/proxy.conf
Acquire::http::Proxy "http://ip:port";
Acquire::https::Proxy "http://ip:port";