OpenWrt Forum Archive

Topic: HOW-TO PPTP on 7.09????

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi!

I really big problem with pptp! i havw VPn connection to my ISP, so i realy need it on my WL 700ge.

What i have:
WL 700ge with k 7.09

installed modules for pptp connection:

iptables-mod-extra_1.3.7-1_mipsel.ipk
kmod-crypto_2.4.34-brcm-1_mipsel.ipk
kmod-gre_2.4.34-brcm-1_mipsel.ipk
kmod-ipt-extra_2.4.34-brcm-1_mipsel.ipk
kmod-mppe_2.4.34-brcm-1_mipsel.ipk
kmod-ppp_2.4.34-brcm-1_mipsel.ipk
libgcc_3.4.6-9_mipsel.ipk
ppp_2.4.3-8_mipsel.ipk
pptpd_1.3.0-1_mipsel.ipk
pptp_1.6.0-4_mipsel.ipk

/etc/ppp/options.pptp

lock
noauth
nobsdcomp
nodeflate
idle 0
defaultroute
replacedefaultroute

/etc/ppp/peers/corbina

pty "pptp vpn.corbina.net --nolaunchpppd"
name my-login
remotename corbina
ipparam corbina
file /etc/ppp/options.pptp
logfile /tmp/corbina.log
defaultroute
replacedefaultroute
#noipdefault
#nodetach
mtu 1492

/etc/ppp/chap-secrets

#USERNAME PROVIDER PASSWORD IPADDRESS
my-login corbina my-pass *

now, how i can start connection?
i read lots of forums, try several methods, but still have nothing sad

Just issue from shell -> pppd call corbina
It should bring you up ppp0 interface.

OpenWrt also has ip-up and if-up scripts - but they need some tuning from the box. It's more elegant way, but for now - it's too buggy.

The best solution is to write a good init script which uses UCI for the configuration...

ssm2000 wrote:

Just issue from shell -> pppd call corbina
It should bring you up ppp0 interface.

Great! i can't find pppd package! when i type pppd - it tell me that cant find pppd

ok, i find the pppd ! smile

i run the: pppd call corbina debug nodetach

and here is my log:
using channel 25
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbb2bda90>]
rcvd [LCP ConfReq id=0x1 <mru 1460> <auth chap MD5> <magic 0x2036c134>]
sent [LCP ConfAck id=0x1 <mru 1460> <auth chap MD5> <magic 0x2036c134>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbb2bda90>]
rcvd [CHAP Challenge id=0x1 <eb7cac89c49bb8c61b66f43b56c4a322>, name = "bras18"]
sent [CHAP Response id=0x1 <a9c2592c583adeb1acc4222c8b51b063>, name = "my_login"]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D +C>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 85.21.0.18>]
sent [IPCP ConfAck id=0x1 <addr 85.21.0.18>]
rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0c 12 06 00 00 00 01]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 89.178.156.75>]
sent [IPCP ConfReq id=0x3 <addr 89.178.156.75>]
rcvd [IPCP ConfAck id=0x3 <addr 89.178.156.75>]
replacing old default route to eth0.1 [10.46.0.17]
local  IP address 89.178.156.75
remote IP address 85.21.0.18
Script /etc/ppp/ip-up started (pid 1256)
Script /etc/ppp/ip-up finished (pid 1256), status = 0x1
Script pptp 85.21.0.18 --nolaunchpppd finished (pid 1246), status = 0x0
Modem hangup
Connect time 1.0 minutes.
Sent 56051476 bytes, received 0 bytes.
restoring old default route to eth0.1 [10.46.0.17]
Script /etc/ppp/ip-down started (pid 1291)
Connection terminated.
Waiting for 1 child processes...
  script /etc/ppp/ip-down, pid 1291
Script /etc/ppp/ip-down finished (pid 1291), status = 0x1

ok, am i! but no Internet sad

What's the problem?

(Last edited by suspam on 17 Oct 2007, 23:35)

Still have a problem sad
Connect time 1.0 minutes. and while i connected - i have ho internet!!! sad

please see as the link
http://wiki.openwrt.org/PPTPDHowto?high … 28pptpd%29

and modify /etc/pptpd.conf to add this line
localip 172.16.1.1

and modify /etc/ppp/chap-secrets to add your account ex:
yourname pptp-server yourpassword 172.17.1.2

that you can use it.
172.16.1.1 <-your server ip
172.16.1.2~254 <-your remot ip
please check you client infotmation to make sure the router assign correctly(172.16.1.1).

hermantsao wrote:

please see as the link
http://wiki.openwrt.org/PPTPDHowto?high … 28pptpd%29

and modify /etc/pptpd.conf to add this line
localip 172.16.1.1

and modify /etc/ppp/chap-secrets to add your account ex:
yourname pptp-server yourpassword 172.17.1.2

that you can use it.
172.16.1.1 <-your server ip
172.16.1.2~254 <-your remot ip
please check you client infotmation to make sure the router assign correctly(172.16.1.1).

ok, but what about connection time?

suspam wrote:
hermantsao wrote:

please see as the link
http://wiki.openwrt.org/PPTPDHowto?high … 28pptpd%29

and modify /etc/pptpd.conf to add this line
localip 172.16.1.1

and modify /etc/ppp/chap-secrets to add your account ex:
yourname pptp-server yourpassword 172.17.1.2

that you can use it.
172.16.1.1 <-your server ip
172.16.1.2~254 <-your remot ip
please check you client infotmation to make sure the router assign correctly(172.16.1.1).

ok, but what about connection time?

I didn't have any time iessues or other issues in my pptpd.

(Last edited by hermantsao on 21 Oct 2007, 19:13)

you need to add a static route to your PPTP host 85.21.0.18 ;-)

The discussion might have continued from here.