LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-20-2014, 03:20 AM   #1
just-a-guest
LQ Newbie
 
Registered: Apr 2014
Distribution: Archlinux
Posts: 18

Rep: Reputation: Disabled
How to setup pppd to work with unix-socket instead of a serial?


Is there a way to setup the pppd in order to accept and send a ppp messages into a unix-socket(it is pretty like a named pipes)? I.e. not a real serial port.
 
Old 06-20-2014, 06:01 AM   #2
just-a-guest
LQ Newbie
 
Registered: Apr 2014
Distribution: Archlinux
Posts: 18

Original Poster
Rep: Reputation: Disabled
I am found that the local option is seems to allow ignoring a pins(at least a few), so I should use it for an unix sockets.
But it seems that I misunderstanding a few the job of a pppd -- my mind was too tied to my localized problem. As I saw, it is initially was created for a dialup connections. So, if I bind a pppd to a serial, all the packets that has come there will be unwrapped from PPP/IP/..., and redirected to some port with my application. As I understand this could be only done by creating a new network interface by the pppd. But if I issue
Code:
pppd local -detach /dev/ttyS4
no new interface shown in ifconfig output. More over, after some time the pppd just exits with an error, like this
Code:
$ pppd local -detach /dev/ttyS4
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS4
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup

Last edited by just-a-guest; 06-20-2014 at 06:08 AM.
 
Old 06-20-2014, 06:13 AM   #3
just-a-guest
LQ Newbie
 
Registered: Apr 2014
Distribution: Archlinux
Posts: 18

Original Poster
Rep: Reputation: Disabled
Of course every network interface should have own IP address. My eth0 have 10.5.57.197. So, it would be better if I get an error like this.
Code:
$ pppd local -detach 10.5.57.198: /dev/ttyS4
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS4
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
 
  


Reply

Tags
pipes, ppp, pppd, socket


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
Can't connect to UNIX socket /var/run/clamav/clamd.socket ganick Linux - Server 8 08-01-2008 01:22 PM
Setup doesn't seem to work with serial console Z_kline Slackware - Installation 2 04-02-2008 02:45 PM
connection between java socket and unix socket sathishkumar Programming 1 01-10-2006 03:21 PM
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 07:28 PM
Serial cable and pppd woes tur third Linux - Networking 0 07-11-2005 03:27 PM

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

All times are GMT -5. The time now is 04:18 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