LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-19-2011, 11:26 PM   #1
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Rep: Reputation: 0
Error connect to server


Hi,

I setup PPTP server on Ubuntu 9.10. When i connect from user, i got error.

This is from /var/log/syslog
Code:
May 20 12:21:14 vpn01 pptpd[7571]: CTRL: Client 202.75.4.xxx control connection started
May 20 12:21:15 vpn01 pptpd[7571]: CTRL: Starting call (launching pppd, opening GRE)
May 20 12:21:15 vpn01 pppd[7572]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
May 20 12:21:15 vpn01 pppd[7572]: Couldn't open the /dev/ppp device: Permission denied
May 20 12:21:31 vpn01 pptpd[7571]: CTRL: Reaping child PPP[7572]
iptables -L
Code:
root@vpn01:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
root@vpn01:~#
http://imageshack.us/photo/my-images/854/pic1d.png/

Please assist me.
 
Old 05-21-2011, 07:40 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
The answer is in the middle of your log entries.

Quote:
Originally Posted by newFreeBSD View Post
May 20 12:21:15 vpn01 pppd[7572]: Couldn't open the /dev/ppp device: Permission denied
This is saying that the pppd process doesn't have permission to open
/dev/ppp. Here are a couple of commands to find what the permissions
are and what user is running pppd.

Code:
ls -l /dev/ppp
ps aux | grep "[p]ppd
 
Old 05-23-2011, 08:00 PM   #3
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Original Poster
Rep: Reputation: 0
Code:
root@vpn01:~# ls -l /dev/ppp
crw-r--r-- 1 root root 108, 0 May 13 11:25 /dev/ppp
root@vpn01:~# ps aux | grep [p]ppd
root@vpn01:~#
 
Old 05-25-2011, 12:18 AM   #4
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Original Poster
Rep: Reputation: 0
Any idea why? I do searching and as i seen none of them solve.
 
Old 05-25-2011, 09:19 PM   #5
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
The output of the first command shows that only root can read
and write to /dev/ppp. The fact that the second command has
no output means that pppd wasn't running.

Are you trying to start pppd as root? Or are you using sudo?

Do you see anything in /var/log/messages or /var/log/syslog
after trying to start pppd?
 
  


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
[SOLVED] Error: Could not connect to the Server. divyashree Linux - Server 4 10-12-2010 11:03 AM
Error: Could not connect to the Server divyashree SUSE / openSUSE 3 10-12-2010 09:50 AM
Can not connect to pptp server Error:691 tkral Linux - Newbie 2 05-19-2009 10:43 PM
HELP!! Error in GXSTRT: Unable to connect to X server zepplin611 Fedora 4 09-18-2007 02:34 PM
SSH server error on connect rlbewick Mandriva 2 05-02-2005 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration