On Thu, 11 Oct 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <(E-Mail Removed). com>, mbaroukh wrote:
NOTE: Posting from groups.google.com (or some web-forums) dramatically
reduces the chance of your post being seen. Find a real news server.
>I have to ssh to a client machine.
>I suppose there is a configuration problem on there firewall but I
>don't understand the following :
>
>their machine is on ip x.y.z.85.
>If I try ssh or telnet on port 22, I have : No route to host.
>I always thought this is a routing problem.
Use your favorite packet sniffer (tcpdump, ethereal, wireshark, or
what-ever) and see the packet exchange. Something like
your.host.IP:2939 -> x.y.z.85:22 SYN <mumble, mumble, fraz>
some.router -> your.host.IP:2939 ICMP Type 3 Code Something
Your system sends a SYN packet to start the conversation. Some router
sends back a refusal. Which router is telling you to sod off?
>What I don't understand is that, on the same ip, ping works.
Yes, some people don't know how to configure a firewall.
>So, for my comprehension, is it possible to have a routing that
>depends of the protocol ?
Sure. Read any of the HOWTOs that deal with firewall rules such as
85507 Aug 20 2001 Firewall-HOWTO
708351 Nov 14 2005 IP-Masquerade-HOWTO
17605 Jul 21 2004 Masquerading-Simple-HOWTO
203891 Sep 29 2004 NET3-4-HOWTO
278012 Jul 23 2002 Security-Quickstart-HOWTO
or the extensive HOWTOs available from the author of the Linux network
filtering code at
http://www.netfilter.org/documentation/HOWTO/. You
will find there are lots of ways to filter things.
Old guy