sudo cd /etc/
sudo vim sysctl.conf
Editing Network configuration
sudo cd /etc
sudo vim pptpd.conf
Editing following configuration
net.ipv4.ip_forward=1
Restart service
sudo sysctl -p
It will echo
net.ipv4.ip_forward=1
Editing Iptables
sudo vim Iptables
Add following configuration
sudo iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE
Iptables configuration will reset after reboot, so editing rc.local
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE
add this before exit 0