Tiny Core Linux

Tiny Core Extensions => TCE Tips & Tricks => Topic started by: idoldog on October 01, 2013, 07:20:19 AM

Title: How to install a pptpd server
Post by: idoldog on October 01, 2013, 07:20:19 AM
I found a file named pptpd.tcz from TCE 2.X repos.
I use command `tce-load -i pptpd.tcz` to install the pptpd server.
But I can't connect to the server after I run the command `sudo pptpd -f`.
I use tcpdump and found it had revceived the data from my phone.

Title: Re: How to install a pptpd server
Post by: Juanito on October 01, 2013, 07:23:39 AM
This extension depends on pppd - is that extension loaded as well?
Title: Re: How to install a pptpd server
Post by: idoldog on October 01, 2013, 12:26:51 PM
yes, i works. I have some log. When I enable MPPE option, I get log following.

(http://p0.pstatp.com/origin/314/6764464343)

when i disable MPPE option, I can connect to the server but it disconnect some time.

the config file /etc/pptpd.conf

Quote
option /etc/ppp/options-pptpd
ppp /usr/local/sbin/pppd
remoteip 192.168.250.10-30
localip 192.168.250.1
bcrelay table
Iface
eth0

/etc/ppp/chap-secrets
Quote
# Secrets for authentication using CHAP
# client   server   secret         IP addresses
vpn   pptpd   123456   *
Title: Re: How to install a pptpd server
Post by: idoldog on October 02, 2013, 09:31:04 AM
i fix it by installing a new version of iptables
Title: Re: How to install a pptpd server
Post by: Juanito on October 02, 2013, 09:40:35 AM
So the pptpd and pppd extensions from the tc-2.x repo work in tc-5.x, is that correct?
Title: Re: How to install a pptpd server
Post by: idoldog on October 02, 2013, 09:46:25 AM
yes. redsocks from 3.x repos works fine too.
Title: Re: How to install a pptpd server
Post by: idoldog on October 02, 2013, 09:47:22 AM
iptables extension from 2.x repos does not work in 5.0
Title: Re: How to install a pptpd server
Post by: idoldog on October 02, 2013, 09:48:38 AM
pptpd does not support MPPE option when connect to the server.
Title: Re: How to install a pptpd server
Post by: Juanito on October 02, 2013, 09:50:49 AM
iptables extension from 2.x repos does not work in 5.0

..but I presume the version of iptables already in the tc-5.x repo does work?
Title: Re: How to install a pptpd server
Post by: Juanito on October 02, 2013, 09:58:18 AM
pptpd from tc-2.x repo, pppd and redsocks from tc-4.x repo copied over
Title: Re: How to install a pptpd server
Post by: idoldog on October 02, 2013, 10:25:02 AM
iptables extension from 2.x repos does not work in 5.0

..but I presume the version of iptables already in the tc-5.x repo does work?

I want to use table `nat`, such as `iptables -t nat -F`. 2.x's iptables does not support. 5.x's iptables works fine.
Title: Re: How to install a pptpd server
Post by: idoldog on October 02, 2013, 10:34:30 AM
I made a virtual machine using tiny core which had installed pptp, redsocks, iptables. Every connection from vpn will be redirected to redsocks(be transformed to proxy connections), then redirected to our development server.
It works fine. The size of all the files are limit to 50M. It's very cool.