« Sparse checkout example in git 1.7.0google adwords kupon »

pptp client howto on linux on console

2010. Feb. 09.

Permalink 05:39:00 pm, by vmiklos, 180 words   English (US)
Categories: hacking

pptp client howto on linux on console

So I saw a few howtos on how to set up ms pptp client on linux, but they’re mostly about how to click on networkmanager or other guis, so basically they hide the real detail, IOW what config files are actually used.

First install the necessary packages:


# pacman-g2 -S ppp pptp

Here is what I have under /etc/ppp:


# cat chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
$user PPTP $secret *


# cat options
lock


# cat options.pptp
lock
noauth
nobsdcomp
nodeflate


# cat peers/$network
pty "/usr/sbin/pptp $server --nolaunchpppd"
name "$user"
file /etc/ppp/options.pptp
remotename PPTP
require-mppe-128
refuse-eap
ipparam $network

And to bring up ppp0:


# pon $network debug dump logfd 2 nodetach

If it works fine, you can just use:


# pon $network

(Obviously replace $user, $secret, $server and $network with real values.)

One thing I did not figure out is how to configure it to set the default gateway as well. Right now I use the debug mode, then in the output I see the remote address, finally:


# route add default gw $remoteaddr

Other than that, it works fine - without any damn gui! :)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)
July 2010
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Search

Stats

Összesen 1,455 bejegyzés és 307 megjegyzés.

Most views

  • Sparse checkout example in git 1.7.0 (1,422)
  • winning london (987)
  • pacman -Sy: rsync-like optimization (888)
  • pacman-g2 -Qt bug (876)
  • gmane export (853)
  • More...
powered by b2evolution free blog software