Erik Corry wrote:
> It might just be Netscape on Windows not trying for long
> enough, and timing out.  Diald might be slowing down the
> connect a little when compared with pppd (are you using
> dial on demand with pppd, or what?).
> 
> I wonder how your routing is set up when the link is up.
> The interface which the _kernel_ is routing the packets
> to should have the new source IP address.  If diald is
> taking the packets from one interface with a wrong source
> address and forwarding them through user space to another
> interface, then the kernel will never notice it needs
> to renumber.  On the other hand in this case I can't see
> how it would work at all.
> 
> It might help to send the output of
> 
>   cat /proc/version
>   ifconfig -a
>   route -n
> 
> when diald has started the interface so I can see what is
> happening.
> 
> --
> Erik Corry [EMAIL PROTECTED]           Ceterum censeo, Microsoftem esse delendam!

I am using demand dialing with pppd right now. I want to get diald
working so I can have different timeout periods for different
connections. I have been using telnet, ping, netscape, and ftp from my
linux box to test diald. I think you are right that my kernel doesn't
notice the need to renumber. With pppd and demand dialing, I
occasionally get messages like this in my logs, but never with diald:

Jun  7 10:41:38 debian kernel: tcp_v4_rebuild_header(): shifting
sk->saddr from 192.168.1.10 to 199.2.132.133 

The README.masq file in the diald 0.99 talks about using the "ip-up" and
"addroute" scripts to help with masquerading. Perhaps these would help
with my case as well?

Here is the output of cat /proc/version, ifconfig -a, and route -n.

This first output is from the first diald connection, which usually
works, and was working in this particular case:

debian:~# cat /proc/version
Linux version 2.2.9 (root@debian) (gcc version egcs-2.91.66 Debian
GNU/Linux (egcs-1.1.2 release)) #2 Thu Jun 3 14:41:29 PDT 1999
debian:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:A0:CC:41:93:3D  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1887 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3938 errors:0 dropped:0 overruns:0 carrier:0
          collisions:4 txqueuelen:100 
          Interrupt:11 Base address:0x6200 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:4373 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4373 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:199.2.132.133  P-t-P:199.2.132.20 
Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:63 errors:1 dropped:0 overruns:0 frame:1
          TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

sl0       Link encap:Serial Line IP  
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

debian:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
199.2.132.20    0.0.0.0         255.255.255.255 UH    0      0        0
ppp0
199.2.132.0     0.0.0.0         255.255.255.0   U     0      0        0
ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0
ppp0
debian:~# 

This is the output from the second try, which didn't work, giving
"Hostname lookup failure" and "network unreachable" errors:

debian:~# cat /proc/version
Linux version 2.2.9 (root@debian) (gcc version egcs-2.91.66 Debian
GNU/Linux (egcs-1.1.2 release)) #2 Thu Jun 3 14:41:29 PDT 1999
debian:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:A0:CC:41:93:3D  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1887 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3938 errors:0 dropped:0 overruns:0 carrier:0
          collisions:4 txqueuelen:100 
          Interrupt:11 Base address:0x6200 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:4373 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4373 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:199.2.132.104  P-t-P:199.2.132.3 
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:1 dropped:0 overruns:0 frame:1
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

sl0       Link encap:Serial Line IP  
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

debian:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
199.2.132.3     0.0.0.0         255.255.255.255 UH    0      0        0
ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
debian:~# 

-- 
_\\||//_____/|\ *    *    * Benjamin Diedrich 
-- {} -----/ | \  |\*   *   [EMAIL PROTECTED]
*//||\\ * /__|__\_|_\  *  * http://www.ugcs.caltech.edu/~diedrich/
//~||~\\~~\_________/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to