connect to windows vpn using pptpconfig

April 1st, 2007 mysurface Posted in Network, pptpconfig, route | Hits: 35800 | 7 Comments »

To create a tunnel connecting to microsoft VPN server is not a difficult. With the help of pptpconfig GUI, let see how to do it.

Installation
First of all, you need to make sure whether pptpconfig was installed. Check out ubuntu geek for pptpconfig installation guide for ubuntu linux. You can have more details info regarding pptp client at pptpclient.sourceforge.net. For download pptpconfig rpm, check out rpmfind.net.

Create a tunnel with pptpconfig
pptpclient.sourceforge.net document section covers very complete guide for most common linux distro. In this examples, we show you the most common way to connect to NT VPN, if you facing problem or search for advance settings info, we recommend you read the pptpclient.sourceforge.net document section.

Lets get started. You must run pptpconfig in root permission, either you execute it with gksudo or simply with sudo.

gksudo pptpconfig

As you can see in GUI, it split configurations into few tabs (Server, Routing, DNS, Encryption, Miscellaeous), the most important tabs are Server, routing and Encryption.

At server tab, put any name into ‘Name‘ text input, put your vpn server domain name or IP into ‘Server‘ area. Fill in your username and password. Switch to routing and select ‘client to LAN‘, then switch to tab Encryption. The most common options to check is ‘Require Microsoft Point-to-point Encryption (MPPE)‘.

Click Add button to add ans save the vpn settings, select that line you added and click start button. If it success, it means you already hook up. Double check with ifconfig, you should now see ppp0 network interface up with IP assigned.


ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.168.28.47  P-t-P:10.168.28.46  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1496  Metric:1
          RX packets:311 errors:0 dropped:0 overruns:0 frame:0
          TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:30001 (29.2 KiB)  TX bytes:11054 (10.7 KiB)

Accessing host or servers behind VPN.
You should able to connect straigh away, but I do facing problem accessing servers behind that vpn i connected to. The reason was the route is not properly setup. I do try to setup at routing tab in pptpconfig, but somehow it do not configure for me correctly. Okay, if you are facing the same problem, first check the routing table with route command.

route -n

I get this line which I know it was wrong, the netmask should be 255.255.255.0, and I want to access the entire LAN instead of just this machine with IP 10.168.28.46.

10.168.28.46    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0

Never mind, delete the unwanted route and reconfigure a correct one.

sudo route del 10.168.28.46

Setup a new route, where it allows you to access entire LAN of 10.168.28.0/24.

sudo route add -net 10.168.28.0 netmask 255.255.255.0 dev ppp0

Ok, done. you can actually terminate your pptpconfig GUI application, the connection will stay until you stop it by hitting stop button.

Alternative References

  • Facing problem setting up in Fedora core 6? Check out Nabble for help.
  • Create a vpn connection in Windows XP is not cover here, check out windowsecurity.com.
  • Some GUI screenshot of pptpconfig, check out linux.org.au.
  • Configure with using pptp, check out tiki-lounge.com.
  • Additional Info
    pptpconfig was build using glade and php-gtk by Quozl. Thanks to ditesh@myoss for the information.

    [tags] vpn installation, vpn linux, vpn configuration, vpn to windows, nt vpn, virtual private network[/tags]

    7 Responses to “connect to windows vpn using pptpconfig”

    1. Another Title…

      I saw this really great post today….

    2. VPN PRO…

      I saw this really great post today….

    3. Thanks a bunch for sharing this with all folks you really recognise what you are talking approximately! Bookmarked. Kindly additionally consult with my web site =). We could have a hyperlink exchange agreement between us!

    4. Go past a easy firewall with sophisticated packet checking software program.

    5. I really like getting the letters, but please tend not to go telling folks they are heading for getting about just one a week. I have been lucky to obtain a single a month. You need to do a little better than that….or cease the pinocchio stories at the really least. If just one a month is what it is, then that’s what it is.

    6. Spot on with this write-up, I seriously believe this
      amazing site needs far more attention. I’ll probably bbe returning to read through more, thabks for the
      info!

      Feel free to surf to my web blog simple one story ranch house plans

    7. At this moment I am going away to do my breakfast, afterward having my breakfast coming yet again to read other news.

      my homepage car window replacement ringwood

    Leave a Reply