PPTP VPN server on Ubuntu using webmin
I experienced a problem whilst setting up PPTP VPN server on a Ubuntu install using webmin.
I can establish a VPN connection into my Ubuntu server and access resources on that server, but i can’t access the LAN or WAN (ie other computers on network or internet).
I think the problem is the Netmask. In Webmin, under routing and gateways, the netmask for my ppp0 interface is different than for the rest of the network. (255.255.255.255 instead of 255.255.255.0)
The problem can be solved by using the following commands
cat /proc/sys/net/ipv4/ip_forward
Does it return 0 or 1?
If it is returning 0, then do echo 1 > /proc/sys/net/ipv4/ip_forward and see what it does.
To make it permanent edit
/etc/sysctl.conf and uncomment the line: net.ipv4.ip_forward=1
