Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


PPTP Problem

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux Networking
Author Message
mdavid8421



Joined: 21 Nov 2007
Posts: 10

Posted: Thu Feb 07, 2008 2:47 pm    Post subject: PPTP Problem  

I have installed pptpd on debian and configured it. For both the remote as well as the localips I used the same IPs 67.18.187.102 (my server's IP). I can connect from my Windows XP laptop fine to the PPTP server. However, I cannot access any site after that. Nothing at all.

I have set the DNS and IP address settings for the PPTP connection in XP to automatic. What am I doing wrong here? Some guidance will be very helpful.

XP is taking the gateway as my server's ip (67.18.187.102) when it should take the server's gateway, no . Please help. :roll:
-------------------------------------------------------------------------------------
http://www.technichristian.net/intro/pptpd-options
Back to top  
anderiv



Joined: 27 Apr 2004
Posts: 127

Posted: Thu Feb 07, 2008 3:19 pm    Post subject:  

Hello there...I can't speak specifically to your PPTP question, but I thought I'd throw this into the pot. It sounds like you're perhaps just looking for a way to have a secure proxy through which you can browse the web? If this is incorrect, my apologies, but if it *is* correct, a much easier solution is to just use a dynamic ssh tunnel back to your linode. That doesn't involve any of the complicated VPN stuff.

-erik
Back to top  
Internat



Joined: 17 Aug 2004
Posts: 172
Location: Brisbane, Australia

Posted: Thu Feb 07, 2008 5:42 pm    Post subject:  

XP's gateway should be your servers address, however you just need to add the iptables rules to your allow it to route from whatever ip you are to your gateway..

I dont have my examples with me but i can get them for you after on how i set mine up.
Back to top  
nabber00



Joined: 02 Dec 2007
Posts: 24

Posted: Thu Feb 07, 2008 7:07 pm    Post subject:  

I did that setup a while ago, I can't really remember the details now, but here it goes:

First of all it looks like you need to set your ms-dns options to the same DNS servers your linode is using. The DNS servers your Windows XP is using my not be accessible from outside of your network (which is what would happen when you bring up the tunnel).

Make sure IP Forwarding is enabled.

I don't think I ever got it working where remoteip and localip are the same value, it causes routing issues. I think you are best off using a private IP address range for localip. On my system these values are in the file /etc/pptpd.conf. And then I think you need to setup iptables to NAT that. See "ROUTING CHECKLIST - MASQUERADE" in man pptpd.conf.

Does your PPTP connection timeout after a few minutes or continue to stay up? If it times out you may need to allow PPTP traffic through iptables if you haven't already. (GRE protocol 47)

Any log info from the linux side? Can you post what you are getting on the windows client side? "ipconfig /all"
Back to top  
mdavid8421



Joined: 21 Nov 2007
Posts: 10

Posted: Mon Feb 18, 2008 3:56 am    Post subject: Thank you everyone  

Try as I might, I could not get PPTP to work.

Erik's solution works well.

What I have done is to install Squid on the server and then use putty to open a tunnel into the server and then onto squid like this:

"C:\Program Files\PuTTY\putty.exe" -ssh -L 8080:xxx:8080 -l yyy -i "C:\Program Files\PuTTY\private-key.ppk" -2 -4 -N -a xxx

where xxx is the server's IP and yyy is the SSH acct name on the server.

It all works now.

Thanks again.


anderiv wrote: Hello there...I can't speak specifically to your PPTP question, but I thought I'd throw this into the pot. It sounds like you're perhaps just looking for a way to have a secure proxy through which you can browse the web? If this is incorrect, my apologies, but if it *is* correct, a much easier solution is to just use a dynamic ssh tunnel back to your linode. That doesn't involve any of the complicated VPN stuff.

-erik
Back to top  
 
       Linode.com Forum Forum Index -> Linux Networking
Page 1 of 1