Re: demand dialing



Moe Trin <ibuprofin@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Clifford!
:)
On Sun, 5 Aug 2007, in the Usenet newsgroup comp.os.linux.networking,
in article <4ob59f.u71.ln@xxxxxxxxxxxxxxxxxxxx>, Clifford Kite wrote:

Are you still in contact with Paul? As this is a Linux only mode, I'm
not sure James would be interested.

No, I dropped out of the linux-ppp mailing list some time ago and haven't
been in a hurry to get back in - it seemed to generate a lot of spam.

The only other reason I know that might cause that message appearing
instantly with a default route present is the absence of nameservers
in resolv.conf.

I'm not so sure - the original posting said:

]>% ping foo.com
]>Host unreachable. <-- instant

A DNS problem would be "unknown host", would it not? "Host Unreachable"
says that it knows an IP, but either the gateway is dead, or the
destination host (or something in-between)is returning an ICMP Unreachable.

I think the message is whatever the coder (or whomever) wants it to be.
And yes, I'm more comfortable with "unknown host" in cases where a FQDN
cannot be resolved but if the FQDN can't be resolved then the host is
also unreachable.

'(outbound and not (icmp[0] = 3))'

so that the timer ignores inbounds and any ICMP Type 3 (unreachable) in
either direction.

I'm not sure what you have in mind but there doesn't seem to be a type 3
for code 0, only a type 0. Stevens Vol 1..

Blame that on the confusion surrounding the tcpdump man page.

I think I'll blame my preceding remark on _my_ confusion. You are right,
it has to be icmp(0)=type and icmp(1)=code.

I'm reading
that '[0]' as the byte offset relative to the protocol layer, hence the
example

To print all ICMP packets that are not echo
requests/replies (i.e., not ping packets):
tcpdump 'icmp[0] != 8 and icmp[0] != 0"

Which is correct. Tcpdump expressions always did give me a headache.

FYI, the tcpdump man pages here (April 2005) explain the usage better
and introduce names that can be used as arguments. In particular above
example is presented as

To print all ICMP packets that are not echo
requests/replies (i.e., not ping packets):
tcpdump 'icmp[icmptype] != icmp-echo and icmp[icmptype] != icmp-echoreply'

Are we having fun yet? ;-)

:%P

--
Clifford Kite
/* "They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." Benjamin Franklin */

.



Relevant Pages

  • Re: Do I Have A Firewalled LAN Run By ISP In Between?
    ... from that host while at host ... running a layer within a layer, with a complex network address translation ... application called "Internet Connection Sharing". ... what those packets are for, ...
    (comp.security.firewalls)
  • Re: IP over RS232 serial port under QNX6 (devn-fd.so)
    ... Now i can 'ping' and receive correct answers from the remote host. ... Now i want to setup the TCP/IP stack on top of the serial port. ... When i 'ping' to the destination endpoint 10.0.0.185 from the source ... These packets were correct ARP-Broadcasts ...
    (comp.os.qnx)
  • Re: Duplicate Echo Replies with Channel Bonding
    ... In this mode both interfaces receive packets, ... >When both eth0 and eth1 are up and I ping from Host C to Host A I get ... >The destination network 192.168.120.0/24 exists on both Router A and ... Switch B does not have the MAC address in its MAC address table ...
    (RedHat)
  • Re: Yet another thread on the legality of port scanning
    ... Which portthe packets are sent to is ... If I do a "nice", normal portscan on a host - via TCP, UDP or ICMP I am ... This sort of behavior is ... If I try to flood your host with abnormally LARGE ICMP packets endlessly ...
    (Security-Basics)
  • Re: [RFC v1] virtio: add virtio-over-PCI driver
    ... symmetry, but it didn't seem to offer any concrete advantages, so we didn't ... single x86 computer (the host) and many guest systems. ... This way you just recv packets in the ...
    (Linux-Kernel)