simplicity Posted November 25, 2012 Share Posted November 25, 2012 (edited) I'm having a problem that has been causing me great distress and I'm putting a 10 dollar paypal bounty on it, 15 dollars for a quick fix (if this is permitted, apologies if it is not). I want to setup my own VPN server. My server is an Ubuntu 10.04 Server. The VPN server is pptpd. I want clients of all kinds (Win, Linux, Mac, etc) to be able to connect. Here's the kicker. My server is connected directly to the internet via eth0. There is no router between it and the internet. All the tutorials I've found have been for machines behind routers. All of the tutorials seem to be variants of this one (http://blog.riobard....p-vpn-on-ubuntu) Setup - Server: Ubuntu 10.04 eth0 - 2.2.2.2 (this is a public IP facing the internet) ppp0 - 192.168.0.1Client: Windows 7 ppp - 192.168.0.2 Default Gateway (ppp) - 0.0.0.0[/CODE]/etc/pptpd.conf (this is only the important part, let me know if you'd like to see it all) -[CODE]localip 2.2.2.2remoteip 192.168.0.1-30[/CODE]IP forwarding/masquerading is enabled on the server.When the Win7 client connects, the connection succeeds.The Win7 client can ping 192.168.0.1 and 2.2.2.2 fine while connected. It can ping nothing else, not 8.8.8.8 nor any machines on the 2.2.2.0/24 range.My hypothesis is that the Win7 client needs to get 192.168.0.1 (ppp0) as a default gateway to have the proper route. I have found no way to be able to add this to an existing route via the 'route' command, nor have I found a way in any of the config files to do specify the gateway address the client receives.If you think you might have an idea, please let me know. Thank you hak5, happy holidays.Edit: here's some bits from the error log.[CODE]pppd[10393]: Using interface ppp0pppd[10393]: Connect: ppp0 <--> /dev/pts/1pptpd[10392]: GRE: Bad checksum from pppd.pptpd[10392]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!pppd[10393]: peer from calling number x.x.x.x authorizedpppd[10393]: MPPE 128-bit stateless compression enabledpppd[10393]: Cannot determine ethernet address for proxy ARPpppd[10393]: local IP address 192.168.0.1pppd[10393]: remote IP address 192.168.1.1[/CODE] Edited November 25, 2012 by simplicity Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.