pptpd configuration

Posted by Ian R. on Server Fault See other posts from Server Fault or by Ian R.
Published on 2010-05-12T12:21:30Z Indexed on 2010/05/12 12:25 UTC
Read the original article Hit count: 337

Filed under:
|

I would like a little help on configuring pptp so I can use my server as a vpn server since I have 10 ip's on it and I travel a lot so that would really help me and my partners. I managed to install everything needed but my vpn client fails to connect due to some reason that I cannot understand.

I know there are 2 files in pptp that you're supposed to edit so I will post my 2 files here:

/etc/ppp/pptpd-options

name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
nodefaultroute
lock
nobsdcomp

/etc/pptpd.conf

option /etc/ppp/pptpd-options
logwtmp

localip xx.158.177.231
remoteip xx.158.177.103,xx.158.177.116,xx.158.177.121,xx.158.177.124,xx.158.177.125,xx.158.177.131,xx.158.177.134,xx.158.177.139,xx.158.177.142,xx.158.177.145

interfaces file

eth0      Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.231  Bcast:xx.158.177.255  Mask:255.255.254.0
          inet6 addr: xx80::216:3eff:fe51:31ba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56352 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3xx15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4884030 (4.8 MB)  TX bytes:6780974 (6.7 MB)
          Interrupt:16 

eth0:1    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.103  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:2    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.116  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:3    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.121  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:4    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.124  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:5    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.125  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:6    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.131  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:7    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.134  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:8    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.139  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:9    Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.142  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth0:10   Link encap:Ethernet  HWaddr 00:16:3e:51:31:ba  
          inet addr:xx.158.177.145  Bcast:xx.158.177.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:286 (286.0 B)  TX bytes:286 (286.0 B)

© Server Fault or respective owner

Related posts about pptp

  • problem with network-manager-pptp

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I've a problema with the VPA CAble connection of my university... on the website of the university there's a .sh file that set all the variables of the connection in ETC/PPP/PEERS and another .sh file that call the connection...I'm on ubuntu 11.10 and when I run the setup.sh I have this error: impossible… >>> More

  • Can't connect to VPN on Ubuntu 12.04

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I'm having a lot of trouble connecting to VPN. This used to work on my machine, but i recently did an update and it's stopped working. I'm not sure what the problem is. My question is how do i debug this? I'm not able to narrow it down to a specific problem. This is what i get when i tail the syslogs… >>> More

  • VPN in Ubuntu fails every time

    as seen on Super User - Search for 'Super User'
    I am trying to setup a vpn connection in Ubuntu 10.04 to use the service from relakks.com I used the network manager to add the vpn connection and the settings are: Gateway: pptp.relakks.com Username: user Password: pwd IPv4 Settings: Automatic (VPN) Advanced: MSCHAP &… >>> More

  • VPN in Ubuntu fails every time

    as seen on Super User - Search for 'Super User'
    I am trying to setup a vpn connection in Ubuntu 10.04 to use the service from relakks.com I used the network manager to add the vpn connection and the settings are: Gateway: pptp.relakks.com Username: user Password: pwd IPv4 Settings: Automatic (VPN) Advanced: MSCHAP &… >>> More

  • PPPTP VPN from Ubuntu cannot connect

    as seen on Super User - Search for 'Super User'
    I'm trying to configure under Linux (Kubuntu 9.10) a VPN I already use from Windows. I installed the network-manager-pptp package and added the vpn under Network Manager. These are the parameter under "advanced" button: Authentication Methods: PAP, CHAP, MSCHAP, SMCHAP2, EAP (I tried also with MSCHAP… >>> More

Related posts about linux-networking