Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 10:21 AM
Chalawal Maliwan
 
Posts: n/a
Default Cannot traceroute from SCO through LINUX but from windows 2000

W2K (A) --------->
LINUX GATEWAY (C) --------> The
world
OSR5 (B) --------->X

From the illustration above,

(A) I could do both "ping" and "tracert" to the world from windows
2000.
(B) I could not "traceroute" from OSR5 to the world but I could "ping"
the world from OSR5.

What could cause this problem, as I know both "traceroute" and "ping"
are using icmp.


Thanks for any help,
Chalawal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 10:22 AM
Whoever
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

On 20 Aug 2003, Chalawal Maliwan wrote:

> W2K (A) --------->
> LINUX GATEWAY (C) --------> The
> world
> OSR5 (B) --------->X
>
> From the illustration above,
>
> (A) I could do both "ping" and "tracert" to the world from windows
> 2000.
> (B) I could not "traceroute" from OSR5 to the world but I could "ping"
> the world from OSR5.
>
> What could cause this problem, as I know both "traceroute" and "ping"
> are using icmp.
>

This is not true. Traceroute normally sends out UDP packets with a high
destination port number) and increasing TTLs. It then picks up the
resulting icmp replies (ttl exceeded).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 10:23 AM
Chalawal Maliwan
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

>
> Unreadable mess. Repackage for 80 column screens.


Sorry, I repackaged it again. please see below

OSR5 ->
LINUX (2IPs LAN+WAN) --> Internet
W2K ->

- I can ping the internet but not traceroute from OSR5
- I can do both ping and tracert from W2K to the Internet

> Can you traceroute from OSR5 to any of the local machines by IP
> address? If not, what error message do you get?
>

Yes, to others but not the LINUX LAN IP

> Can you traceroute from oSR5 to any of the local machines by machine
> name? If you can traceroute by IP, but not by machine name, check the
> contents of /etc/hosts and /etc/resolv.conf for name lookup problems.


Yes, but not the LINUX's machine name

> If both the above work, can you traceroute by IP address to any
> machine on the internet? Pick one that actually returns ICMP packets.
> If not, what error message do you get? If not, your Linux gateway is
> doing something to the packets.


No, so my linux is doing something to the package when the source IP
is from the OSR5 only?

> If you can traceroute to the internet by IP address, try it by name.
> If the name does not work, but the IP address does, your Linux gateway
> is doing something to DNS lookups.


The traceroute using name is given below

#traceroute mail.yahoo.com
traceroute to login.yahoo.akadns.net (66.163.171.128), 30 hops max, 40
byte pack
ets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
........

Thanks for your kind help,

Chalawal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-15-2008, 10:23 AM
Jeff Liebermann
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

On 21 Aug 2003 16:35:03 -0700, chalawal@hotmail.com (Chalawal Maliwan)
wrote:

>- I can ping the internet but not traceroute from OSR5
>- I can do both ping and tracert from W2K to the Internet
>
>> Can you traceroute from OSR5 to any of the local machines by IP
>> address? If not, what error message do you get?
>>

>Yes, to others but not the LINUX LAN IP


Since you need to go *THROUGH* the Linux gateway to get to the
internet, this is the first problem that needs to be solved. Let's
concentrate on this one. I forgot to ask:
Can you ping the Linux box from the OSR5 machine by IP address?
My guess(tm) is that you cannot.

Since the W2K box can probably (not sure) ping the Linux box, I'll
assume that the Linux box is properly configured. More questions:

Is the Linux box and OSR5 box on the same Class C subnet?
Are the subnet masks the same on all machines? (i.e. 255.255.255.0)
You can display those on OSR5 with:
ifconfig -a
or perhaps:
ifconfig net0
The "ffffff00" means 255.255.255.0

The W2K box will show the IP's in a "CMD" window with:
ipconfig
or:
ipconfig -a

The unspecified Linux mutation box will probably use:
/sbin/ifconfig

Compare the numbers, Class C IP blocks, and netmasks.

>> Can you traceroute from oSR5 to any of the local machines by machine
>> name? If you can traceroute by IP, but not by machine name, check the
>> contents of /etc/hosts and /etc/resolv.conf for name lookup problems.

>
>Yes, but not the LINUX's machine name


That's understandable since you also cannot traceroute to the Linux
box by IP address. If the IP address does not work, the name will
also not work. Let's ignore the DNS (name service) issues for now and
do everything with IP addresses. Once that is working, we may be
lucky and have the DNS lookups working.

>> If both the above work, can you traceroute by IP address to any
>> machine on the internet? Pick one that actually returns ICMP packets.
>> If not, what error message do you get? If not, your Linux gateway is
>> doing something to the packets.

>
>No, so my linux is doing something to the package when the source IP
>is from the OSR5 only?


No. I don't think so. Since you cannot DIRECTLY ping the Linux box,
you cannot route to it, send packets through it, or expect anything to
be returned from a remote internet host. Concentrate on why the OSR5
box cannot traceroute (or possibly cannot ping) the Linux box.


--
# Jeff Liebermann 150 Felker St #D Santa Cruz CA 95060
# 831.336.2558 voice http://www.LearnByDestroying.com
# jeffl@comix.santa-cruz.ca.us
# 831.421.6491 digital_pager jeffl@cruzio.com AE6KS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-15-2008, 10:23 AM
Whoever
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

On 21 Aug 2003, Chalawal Maliwan wrote:

> >
> > Unreadable mess. Repackage for 80 column screens.

>
> Sorry, I repackaged it again. please see below
>
> OSR5 ->
> LINUX (2IPs LAN+WAN) --> Internet
> W2K ->
>
> - I can ping the internet but not traceroute from OSR5
> - I can do both ping and tracert from W2K to the Internet
>
> > Can you traceroute from OSR5 to any of the local machines by IP
> > address? If not, what error message do you get?
> >

> Yes, to others but not the LINUX LAN IP
>

OK, I think I have the solution for you.

Microsoft tracert uses outgoing icmp packets. Most *nix systems use
outgoing UDP packets, with port numbers starting from 33434 and
incremented from there.

Perhaps the firewall on the Linux box is dropping the UDP traceroute
packets?

Try using tcpdump and see what traffic is on the LAN interface of the
Linux box when:
1. You do a tracert from the W2K box
2. When you do a traceroute from the OSR5 box.

Note there are also traceroute implementations that use TCP packets.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-15-2008, 10:24 AM
Chalawal Maliwan
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

> Since you need to go *THROUGH* the Linux gateway to get to the
> internet, this is the first problem that needs to be solved. Let's
> concentrate on this one. I forgot to ask:
> Can you ping the Linux box from the OSR5 machine by IP address?
> My guess(tm) is that you cannot.


I can

>
> Since the W2K box can probably (not sure) ping the Linux box, I'll
> assume that the Linux box is properly configured. More questions:
>
> Is the Linux box and OSR5 box on the same Class C subnet?
> Are the subnet masks the same on all machines? (i.e. 255.255.255.0)


They are all on the same class C subnet

>
> No. I don't think so. Since you cannot DIRECTLY ping the Linux box,
> you cannot route to it, send packets through it, or expect anything to
> be returned from a remote internet host. Concentrate on why the OSR5
> box cannot traceroute (or possibly cannot ping) the Linux box.


OSR5 can directly ping the LINUX box (Both LAN and WAN IPs) but cannot
traceroute through it

Thanks for your kind advise,

Chalawal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-15-2008, 10:24 AM
Jeff Liebermann
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

On 22 Aug 2003 18:55:35 -0700, chalawal@hotmail.com (Chalawal Maliwan)
wrote:

>> Since you need to go *THROUGH* the Linux gateway to get to the
>> internet, this is the first problem that needs to be solved. Let's
>> concentrate on this one. I forgot to ask:
>> Can you ping the Linux box from the OSR5 machine by IP address?
>> My guess(tm) is that you cannot.

>
>I can


So much for that guess. That might mean that the Linux box is either
not responding to UDP/ICMP traceroute packets possibly because you
have some kind of misconfigured firewall (IPChains, IPFilters) running
on the Linux LAN port. Without detailed knowledge of the Linux
configuration I have no way to determine exactly what is happening.

Dumb questions:
Can the OSR5 box ping the W2K box by IP address?
Can it traceroute the W2K box by IP address?

>OSR5 can directly ping the LINUX box (Both LAN and WAN IPs) but cannot
>traceroute through it


The real mystery is why the W2K tracert works and the OSR5 traceroute
does not. One would therefore suspect the OSR5 box. However, there
is no guarantee that the OSR5 box uses exactly the same traceroute
mechanism as W2K.

I'm not sure what to do next. Packet sniffing is my favorite tool.
Without additional information (exact error messages, version numbers,
Linux incantation, IP addresses, etc), there's not much that I can do
from here. Sorry.


--
# Jeff Liebermann 150 Felker St #D Santa Cruz CA 95060
# 831.336.2558 voice http://www.LearnByDestroying.com
# jeffl@comix.santa-cruz.ca.us
# 831.421.6491 digital_pager jeffl@cruzio.com AE6KS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-15-2008, 10:24 AM
Bela Lubkin
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

Chalawal Maliwan wrote:

[quoting Jeff Liebermann:]

> > Since you need to go *THROUGH* the Linux gateway to get to the
> > internet, this is the first problem that needs to be solved. Let's
> > concentrate on this one. I forgot to ask:
> > Can you ping the Linux box from the OSR5 machine by IP address?
> > My guess(tm) is that you cannot.

>
> I can
>
> > Since the W2K box can probably (not sure) ping the Linux box, I'll
> > assume that the Linux box is properly configured. More questions:
> >
> > Is the Linux box and OSR5 box on the same Class C subnet?
> > Are the subnet masks the same on all machines? (i.e. 255.255.255.0)

>
> They are all on the same class C subnet
>
> > No. I don't think so. Since you cannot DIRECTLY ping the Linux box,
> > you cannot route to it, send packets through it, or expect anything to
> > be returned from a remote internet host. Concentrate on why the OSR5
> > box cannot traceroute (or possibly cannot ping) the Linux box.

>
> OSR5 can directly ping the LINUX box (Both LAN and WAN IPs) but cannot
> traceroute through it


I haven't seen anyone ask you what happens if you `traceroute -n` from
the OSR5 box. DNS issues can cause `traceroute` to appear to be failing
when in fact it is succeeding, but getting hung up looking for the name
of the machine whose reply packet it received.

I know you don't think you have DNS issues, but try it anyway.

>Bela<

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-15-2008, 10:25 AM
Chacrint Charinthorn
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

Hi, sorry for my late response.

> Microsoft tracert uses outgoing icmp packets. Most *nix systems use
> outgoing UDP packets, with port numbers starting from 33434 and
> incremented from there.
>
> Perhaps the firewall on the Linux box is dropping the UDP traceroute
> packets?


Yes, I think that's the reason!
My iptables config on my linux machine shows that it's blocking the
ports of the UDP packets' range. Tell me if I am right.

*filter
:INPUT ACCEPT [902:59959]
:FORWARD ACCEPT [24:1928]

>
> Try using tcpdump and see what traffic is on the LAN interface of the
> Linux box when:
> 1. You do a tracert from the W2K box
> 2. When you do a traceroute from the OSR5 box.
>
> Note there are also traceroute implementations that use TCP packets.


I tried using sniffer pro on my windows box and it shows that, from
OSR5, traceroute was using UDP packets starting from 33434.

traceroute using TCP? I saw there was an option -I on LINUX to change
from sending UDP packets to ICMP Echo but not on OSR5.

Thanks for your help,

Chalawal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-15-2008, 10:25 AM
Whoever
 
Posts: n/a
Default Re: Cannot traceroute from SCO through LINUX but from windows 2000

On 27 Aug 2003, Chacrint Charinthorn wrote:

> Hi, sorry for my late response.
>
> > Microsoft tracert uses outgoing icmp packets. Most *nix systems use
> > outgoing UDP packets, with port numbers starting from 33434 and
> > incremented from there.
> >
> > Perhaps the firewall on the Linux box is dropping the UDP traceroute
> > packets?

>
> Yes, I think that's the reason!
> My iptables config on my linux machine shows that it's blocking the
> ports of the UDP packets' range. Tell me if I am right.
>
> *filter
> :INPUT ACCEPT [902:59959]
> :FORWARD ACCEPT [24:1928]


I don't recognize the syntax of the configuration above: I am used to
writing scripts that call iptables directly. Assuming the above refers to
UDP (which may be a bad assumption), I would guess, though, that you
should be able to traceroute to the Linux box (note I mean a traceroute
with the *endpoint* set as the Linux box), but not traceroute for anything
beyond the Linux box.

It might be clearer to post the results of the following command:
/sbin/iptables -L -n


There are a lot of tutorials about Netfilter/Iptables on the web. One
fundamental issue you need to understand about its operation is that the
INPUT chain only affects packets that have the Linux box as their
endpoint. Packets that should be forwarded do not go through the INPUT or
OUTPUT chains: instead they go through the FORWARD chain.

> > Note there are also traceroute implementations that use TCP packets.

>
> I tried using sniffer pro on my windows box and it shows that, from
> OSR5, traceroute was using UDP packets starting from 33434.
>
> traceroute using TCP? I saw there was an option -I on LINUX to change
> from sending UDP packets to ICMP Echo but not on OSR5.


It is a different program, called "tcptraceroute"


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552