LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-07-2006, 01:42 PM   #1
m1111
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
VPN with pptpd


I have a problem with pptpd. My log :

Feb 7 20:34:09 Debian pptpd[20888]: MGR: Launching /usr/sbin/pptpctrl to handle client
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: local address = 192.168.1.100
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: remote address = 192.168.1.101
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: pppd options file = /etc/ppp/pptpd-options
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Client 81.105.140.150 control connection started
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Received PPTP Control Message (type: 1)
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Made a START CTRL CONN RPLY packet
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: I wrote 156 bytes to the client.
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Sent packet to client
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Received PPTP Control Message (type: 7)
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Made a OUT CALL RPLY packet
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Starting call (launching pppd, opening GRE)
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: pty_fd = 6
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: tty_fd = 7
Feb 7 20:34:09 Debian pptpd[20889]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Feb 7 20:34:09 Debian pptpd[20889]: CTRL (PPPD Launcher): local address = 192.168.4.100
Feb 7 20:34:09 Debian pptpd[20889]: CTRL (PPPD Launcher): remote address = 192.168.4.101
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: I wrote 32 bytes to the client.
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Sent packet to client
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Received PPTP Control Message (type: 15)
Feb 7 20:34:09 Debian pptpd[20888]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Feb 7 20:34:39 Debian pptpd[20888]: GRE: read(fd=6,buffer=80507e0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Feb 7 20:34:39 Debian pptpd[20888]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Feb 7 20:34:39 Debian pptpd[20888]: CTRL: Reaping child PPP[20889]
Feb 7 20:34:39 Debian pptpd[20888]: CTRL: Client 81.105.140.150 control connection finished
Feb 7 20:34:39 Debian pptpd[20888]: CTRL: Exiting now
Feb 7 20:34:39 Debian pptpd[20784]: MGR: Reaped child 20888

It works on the LAN, doesn't work from Internet. My iptables rules :

iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT

iptables -A INPUT -p tcp --dport 1723 -i eth1 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 1723 -o eth1 -j ACCEPT

iptables -A INPUT -p 47 -j ACCEPT

iptables -A INPUT -p GRE -j ACCEPT
iptables -A OUTPUT -p GRE -j ACCEPT
iptables -A FORWARD -p GRE -j ACCEPT

iptables -F FORWARD
iptables -A FORWARD -j ACCEPT

iptables -A POSTROUTING -t nat -o eth1 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

Please help !

Last edited by m1111; 02-07-2006 at 01:54 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help getting PPTPD to work Contriver Suse/Novell 1 10-10-2005 04:09 AM
VPN pptpd problems ?!?!? thewonka Linux - Networking 1 02-23-2005 06:44 AM
pptpd carlg Linux - Newbie 0 07-05-2004 07:28 PM
Pptpd start bcdfla Linux - Networking 0 04-29-2004 03:58 PM
VPN PPTPD POPTOP , not Stable, need some help! phtkiller Linux - Networking 0 11-05-2003 05:55 AM


All times are GMT -5. The time now is 09:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration