Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

config ppp bidirectionally via modem

Posted on 2007-03-19
8
Medium Priority
?
328 Views
Last Modified: 2010-03-18
Here is a blast from the past, comms over serial modems

I need to setup 2 fedora core 5 machines such that a connection can be initiated at either end via these modems. I would prefer to explicitly start & stop the connection process myself rather than rely upon ppp etc to automatically set them up and close them down.

The connection will need to allow command-line login and also ftp in one direction.

I can handle the ftp conversation once the connection between the machines is made.
0
Comment
Question by:NickUpson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 27

Expert Comment

by:Nopius
ID: 18754321
1) Setup PPP server on each Linux with PAP authentication.

2) Suppose your modem is here: "/dev/modem" -> "/dev/ttyS1"

3) Install required packages
yum install mgetty
yum install ppp

4) edit /etc/inittab:
S1:2345:respawn:/sbin/mgetty -D ttyS1

5) edit /etc/mgetty+sendfax/login.config:
/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug

6) edit /etc/ppp/pap-secrets:
# client server secret IP addresss
* remote "secret" *
remote * "secret" *

7) edit /etc/ppp/options:
lock
-detach
modem
crtscts
asyncmap 0
#proxyarp

8) Edit /etc/ppp/options.ttyS1 with IP addresses localip:remoteip like:
192.168.1.1:192.168.1.2

9) Running PPP client on each Linux should look like here:
pppd connect 'chat "" "ATZ" "" ATDT555-1800 CONNECT ""'  /dev/ttyS1 115200 modem noauth user remote


0
 
LVL 19

Author Comment

by:NickUpson
ID: 18754387
where do I put the modem setup, (phone no, etc)
0
 
LVL 27

Expert Comment

by:Nopius
ID: 18754452
Phone number is setup in 9) in client connection script. In my example it's 555-1800
0
Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

 
LVL 19

Author Comment

by:NickUpson
ID: 18755176
Can I avoid the pap authentication & just have security from the login id/password. I'm trying to make this a simple as possible and involve as few changes to the default system as possible
0
 
LVL 27

Expert Comment

by:Nopius
ID: 18755896
Nick. To avoid any PPP authentication change in
5)
/AutoPPP/ - a_ppp /usr/sbin/pppd noauth -chap -pap debug
7) add
noauth
9) remove these 3 parameters "noauth user remote"
0
 
LVL 19

Author Comment

by:NickUpson
ID: 18770220
I assume 6) is no longer required

I seem to remember problems trying to dial out on a port that has getty enabled
0
 
LVL 27

Expert Comment

by:Nopius
ID: 18770296
May be you are right. Probably getty uses tty lock file while talking to modem port. I'm not sure is lock created while answering dial-in request or on start of getty.
To try out if it's possible to use the same tty, install minicom and try connect to your modem manually while getty is running.
0
 
LVL 27

Accepted Solution

by:
Nopius earned 1500 total points
ID: 18770300
Also I remember one recommendation to use different devices for dial-in and dial-out (cua0 against ttyS0). You may also try it if you have lock problems.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question