Thread: URGENT - VPN Server Does not assign correct SubnetMask/Default gateway
hi
new ubuntu. used link here to set ubuntu vpn server. clients can connect , ip address default gateway show 255.255.255.255 , default gateway 0.0.0.0. after clients connect, not able access internet. want make sure traffic directed through vpn connection.
ideas appreciated.
here configuration:
server ubuntu 11. eth0 configured as
ip address: 66.22.11.11
subnet mask: 255.255.255.248
default gateway:66.22.11.8
dns1: 123.23.123.122
dns1: 123.23.123.123
kernel ip routing table
destination gateway genmask flags metric ref use iface
66.22.11.8 * 255.255.255.248 u 1 0 0 eth0
link-local * 255.255.0.0 u 1000 0 0 eth0
default ool-60381609.st 0.0.0.0 ug 0 0 0 eth0
vpn files
/etc/pptpd.conf
localip 66.22.11.11
remoteip 192.168.2.2-235
/etc/ppp/options
ms-dns 123.23.123.122
ms-dns 123.23.123.123
two things:
localip shouldn't ip such 66.22.11.11 vaild internet ipv4 address.
255.255.255.255 how pptp vpn works.
if want option can try openvpn of clients wont have head that.
need make iptables setup after change localip.
localip ip used tunnel between client , server in vpn no relation actual external ip address of server.
should masquerade users internet when using vpn.
give output of iptables
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] URGENT - VPN Server Does not assign correct SubnetMask/Default gateway
Ubuntu
Comments
Post a Comment