WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to install a pptpd server  (Read 7886 times)

Offline idoldog

  • Newbie
  • *
  • Posts: 8
How to install a pptpd server
« 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.


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: How to install a pptpd server
« Reply #1 on: October 01, 2013, 07:23:39 AM »
This extension depends on pppd - is that extension loaded as well?

Offline idoldog

  • Newbie
  • *
  • Posts: 8
Re: How to install a pptpd server
« Reply #2 on: October 01, 2013, 12:26:51 PM »
yes, i works. I have some log. When I enable MPPE option, I get log following.



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   *

Offline idoldog

  • Newbie
  • *
  • Posts: 8
Re: How to install a pptpd server
« Reply #3 on: October 02, 2013, 09:31:04 AM »
i fix it by installing a new version of iptables

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: How to install a pptpd server
« Reply #4 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?

Offline idoldog

  • Newbie
  • *
  • Posts: 8
Re: How to install a pptpd server
« Reply #5 on: October 02, 2013, 09:46:25 AM »
yes. redsocks from 3.x repos works fine too.

Offline idoldog

  • Newbie
  • *
  • Posts: 8
Re: How to install a pptpd server
« Reply #6 on: October 02, 2013, 09:47:22 AM »
iptables extension from 2.x repos does not work in 5.0

Offline idoldog

  • Newbie
  • *
  • Posts: 8
Re: How to install a pptpd server
« Reply #7 on: October 02, 2013, 09:48:38 AM »
pptpd does not support MPPE option when connect to the server.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: How to install a pptpd server
« Reply #8 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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: How to install a pptpd server
« Reply #9 on: October 02, 2013, 09:58:18 AM »
pptpd from tc-2.x repo, pppd and redsocks from tc-4.x repo copied over

Offline idoldog

  • Newbie
  • *
  • Posts: 8
Re: How to install a pptpd server
« Reply #10 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.

Offline idoldog

  • Newbie
  • *
  • Posts: 8
Re: How to install a pptpd server
« Reply #11 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.