LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-21-2013, 07:44 AM   #1
JoeSmith
LQ Newbie
 
Registered: Nov 2013
Location: cd ./
Distribution: Fedora19 & Kali
Posts: 26

Rep: Reputation: Disabled
PPTP Modem Hangup


Hello guys,
Can you help me fix my problem, basicly wile connection to my VPN (PPTP) I get disconected.
I use CentOS, as a client and terminal as network manager.

Here is the out put :
Code:
[root@localhost ~]# tail -f /var/log/messages 
Nov 21 08:53:47 localhost pppd[2332]: pppd 2.4.5 started by root, uid 0
Nov 21 08:53:47 localhost pppd[2332]: Couldn't get channel number: Input/output error
Nov 21 08:53:47 localhost pppd[2332]: Exit.
Nov 21 08:55:28 localhost pppd[2348]: pppd 2.4.5 started by root, uid 0
Nov 21 08:55:28 localhost pppd[2348]: Failed to set PPP kernel option flags: Inappropriate ioctl for device
Nov 21 08:55:28 localhost pppd[2348]: Using interface ppp0
Nov 21 08:55:28 localhost pppd[2348]: Connect: ppp0 <--> /dev/pts/2
Nov 21 08:55:28 localhost pppd[2348]: Modem hangup
Nov 21 08:55:28 localhost pppd[2348]: Connection terminated.
Nov 21 08:55:28 localhost pppd[2348]: Exit.

Here is my configuration file :
Quote:
[root@localhost ppp]# cat /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
brzbs PPTP test! *
[root@localhost ppp]#
Quote:
[root@localhost ppp]# cat /etc/ppp/peers/nix
pty "pptp vpn.mysite.com --nolaunchpppd"
name brzbs
remotename PPTP
require-mppe-128
file /etc/ppp/options
ipparam nix
[root@localhost ppp]#

Quote:
[root@localhost ppp]# cat /etc/ppp/options.pptp
lock
noauth
refuse-pap
refuse-eap
refuse-chap
nobsdcomp
nodeflate
require-mpp-128
[root@localhost ppp]#

Quote:
[root@localhost ppp]# cat /etc/ppp/ip-up.d/route-traffic
#!/bin/bash
NET="10.10.4.0/24"
IFACE="ppp0"
#IFACE=$1
route add -net ${NET} dev ${IFACE}

[root@localhost ppp]#
Hope you can help.

Last edited by JoeSmith; 11-21-2013 at 08:09 AM.
 
Old 11-21-2013, 03:34 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
The configuration is wrong. Following link is ppp configuration for CentOS.
http://www.centos.org/docs/5/html/De...nterfaces.html
 
Old 11-22-2013, 01:20 AM   #3
JoeSmith
LQ Newbie
 
Registered: Nov 2013
Location: cd ./
Distribution: Fedora19 & Kali
Posts: 26

Original Poster
Rep: Reputation: Disabled
I'm really glad someone anwsered it. But this is for Server, I think.
I need a tutorial how to setup it as a client.

Can you please provide more details on HowTo.

Here is the debug mode :
Quote:
[root@localhost /]# pppd call nix logfd 2 nodetach debug dump
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
logfd 2 # (from command line)
dump # (from command line)
name brzeigre # (from /etc/ppp/peers/nix)
remotename PPTP # (from /etc/ppp/peers/nix)
# (from /etc/ppp/options)
pty pptp vpn.mysite.com --nolaunchpppd # (from /etc/ppp/peers/nix)
ipparam nix # (from /etc/ppp/peers/nix)
require-mppe-128 # (from /etc/ppp/peers/nix)
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sh: pptp: command not found
Modem hangup
Connection terminated.
Script pptp vpn.mysite.com --nolaunchpppd finished (pid 2397), status = 0x7f
Joe Smith

Last edited by JoeSmith; 11-22-2013 at 01:46 AM.
 
Old 11-22-2013, 03:41 AM   #4
JoeSmith
LQ Newbie
 
Registered: Nov 2013
Location: cd ./
Distribution: Fedora19 & Kali
Posts: 26

Original Poster
Rep: Reputation: Disabled
Problem solved.

The problem was I needed to install pptp-setup
 
  


Reply



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
3G connection failed : modem hangup Brg-Bzh Linux - Networking 1 10-26-2012 03:08 PM
Kppp not hangup modem bongski55 Linux - Software 3 03-12-2004 01:48 PM
Modem hangup Gnux Debian 0 08-11-2003 07:55 AM
modem hangup swekalle Slackware 4 12-26-2002 06:59 PM
modem hangup chan Linux - General 3 03-02-2002 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:57 AM.

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