Sharing an Internet Connection

Sharing an Internet Connection

Sharing an Internet Connection
Configuring a Local Gateway Server
Change the /etc/sysctl.conf file by using ” net.ipv4.ip_forward=1 ” and activate the changes with #sysctl -p
Internet NIC —> eth0 (the ID of the Internet connected network adapter)

Local NIC—> vboxnet0

iptables rules

Client Machine Settings
Note: The gateway’s IP address is what will be used by clients wanting to connect to the Internet using the gateway server.