LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   PPTP VPN Setup Question (https://www.linuxquestions.org/questions/linux-networking-3/pptp-vpn-setup-question-152642/)

gauge73 03-02-2004 11:50 AM

PPTP VPN Setup Question
 
I'm trying to set up a VPN between my laptop on my school's wireless network and my Linux server at home. The Linux server is the router for my home network. Here is a diagram of the situation...

LAPTOP <------> (School Network) <----> ((Internet)) <----> Linux Server <---> (Home Network)

I have set up a PPTP server at home (http://www.poptop.org) and have turned on Dial-Up Networking and the VPN Adapter on Windows ME on the Laptop. I've set up a connection to home, and I believe it's all right. However, I get no response when trying to connect.

These are the only two lines in my pptpd.conf file:

localip 192.168.1.11 # The IP I want the laptop to get on the home network
remoteip xxx.xxx.xxx.xxx # My cable modem's IP address

Should I be allowing some more ports on the firewall on the Linux machine to allow a connection??


Thanks in advance for any help. :)

gauge73 03-03-2004 10:41 AM

I found the ports necessary to get connected and opened them on the firewall. I was able to "connect" but it died while "verifying the username and password." So, I looked around a bit and decided to try messing with my configuration files for poptop. I took a suggestion off the internet (which didn't explain what the lines of this config file meant) and got a ton of errors. Here is the suggested /etc/ppp/options.pptpd file I used:

name *
lock
noauth
proxyarp
+chap
+chapms-v2
mppe-40
mppe-128
mppe-stateless

Then, when trying to connect I got an error (via SSH) from the Linux machine saying that +chapms-v2 was an unrecognized option. After commenting that out it was mppe-40, then mppe-128, so I finally got sick of it and commented out the entire file. So, I turned off all encryption on the Win ME laptop and connected. It worked, sort of. I was able to connect, but I couldn't do anything with the connection. I tried to SSH to 192.168.1.1 (which is the Linux machine's internal IP address) and it didn't work. I'm not on a reserved subnet (i.e. 192.168.0.0/16) here at school, so I know it wasn't a conflict of IPs between the VPN and the local network I'm on.

I'm totally lost here, guys. TOTALLY lost, but I want to learn how all this works. Can someone please help me? :/

gauge73 03-03-2004 01:11 PM

Perhaps I need to simplify this a bit... Since I _am_ technically connecting to the VPN, what should I be able to do with it? The internal IP of my Linux machine at home is 192.168.1.1. Does this mean that when connected to the VPN I should be able to connect to 192.168.1.1 as if I were on the LAN at home?

I'm thinking I may have a serious misconception about VPNs in general or something.

gauge73 03-04-2004 09:25 AM

*bump* ;)

adajun 07-06-2004 10:44 AM

do you have any services running on the linux computer that you want to use? You can connect to them with vpn. Some examples are a samba share if there are files you want to access or VNC if you want to actually login to your linux box remotely and see the gui.



adam

LanRx 07-06-2004 11:19 AM

There are potential issues with the VPN solution that you are trying to implement. The first one, however, is that PPTP cannot perform NAT traversal, to the best of my knowledge.
Second, I think that it's port 1723 or something similar for PPTP traffic to configure port forwarding on your firewall.


All times are GMT -5. The time now is 11:14 PM.