Langkah-langkah nya sebagai berikut :
1. nano /etc/network/interfaces
auto enp0s3
iface enp0s3 inet dhcp
auto enp0s8
iface enp0s8 inet static
address 192.168.50.1/24
2. systemctl restart networking
3. apt install net-tools dnsutils
4. nano /etc/sysctl.conf
net.ipv4.ip_forward=1
5. apt install iptables-persistent
6. iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE
7. netfilter-persistent save
8. netfilter-persistent reload
9. systemctl reboot
Lihat videonya : :
Terimakasih
Mudah-mudahan bermanfaat