Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Command line PPTP client #370811
    jnetman1
    Participant

    sudo pppd serviceid 2 debug logfile /tmp/ppp.log plugin /System/Library/SystemConfiguration/PPPController.bundle/Contents/PlugIns/PPPDialogs.ppp plugin pptp.ppp remoteaddress AAA.BBB.CCC.DDD redialcount 1 redialtimer 5 idle 1800 mru 1500 mtu 1448 receive-all novj 0:0 noipdefault ipcp-accept-local ipcp-accept-remote user yourusername password yourpassword hide-password noaskpassword mppe-stateless mppe-128 looplocal

    AAA.BBB.CCC.DDD is the address of the PPTP server. Next you have to add a route. Do an ifconfig and look for the ppp0 interface. Should look something like this:

    ppp0: flags=8051 mtu 1396
    inet 172.18.247.53 –> 172.18.247.84 netmask 0xffff0000

    You need the remote IP for the route, which is the last one (172.18.247.84 in the example above.) Add route like so:

    sudo route add 172.18.247.0/24 172.18.247.84

    and you are done.

Viewing 1 post (of 1 total)