LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 06-27-2002, 12:18 PM   #1
pentium5
LQ Newbie
 
Registered: Jun 2002
Distribution: RH 7.2, 7.3 & SOLARIS
Posts: 5

Rep: Reputation: 0
how to create ppp server in RH 7.2 as small ISP thro serial port


I need to do ttyS0 to provide ppp to com1 so I can dial in from a remote office to test the conception of small isp via serial port.

I have installed the dhcp

and
[root@energy ppp]# dhcpd -f
Internet Software Consortium DHCP Server 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

Listening on Socket/eth0/192.168.1.0
Sending on Socket/eth0/192.168.1.0
There's already a DHCP server running.

exiting.
[root@energy ppp


/etc/dpchd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.80 192.168.1.254 ;
option subnet-mask 255.255.255.0 ;
option broadcast-address 192.168.1.255 ;
option routers 192.168.1.1 ;
option domain-name-servers 64.124.9.160 ;

option domain-name "mydomain.com" ;
option ip-forwarding on ;
option netbios-node-type 8 ;

and I have /etc/ppp/options like this.

# use serial device ttyS0 (cua0) for the ppp conection /dev/ttyS0
/dev/ttyS0
#lock the device while in use
###### this file has only one line ie lock, all other I added in 27th June 2002

lock
#remote end does not need to authicate itself
noauth
#user name used when authenticaing this ppp session
name "auser"
#automatically place an entry in the routing table for the ppp conection
defaultroute
# use modem lock link at 115200 using hardware flow control
modem 115200 crtscts
#chat line used to dail modem
connect '/usr/sbin/cat -v -f /etc/ppp/chat'

/etc/ppp/options


I do not how to make this work.
I do not know how the chat should be!
currently , I can dial in the linux server and login my account and su to root.
Then I execute /usr/sbin/pppd, but there is nothing happen , no dhcp IP to me in window 98 se.
 
Old 06-28-2002, 03:09 AM   #2
mrdensity
Member
 
Registered: Apr 2002
Location: Central US
Distribution: Libranet 1.9.1 & 2.0, tinyX (2dskxwin) & WinLinux 2001
Posts: 83

Rep: Reputation: 15
This may help. It mentions that Windows clients are "finicky" about DHCP offers.
http://www.tldp.org/HOWTO/mini/DHCP/...tml#DHCPSERVER

Cheers !
 
Old 06-28-2002, 04:21 PM   #3
kop
LQ Newbie
 
Registered: Jul 2001
Posts: 24

Rep: Reputation: 15
If you want the dial-in user to go straight to ppp instead of logging in to a shell prompt and then starting ppp, what you have to do is modify /etc/inittab to have pppd run on the serial port instead of mgetty.
(or whatever getty-like program is currently on there.)

You won't need a chat script. You could use the command line options
to pppd instead of the config file, at least to get going, maybe.

You can probably find help in the Serial-HOWTO on www.tldp.org.
 
Old 06-29-2002, 08:50 AM   #4
pentium5
LQ Newbie
 
Registered: Jun 2002
Distribution: RH 7.2, 7.3 & SOLARIS
Posts: 5

Original Poster
Rep: Reputation: 0
I would to make one point,
this rh 7.2 is currently connect to one serial port, in the future it would have 4 ports at max and 4 lines. On the contrary, I only have one spare phone line. so this really a very tiny isp for testing and even at this stage in research process.

second, this machine is connected to a linksys router, and private fixed IP is applied in router and the /etc/hosts, network, ifcfg-eth0.

I need the ppp server and dhcp for the ttyS0 ( com1 ) ttyS1 (com2)... (com4).

is there a difference between ugetty and mgetty?

I am tryin to follow :
http://tldp.org/HOWTO/ISP-Setup-RedH...-4.html#ss4.12


am I on the right track??????
 
Old 07-01-2002, 09:31 PM   #5
pentium5
LQ Newbie
 
Registered: Jun 2002
Distribution: RH 7.2, 7.3 & SOLARIS
Posts: 5

Original Poster
Rep: Reputation: 0
http://www.swcp.com/~jgentry/pers.html

I do not know which parts is wrong, in 98 SE the connection is ok until
the
check authentication and it breaks out. winipcfg does not show it has
given
an ip address .
the home server is connected a zoom modem and a dedicated Rh 7.2 is used.

the following is my setting:

/etc/inittab

S0:2345:respawn:/sbin/mgetty ttyS0 -D /dev/ttyS0
/etc/ppp/options.ttyS0

auth -chap +pap login modem crtscts debug proxyarp lock
#ms-dns 192.168.1.150
ms-dns 205.255.144.77
# the first IP from left to right is the the IP addres of the server
# the second ip is the ip address assigned to the serial port for ppp
connections

192.168.1.80:192.168.1.200
#192.168.1.120
~
/etc/ppp/pap-secrets
#user server secret addrs
* * " " *
sally * - *
root * - *

#mtu 576
#mru 512
auth -chap +pap login modem crtscts debug proxyarp lock
ms-dns 208.167.231.55
ms-dns 205.255.144.77


/var/log/mgetty.log.ttyS0

--
07/02 08:05:53 yS0 mgetty: experimental test release 1.1.26-Apr16
07/02 08:05:53 yS0 check for lockfiles
07/02 08:05:53 yS0 locking the line
07/02 08:05:53 yS0 lowering DTR to reset Modem
07/02 08:05:54 yS0 send: \dATQ0V1H0[0d]
07/02 08:05:54 yS0 waiting for ``OK'' ** found **
07/02 08:05:54 yS0 send: ATS0=0Q0&D3&C1[0d]
07/02 08:05:54 yS0 waiting for ``OK'' ** found **
07/02 08:05:55 yS0 waiting...
07/02 08:06:44 yS0 wfr: waiting for ``RING''
07/02 08:06:44 yS0 send: ATA[0d]
07/02 08:06:44 yS0 waiting for ``CONNECT'' ** found **
07/02 08:07:05 yS0 send:
07/02 08:07:05 yS0 waiting for ``_'' ** found **
07/02 08:07:25 ##### data dev=ttyS0, pid=1688, aller='none',
conn='57600',
name='', cmd='/bin/login', user='sally'

--
07/02 08:08:44 yS0 mgetty: experimental test release 1.1.26-Apr16
07/02 08:08:44 yS0 check for lockfiles
07/02 08:08:44 yS0 locking the line
07/02 08:08:44 yS0 lowering DTR to reset Modem
07/02 08:08:45 yS0 clean_line: only 500 of 1390 bytes logged
07/02 08:08:45 yS0 send: \dATQ0V1H0[0d]
07/02 08:08:45 yS0 waiting for ``OK'' ** found **
07/02 08:08:45 yS0 send: ATS0=0Q0&D3&C1[0d]
07/02 08:08:45 yS0 waiting for ``OK'' ** found **
07/02 08:08:46 yS0 waiting...
07/02 08:09:06 yS0 wfr: waiting for ``RING''
07/02 08:09:06 yS0 send: ATA[0d]
07/02 08:09:06 yS0 waiting for ``CONNECT'' ** found **
07/02 08:09:26 yS0 send:
07/02 08:09:26 yS0 waiting for ``_'' ** found **
07/02 08:09:30 ##### data dev=ttyS0, pid=1967, caller='none',
conn='57600',
name='', cmd='/bin/login', user='sally'

--
07/02 08:10:04 yS0 mgetty: experimental test release 1.1.26-Apr16
07/02 08:10:04 yS0 check for lockfiles
07/02 08:10:04 yS0 locking the line
07/02 08:10:04 yS0 lowering DTR to reset Modem
07/02 08:10:05 yS0 send: \dATQ0V1H0[0d]
07/02 08:10:06 yS0 waiting for ``OK'' ** found **
07/02 08:10:06 yS0 send: ATS0=0Q0&D3&C1[0d]
07/02 08:10:06 yS0 waiting for ``OK'' ** found **
07/02 08:10:06 yS0 waiting...

I have created a user called ppp with out password

ppp:x:351:230ppclient:/home/ppp:/usr/sbin/pppd




/etc/mgetty+sendfax/mgetty.config
port ttyS0
speed 57600

login.config
/AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.server


I used "sally" and provide a password in the dial screen in 98 SE, it
dials
out and bring up a small screen as a normal login in linux, type in sally
and password, it does not allow me to use /usr/sbin/pppd/ then I have to
use
"su root" , execute /usr/sbin/pppd, all grabages characters, F7 to
continue,
then the login process breaks out.


would u please assist me and point me what is wrong here?
 
Old 07-06-2002, 07:35 AM   #6
pentium5
LQ Newbie
 
Registered: Jun 2002
Distribution: RH 7.2, 7.3 & SOLARIS
Posts: 5

Original Poster
Rep: Reputation: 0
any ideas?
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wanting to create a small linux back up server mysticpain Linux - Hardware 7 08-18-2004 04:15 PM
dial up ppp to my isp nazzymac Linux - Newbie 1 04-25-2004 11:11 AM
Installing Slackware over a serial port using ppp spyke555 Slackware - Installation 2 01-19-2004 09:56 AM
unresponsive serial port after ppp timeout? netKat Linux - Networking 0 12-26-2003 03:02 PM
PPP dial in server using Specilix Multiple Serial port In Linux 9.0 pawan Linux - Networking 0 09-17-2003 02:18 PM


All times are GMT -5. The time now is 04:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration