PDA

Bekijk de volledige versie : PPTP vpn server available for oleg firmware?



snowx
12-08-2009, 11:08
Anyone know's how to add pptp vpn server service for oleg firmware?

wpte
12-08-2009, 13:24
Anyone know's how to add pptp vpn server service for oleg firmware?

server service?
you mean something like this: http://www.poptop.org/

snowx
14-08-2009, 10:54
yes... like the one available in DDWRT VPN but I need the pptp only

wpte
15-08-2009, 11:18
yes... like the one available in DDWRT VPN but I need the pptp only

I can try to compile poptop for you when I'm back in a few days:)

klim
15-08-2009, 12:13
I can try to compile poptop for you when I'm back in a few days:)

poptop is already compiled:

ipkg install poptop

snowx
16-08-2009, 06:00
thanks a lot... I have installed it and testing it right now

snowx
24-08-2009, 07:35
Doesn't work... The version is quite old... 1.2.x...

snowx
25-08-2009, 07:14
Doesn't work... The version is quite old... 1.2.x...

I got the following error messages when try to start pptpd

Aug 25 13:53:13 pppd[303]: pppd 2.4.2 started by admin, uid 0
Aug 25 13:53:13 pppd[303]: Using interface ppp0
Aug 25 13:53:13 pppd[303]: Connect: ppp0 <--> /dev/pts/3
Aug 25 13:53:26 pppd[303]: Hangup (SIGHUP)
Aug 25 13:53:26 pppd[303]: Modem hangup
Aug 25 13:53:26 pppd[303]: Connection terminated.
Aug 25 13:53:26 pppd[303]: Exit.
Aug 25 13:55:35 pptpd[322]: MGR: PPP binary /opt/sbin/pppd not executable:confused:

snowx
26-08-2009, 09:27
finally got the service to start properly but windows pptp client still failed to connect...

It looks like the pppd can't locate the chap-secrets file from /opt/etc/ppp

Any idea? Any one managed to get this version working?

Aug 26 16:17:15 pptpd[584]: MGR: Manager process started
Aug 26 16:17:15 pptpd[584]: MGR: Maximum of 6 connections available
Aug 26 16:17:15 bcrelay[585]: Running as child
Aug 26 16:17:21 pptpd[586]: CTRL: Client 192.168.118.1 control connection started
Aug 26 16:17:21 pptpd[586]: CTRL: Starting call (launching pppd, opening GRE)
Aug 26 16:17:21 pppd[587]: The remote system is required to authenticate itself
Aug 26 16:17:21 pppd[587]: but I couldn't find any suitable secret (password) for it to use to do so.
Aug 26 16:17:21 pptpd[586]: GRE: read(fd=6,buffer=4205cc,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Aug 26 16:17:21 pptpd[586]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Aug 26 16:17:21 pptpd[586]: CTRL: Client 192.168.118.1 control connection finished

wpte
26-08-2009, 19:21
you have to create this file yourself.

this is the basic layout of the file:
http://poptop.sourceforge.net/dox/chap-secrets.txt

snowx
27-08-2009, 04:13
you have to create this file yourself.

this is the basic layout of the file:
http://poptop.sourceforge.net/dox/chap-secrets.txt

Yes, and I did have the file there and I suppose it is correctly modified. But I think the pppd is expecting it from somewhere else.

wpte
28-08-2009, 14:02
Yes, and I did have the file there and I suppose it is correctly modified. But I think the pppd is expecting it from somewhere else.

I'm not sure about poptop
I tried compiling it myself (to see if it makes a difference)
but I haven't found out yet what exactly the problem is as well

snowx
26-12-2009, 18:17
My wl500w just died recently. I managed to fix it by replacing bad caps and broken power supply. Now I have finally updated to the 1.9.2.7-d-r1000 and still can't get this poptop server working. How do you compile it? Any clue?

snowx
05-01-2010, 04:29
I had some progress in the PPTP server setup. I was right about the chap-secret file. It was expected to locate in the /temp/ppp directory instead of /opt/etc/ppp. I added a copy command in the post-boot script to duplicate the file over to /temp/ppp. Now my windows machines can connect to the router with pptp vpn connection.

Here is my remaining problem:
I am not able to connect to ping any IPs in the LAN subnet. When connecting to the router through LAN ip, the router treated my windows machine as connected from the Wan IP. P.S. VPN connection got LAN IP and LAN Gateway IP correctly. How do I fix this???

snowx
06-01-2010, 09:05
Finally, I got the VPN Server configuration right... everything is working at least as good as DDWRT. If anyone is interested, I will share my steps to get it working. Cheer...

wpte
06-01-2010, 11:25
Finally, I got the VPN Server configuration right... everything is working at least as good as DDWRT. If anyone is interested, I will share my steps to get it working. Cheer...

GREAT:D
so what was the problem exactly?

snowx
07-01-2010, 07:47
The previous problem was due to incorrectly added iptable rules

But now I Just found out that my configuration wasn't working perfectly. After a vpn connection, my wan interface on the router is screwed. DNS no longer works. I have to reboot the router to get it back to normal through ssh remotely. Further investigation found that a default route to the ppp0 interface was added somehow when the vpn connection was made. The resolv.conf was also cleared. It is probably done by the default pppd configuration used for wan pppoe connection. Anyone has clue how to correct this problem?

snowx
07-01-2010, 10:12
Ah... found out that the /tmp/ppp/ip-up is called automatically by pppd.
I removed this symbolic linked script and now everything seems to work as expected...
It's lucky that I don't need pppoe otherwise this won't work...

snowx
12-01-2010, 10:26
I found the following configuration can be added to the options.pptpd to override the default ip-up/ip-down script path, so that it won't interfere with the same default script under /tmp/ppp for pppoe.

ip-up-script /opt/etc/ppp/ip-up
ip-down-script /opt/etc/ppp/ip-down

Viper_Rus
10-05-2010, 13:19
Somebody can try to compile PopTop 1.3.4 (http://www.poptop.org/) for kernel 2.6 (RT-N thread) ?
PopTop 1.2.1 don't work on RT-N16(RT-N16-1.9.2.7-rtn-r1543)

wpte
10-05-2010, 16:01
Somebody can try to compile poptop 1.3.4 for kernel 2.6 (RT-N thread) ?
Poptop 1.2.1 don't work on RT-N16(RT-N16-1.9.2.7-rtn-r1543)

yeh, I probably will be able to compile it today:)

Viper_Rus
10-05-2010, 16:23
In advance many thanks.

wpte
10-05-2010, 19:07
In advance many thanks.

here you go: http://rapidshare.com/files/385743862/pptpd-1.3.2.tar.gz

it's compiled with the cross compiler, so it should even be able to run without optware:)

Viper_Rus
10-05-2010, 19:13
here you go: http://rapidshare.com/files/385743862/pptpd-1.3.2.tar.gz

it's compiled with the cross compiler, so it should even be able to run without optware:)

Thanks! I try.

Viper_Rus
10-05-2010, 19:25
Yes! Yes! Yes! it work! Thanks!

theMIROn
10-05-2010, 19:27
Yes! Yes! Yes! it work! Thanks!

So, maybe it should be moved into wl500g.googlecode.com/svn/ipkg repo?

wpte
10-05-2010, 19:39
Yes! Yes! Yes! it work! Thanks!

no problem;)



So, maybe it should be moved into wl500g.googlecode.com/svn/ipkg repo?

uhu good idea, I'm not sure how to create an ipkg tho, since I've never found those special ipkg tools required for that (as far as I understood a how-to) :p

snowx
08-07-2010, 04:25
yeh, I probably will be able to compile it today:)

Would you mind to compile PopTop 1.3.4 for kernel WL500W-1.9.2.7-d-r1612.trx also? Thanks in advance...:D

wpte
08-07-2010, 11:38
Would you mind to compile PopTop 1.3.4 for kernel WL500W-1.9.2.7-d-r1612.trx also? Thanks in advance...:D

The version I posted should also work on the WL500W version... in the end, they have the same cross compiler;)

snowx
08-07-2010, 17:51
The version I posted should also work on the WL500W version... in the end, they have the same cross compiler;)

ic thanks a lot!

wpte
11-07-2010, 16:21
ic thanks a lot!

ipkg version available:
http://wpte.kicks-ass.net/downloads/Oleg%20Firmware/Compiled%20software%20cross/poptop-1.3.4-2.ipk

Viper_Rus
01-09-2010, 12:24
ipkg version available:
http://wpte.kicks-ass.net/downloads/Oleg%20Firmware/Compiled%20software%20cross/poptop-1.3.4-2.ipk

Big Thanks! Testing......

Pedro83
13-07-2011, 16:35
A small how-to for RT-N16 from the people who managed to make it work would be very helpful :)

Thank you

wpte
14-07-2011, 12:26
A small how-to for RT-N16 from the people who managed to make it work would be very helpful :)

Thank you

For the RT-N firmware you could try rp-l2tp, its build in these days:)

you could try this howto: http://linuxexplore.wordpress.com/how-tos/l2tp-vpn-using-rp-l2tpd/
Start reading at "rp-l2tpd Server Configuration" :)

Pedro83
15-07-2011, 14:03
Cool, many thanks. I was out for several weeks so I will upgrade the firmware and get onto it :) wpte your are always great resource of info and help, thanks.

wpte
15-07-2011, 20:34
Cool, many thanks. I was out for several weeks so I will upgrade the firmware and get onto it :) wpte your are always great resource of info and help, thanks.

no problem:)
rembember to add the configuration files (if you save them on flash) to /usr/local/.files
so that they will be saved when you execute:

flashfs save
flashfs commit
flashfs enable
;)

Pedro83
18-07-2011, 17:31
wpte, could you please have a look and help me in separate thread?
http://wl500g.info/showthread.php?p=234885#post234885