poptop on FreeBSD 9.x
Tim Gustafson <[email protected]> Tue, 17 Jul 2012 16:59:34 -0700
| Newsgroups | gmane.network.poptop |
|---|---|
| Message-ID | <CAG27QgSOZi=aYscZ22a7TGi0O0CuXsyXE4Y8WWAd+j2LWmabSg@mail.gmail.com> |
Hi, I'm trying to configure poptop server on FreeBSD 9.0. I've found a bazillion how-tos on Google showing how to set it up to do NAT, but I don't want to do that. I want to give my clients a local network address. So, let's say my poptop server is 1.2.3.1 I'd like my clients to get assigned addresses of 1.2.3.100 - 1.2.3.199 Im pptpd.conf, I have: option /etc/ppp/options.pptpd debug noipparam connections 10 localip 1.2.3.1 remoteip 1.2.3.100-1.2.3.199 In /etc/ppp/options.pptpd I've got: name pptpd chapms-strip-domain refuse-pap refuse-chap refuse-mschap require-mschap-v2 require-mppe-128 proxyarp debug lock nobsdcomp novj novjccomp nologfd In /etc/ppp/ppp.conf, I've added: pptp: set timeout 0 set log phase chat connect lcp ipcp set dial set login enable mssfixup set ifaddr 128.114.49.22 128.114.48.220-128.114.48.229 netmask 255.255.255.0 set server /tmp/loop "" 0177 enable chap enable mschapv2 disable pap enable proxy accept dns set dns 128.114.48.21 128.114.48.22 128.114.48.23 set device !/etc/ppp/secure And finally, I've set up my /etc/ppp/chap-secrets as: tjg pptpd PASSWORD * But when I try to connect with my Windows client, I get immediately disconnected. Here's a snippet of the syslog output: pptpd: MGR: Manager process started pptpd: MGR: Maximum of 10 connections available pptpd: MGR: Launching /usr/local/sbin/pptpctrl to handle client pptpd: CTRL: local address = 128.114.49.22 pptpd: CTRL: remote address = 128.114.48.220 pptpd: CTRL: BSD userland ppp system label = /etc/ppp/options.pptpd pptpd: CTRL: Client 128.114.63.210 control connection started pptpd: CTRL: Received PPTP Control Message (type: 1) pptpd: CTRL: Made a START CTRL CONN RPLY packet pptpd: CTRL: I wrote 156 bytes to the client. pptpd: CTRL: Sent packet to client pptpd: CTRL: Received PPTP Control Message (type: 7) pptpd: CTRL: Set parameters to 100000000 maxbps, 64 window size pptpd: CTRL: Made a OUT CALL RPLY packet pptpd: CTRL: Starting call (launching pppd, opening GRE) pptpd: CTRL: pty_fd = 7 pptpd: CTRL: tty_fd = 6 pptpd: CTRL: I wrote 32 bytes to the client. pptpd: CTRL: Sent packet to client pptpd: CTRL (PPPD Launcher): program binary = /usr/sbin/ppp pptpd: CTRL: Received PPTP Control Message (type: 15) pptpd: CTRL: Got a SET LINK INFO packet with standard ACCMs pptpd: GRE: accepting packet #0 ppp: Warning: Label /etc/ppp/options.pptpd rejected -direct connection: Configuration label not found pptpd: GRE: read(fd=7,buffer=610820,len=8196) from PTY failed: status = 0 error = No error pptpd: CTRL: PTY read or GRE write failed (pty,gre)=(7,6) pptpd: CTRL: Reaping child PPP pptpd: CTRL: Client 128.114.63.210 control connection finished pptpd: CTRL: Exiting now pptpd: MGR: Reaped child 2021 So, what am I doing wrong? -- Tim Gustafson [email protected] 831-459-5354 Baskin Engineering, Room 313A ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/