Anyone know's how to add pptp vpn server service for oleg firmware?
Printable View
Anyone know's how to add pptp vpn server service for oleg firmware?
server service?
you mean something like this: http://www.poptop.org/
yes... like the one available in DDWRT VPN but I need the pptp only
thanks a lot... I have installed it and testing it right now
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:
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
you have to create this file yourself.
this is the basic layout of the file:
http://poptop.sourceforge.net/dox/chap-secrets.txt
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?
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???
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...
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?
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...
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
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)
In advance many thanks.
here you go: http://rapidshare.com/files/38574386...d-1.3.2.tar.gz
it's compiled with the cross compiler, so it should even be able to run without optware:)
Yes! Yes! Yes! it work! Thanks!
ipkg version available:
http://wpte.kicks-ass.net/downloads/...op-1.3.4-2.ipk
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/ho...sing-rp-l2tpd/
Start reading at "rp-l2tpd Server Configuration" :)
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, could you please have a look and help me in separate thread?
http://wl500g.info/showthread.php?p=234885#post234885