Your syslog shows correct connection in all cases.
So make sure the routing is set correctly.
You will need one default route to communicate with the web
Do: route -n
It should look something like this (this is my ppp dialin server)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.3 0.0.0.0 255.255.255.255 UH 0 0 0
eth0
192.168.100.150 0.0.0.0 255.255.255.255 UH 0
0
0 ppp0
192.168.100.0 0.0.0.0 255.255.255.0
U 0 0
0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U
0 0
0 lo
0.0.0.0 192.168.100.4 0.0.0.0
UG 0 0
0 eth0
192.168.100.3 is this ppp server
Gateway to the web is 192.168.100.4
Default route goes via gateway to the web (192.168.100.4)
192.168.100.150 is somebody dialed in
Routing table for the machine dialed into my dial in server:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.3 0.0.0.0 255.255.255.255 UH
0 0
71 ppp0
192.168.200.0 0.0.0.0 255.255.255.0
U 0 0
9292 eth0
127.0.0.0 0.0.0.0 255.0.0.0
U 0 0
626 lo
0.0.0.0 192.168.100.3 0.0.0.0 UG
0 0 752
ppp0
Default route goes via dial in server 192.168.100.3
This machine is a gateway to the Internet for the 192.168.200.0 network.
To get there do:
route -n
route del default
route del default # yes twice. Just in case
route add default gw <IP address of the server on the other side of your
dial in machine e.g. 196.22.199.3>
This should give you
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 196.22.199.3 0.0.0.0 UG 0
0 752 ppp0
You can also set default route when dialing up. Just add the word
"defaultroute" (without the " ") to your ppp options.
Also turn on IPV4 in
/etc/sysconfig/network
And do some masquerading on your ppp server
/sbin/ipchains -A forward -j MASQ -i ppp+ -s 192.168.100.0/24 -d 0.0.0.0/0
or (depends on distro and version used)
/sbin/ipfwadm -F -a m -S 192.168.100.0/24 -D 0.0.0.0/0
Hope this helps
Regards
Bernhard
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Paul Sullivan
Sent: Saturday, December 11, 1999 05:31
To: [EMAIL PROTECTED]
Subject: Linux PPP Server ?disfunctional?
Hi,
I've been battling to setup a linux box as a ppp server... I've followed
most of the material avaliable via the web (using the model where the ppp
client get's an address on the same subnet as the server and the server
does arp for it).
The Client (RH 6.0 - Kernel 2.2.7) dials in, authenticates to the server
(RH 6.0 - Kernel 2.2.13 - ppp 2.3.10) and both show ppp0 in ifconfig, but
they can't ping each other.
What I have noticed is that for each ping request from (say) the server
it's modem lights flash, and the TX packets increase by 1 - there is
however 100% packet loss. The client shows (for each ping request) an
increase in RX errors in it's ifconfig for the ppp0 interface.
Here's some more "odd" information. If a Win95 client is used the ppp
link to the linux server is 100%. If the linux client PC is used to dial
a commercial ISP this link is 100%. So... I don't *even* know whether the
problem is on the "client" or "server".
If anyone can help me I would appreciate it more than you could possibly
know. No-one that I've asked has been able to shed any light on the
matter.
I've included the relevant (I hope) sections of the ppp logs.
SERVER
Dec 10 13:17:47 mail modprobe: can't locate module char-major-108
Dec 10 13:17:47 mail pppd[735]: pppd 2.3.10 started by hphs, uid 501
Dec 10 13:17:47 mail pppd[735]: Using interface ppp0
Dec 10 13:17:47 mail pppd[735]: Connect: ppp0 <--> /dev/ttyS2
Dec 10 13:17:53 mail pppd[735]: user hphs logged in
Dec 10 13:17:53 mail pppd[735]: local IP address 196.22.199.3
Dec 10 13:17:53 mail pppd[735]: remote IP address 196.22.199.7
CLIENT - UNSUCCESSFUL CONNECTION TO LINUX SERVER
Dec 10 12:58:07 defiant pppd[6932]: pppd 2.3.7 started by root, uid 0
Dec 10 12:58:07 defiant pppd[6932]: Using interface ppp0
Dec 10 12:58:07 defiant pppd[6932]: Connect: ppp0 <--> /dev/ttyS1
Dec 10 12:58:07 defiant pppd[6932]: Warning - secret file /etc/ppp/pap-
secrets has world and/or group access
Dec 10 12:58:10 defiant pppd[6932]: Warning - secret file /etc/ppp/pap-
secrets has world and/or group access
Dec 10 12:58:13 defiant pppd[6932]: Remote message: Login ok
Dec 10 12:58:13 defiant modprobe: can't locate module ppp-compress-21
Dec 10 12:58:13 defiant modprobe: can't locate module ppp-compress-26
Dec 10 12:58:13 defiant modprobe: can't locate module ppp-compress-24
Dec 10 12:58:13 defiant pppd[6932]: local IP address 196.22.199.7
Dec 10 12:58:13 defiant pppd[6932]: remote IP address 196.22.199.3
CLIENT CONNECTING SUCCESSFULLY TO A COMMERCIAL ISP
Dec 10 13:15:40 defiant pppd[7032]: pppd 2.3.7 started by root, uid 0
Dec 10 13:15:40 defiant pppd[7032]: Using interface ppp0
Dec 10 13:15:40 defiant pppd[7032]: Connect: ppp0 <--> /dev/ttyS1
Dec 10 13:15:40 defiant pppd[7032]: Warning - secret file /etc/ppp/pap-
secrets has world and/or group access
Dec 10 13:15:40 defiant modprobe: can't locate module ppp-compress-21
Dec 10 13:15:40 defiant modprobe: can't locate module ppp-compress-26
Dec 10 13:15:40 defiant modprobe: can't locate module ppp-compress-24
Dec 10 13:15:40 defiant pppd[7032]: local IP address 196.7.206.67
Dec 10 13:15:40 defiant pppd[7032]: remote IP address 196.2.153.34
------------------------------------------------
Paul Sullivan
GSM 900: +27 82 7838996
Fax: +27 43 7264638
EMAIL: [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]