(E-Mail Removed) wrote:
> Hey! I am new to linux...very new,so help me plz. My name is Rohan.
> I am in India and my ISP is Reliance.Well after a long hog through
> net-help pages, i finally setup the pppd connection (thanks to "How to
> hook up PPP in Linux" by W.G. Unruh)...
> but well i cannot access sites by their NAMES.
> Though I did PING the ISP server and got a response so my connections
> fine i hope.I directed the output of pppd to ppplog and lifted the DNS
> IPs from there...but they dont work - i get an unkown host message.
> Grateful if you could help me...thanks
> Here's some of the ppplog file: (i put ####=where i lifted the DNS
> from)
> Jul 2 03:20:36 localhost pppd[4183]: pppd 2.4.1 started by root, uid
> 0
> Jul 2 03:20:37 localhost pppd[4183]: Serial connection established.
> Jul 2 03:20:37 localhost pppd[4183]: using channel 12
> Jul 2 03:20:37 localhost pppd[4183]: Using interface ppp0
> Jul 2 03:20:37 localhost pppd[4183]: Connect: ppp0 <-->
> /dev/input/ttyACM0
LCP negotiation and PAP authentication looked okay.
<snip>
> ####### Here's the DNS
> Jul 2 03:20:43 localhost pppd[4183]: rcvd [IPCP ConfNak id=0x1 <addr
> 220.226.56.170> <compress VJ 0f 00> <ms-dns1 202.138.103.100> <ms-dns3
> 202.138.96.2>]
> Jul 2 03:20:43 localhost pppd[4183]: sent [IPCP ConfReq id=0x2 <addr
> 220.226.56.170> <compress VJ 0f 00> <ms-dns1 202.138.103.100> <ms-dns3
> 202.138.96.2>]
> Jul 2 03:20:43 localhost pppd[4183]: rcvd [CCP ConfRej id=0x1 <deflate
> 15> <deflate(old#) 15> <bsd v1 15>]
The ISP rejects all CCP algorithms requested by pppd, very common.
> Jul 2 03:20:43 localhost pppd[4183]: sent [CCP ConfReq id=0x2]
So pppd proposes opening CCP without any compression.
> Jul 2 03:20:43 localhost pppd[4183]: rcvd [IPCP ConfAck id=0x2 <addr
> 220.226.56.170> <compress VJ 0f 00> <ms-dns1 202.138.103.100> <ms-dns3
> 202.138.96.2>]
Just in case you don't know, DNS name server IP addresses need to be
configured this way in /etc/resolv.conf:
nameserver <IP address>
See man 5 resolver for other things that can be set in resolv.conf.
The existing resolv.conf may also have examples in it.
> ##### The DNS, IP.
> Jul 2 03:20:43 localhost pppd[4183]: local IP address 220.226.56.170
> Jul 2 03:20:43 localhost pppd[4183]: remote IP address 97.236.2.16
> Jul 2 03:20:43 localhost pppd[4183]: primary DNS address
> 202.138.103.100
> Jul 2 03:20:43 localhost pppd[4183]: secondary DNS address
> 202.138.96.2
> ##### And the rest of it (greek to me :-) )
> Jul 2 03:20:43 localhost pppd[4183]: Script /etc/ppp/ip-up started
> (pid 4213)
> Jul 2 03:20:43 localhost pppd[4183]: rcvd [CCP ConfNak id=0x2 < 12 06
> 00 00 00 01>]
^^
> Jul 2 03:20:43 localhost pppd[4183]: sent [CCP ConfReq id=0x3]
> Jul 2 03:20:44 localhost pppd[4183]: rcvd [CCP ConfNak id=0x3 < 12 06
> 00 00 00 01>]
^^
This isn't good. The peer Naks the pppd requests to open CCP without any
compression and suggests that pppd send data using the MS-PPC (Microsoft
Point to Point Compression, aka MPPC) CCP (Compression Control Protocol)
algorithm in which compression and/or Microsoft Point to Point Encryption
(MPPE) can be requested. Technically both are optional but in practice
a request (or suggestion as above) to send MPPC compressed data must be
accepted by the peer in almost all cases. See RFC 2118.
The problem is that MPPC compression is patented and requires a license
so the standard pppd doesn't implement it, although it does implement
most of the variations of MPPE. The 01 tagged with "^^" at the end of
the ConfNak lines above shows the peer wants compression, so pppd cannot
accept the suggestion in the Conf-Naks. Not accepting it is almost sure
to cause the PPP link negotiations to fail or the link not to be viable.
Confusing? Yes, but the bottom line is that even though IP addresses
are negotiated it's very doubtful that the PPP link is viable (with
the probable exception of ICMP messages, notably ping echo-requests
and echo replies).
There may be sites where a pppd modified to use MPPC compression,
or a pppd patch for MPPC compression, is freely available. Just be
aware that, at least in the U.S., it's not legal to implement MPPC
compression without a license.
> Jul 2 03:20:44 localhost pppd[4183]: sent [CCP ConfReq id=0x4]
> Jul 2 03:20:44 localhost pppd[4183]: Script /etc/ppp/ip-up finished
> (pid 4213), status = 0x0
> Jul 2 03:20:44 localhost pppd[4183]: rcvd [CCP ConfNak id=0x4 < 12 06
> 00 00 00 01>]
Here pppd sends yet another request to open CCP without any compression
(in order to complete CCP negotiations). But the peer NAKs the request,
suggesting MPPC again. More of this nonsense follows.
> Jul 2 03:20:44 localhost pppd[4183]: sent [CCP ConfReq id=0x5]
> Jul 2 03:20:44 localhost pppd[4183]: rcvd [CCP ConfNak id=0x5 < 12 06
> 00 00 00 01>]
> Jul 2 03:20:44 localhost pppd[4183]: sent [CCP ConfReq id=0x6]
> Jul 2 03:20:44 localhost pppd[4183]: rcvd [CCP ConfNak id=0x6 < 12 06
> 00 00 00 01>]
> Jul 2 03:20:44 localhost pppd[4183]: sent [CCP ConfReq id=0x7]
> Jul 2 03:20:44 localhost pppd[4183]: rcvd [CCP ConfRej id=0x7 < 12 06
> 00 00 00 01>]
> Jul 2 03:20:44 localhost pppd[4183]: Received bad configure-nak/rej:
> 12 06 00 00 00 01
A ConfRej cannot also contain a suggestion for a particular CCP.
> Jul 2 03:20:47 localhost pppd[4183]: sent [CCP ConfReq id=0x7]
> Jul 2 03:20:47 localhost pppd[4183]: rcvd [LCP ProtRej id=0x3 80 fd 01
> 07 00 04]
Here the ISP rejects the CCP _protocol_ and then, inexplicably, continues
trying to negotiate with it. Note that pppd now stops CCP negotiation
since the peer rejected CCP.
> Jul 2 03:20:53 localhost pppd[4183]: rcvd [CCP ConfReq id=0x4 < 12 06
> 00 00 00 01> < 11 05 00 01 04> < 11 05 00 01 03> < 11 06 00 01 01 01>]
At this point the ISP should have stopped CCP negotiation but instead
it begins sending CCP requests for pppd to use either MPPC compression
or one of three varieties of STAC compression. STAC compression is also
patented and is not implemented in the standard pppd.
> Jul 2 03:20:56 localhost pppd[4183]: rcvd [CCP ConfReq id=0x5 < 12 06
> 00 00 00 01> < 11 05 00 01 04> < 11 05 00 01 03> < 11 06 00 01 01 01>]
Ect.
<snip>
These seem to be your choices: Change to another ISP or convince the
present ISP to not use CCP, find a PPP implementation that runs under
Linux and includes MPPC compression, find a MPPC compression patch for
pppd, or use an OS whose PPP implementation includes MPPC compression,
e.g., Microsoft. :/
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"