RR <(E-Mail Removed)> wrote:
> Hi Clifford,
> Thanks for your reply.
>> The 212.7.16.130 IP address is picked up by pppd from a LAN interface
>> on the machine that requested it. Add the pppd option noipdefault to
>> prevent that (more below). Doing that may solve the problem. "May"
>> because I haven't done PPP over a ssh connection and there are many
>> things in your post that I don't feel qualified to comment on.
> I think you were correct or close to it here. I fixed the problem by
> telling the remote end what IP addresses to use:
> ********
> /usr/sbin/pppd novj novjccomp logfile /tmp/pppd.log debug updetach \
> noauth nobsdcomp nodeflate passive \
> pty '/usr/bin/ssh -P -C -i /home/vpntest/.ssh/id_vpntest \
> 212.7.16.130 -lvpntest \
> -o BatchMode=yes sudo \
> /usr/sbin/pppd novj novjccomp logfile /tmp/pppd.log nodetach \
> notty noauth nobsdcomp nodeflate debug ipparam vpntest
> 212.7.16.131:10.1.1.99' \
> ipparam vpntest,10.1.0.0/16,212.7.16.0/24 10.1.1.99:212.7.16.131
> **********
> The addition is the switch of the local and remote IP addresses on the
> second last line above (after "debug ipparam vpntest").
> Now, the negotiation completes.
Okay, that's in agreement with what you appeared to want anyway.
>> The PPP link negotiations are not affected by the firewall in any way.
> Thanks for confirming this.
>> > The 10.1.1.99 computer seems to be sending and receiving packets
>> > to/from itself, as does the 212.7.16.131 computer?
>>
>> No, at least I saw no evidence in the logs that was happening. What makes
>> you think it was?
> The log on 10.1.1.99 has this:
> ************************************
> sent [IPCP ConfReq id=0x1 <addr 10.1.1.99>]
> rcvd [IPCP ConfReq id=0x1 <addr 212.7.16.130>]
> sent [IPCP ConfNak id=0x1 <addr 212.7.16.131>]
> rcvd [IPCP ConfAck id=0x1 <addr 10.1.1.99>]
> ************************************
> So, here's my reasoning:
> 1. Assume "sent" shows the IP address the packet is sent "to":
> then 10.1.1.99 is sending to itself (line 1).
No, it's sending an IPCP request to the remote host for permission
to *use* the IP address 10.1.1.99 for itself the over PPP data link
when it's established.
> 2. Assume "sent" shows the IP address the packet is sent "from":
> then 10.1.99 is sending a packet and showing itself as
> "212.7.16.131" (line 3).
The ConfNak is a refusal to accept the remote's request to use the
IP address 212.7.16.130, in the preceding ConfReq received (rcvd)
from the remote. The ConfNak also contains a suggestion as to which
IP address the local host wants the remote to request, 212.7.16.131 in
this case. When you switched to 10.1.1.99:212.7.16.131 the Nak went
away since the remote accepted it instead of using it's LAN IP address
to negotiate with.
> #2 seems less likely, so I conclude #1.
Sorry, you're a bit confused. The local and remote hosts aren't sending
to or from the IP addresses; they are negotiating which IP addresses
will be used once the PPP link comes up for IP data at the end of the
PPP negotiations. Then, and only then, they will be IP address that are
IP datagrams are send "to" or "from" over the PPP link.
> 3. Assume "rcvd" shows the IP address the packet is sent "to":
> then 10.1.1.99 has received a packet addressed to "212.7.16.130"
> (line 2).
> 4. Assume "rcvd" shows the IP address the packet is sent "from":
> then 10.1.99 is has received a packet from itself (line 4).
> #3 seems less likely, so I conclude #4.
See my preceding comments for 1) and 2).
> Either the meanings of the IP addresses shown are changing, or I'm
> very confused. :-)
These are two hosts _negotiating_ the IP address each will use _after_
the PPP negotiations complete and IP data can be sent and received via
the network-layer using the addresses.
> I guess the meaning of the IP address could be related to the type
> of packet (ConfReq is different from ConfAck, etc), but I'm still
> not clear what it's telling me.
> Anyway, thanks for your help. I still haven't got this working,
> but the negotiation is completing and I think I've just got problems
> with firewall rules now.
> If you can clarify the log entry IP address information, I would
> be very grateful.
I've tried to clarify the log messages, but if I've failed, you might
try reading RFC 1661 and RFC 1332 - they describe PPP negotiation in
general and IPCP NCP negotiation in particular, respectively.
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads:
http://ckite.no-ip.net/
/* 97.3% of all statistics are made up. */