LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2002, 10:36 AM   #1
david0321
Member
 
Registered: Dec 2002
Posts: 32

Rep: Reputation: 0
Using Traceroute


i have been trying to use traceroute. When i type it in i get 1.*** to 30. ***. So I looked in iptables -L and it says that my icmp port is unreachable. Think that this is my problem but not sure how to fix it. It looks like the file iptables is a binary file so not sure how to edit it?

From what i know of iptables is that it is a set of rules to use for network activity.

How can I fix this or learn how to fix it.

Thanks
 
Old 12-22-2002, 04:47 PM   #2
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 31
Do you have any firewalling enabled (either IP chains or IP tables)?

Have you tried disabling it temporarily to test wither traceroute works with it turned off?
 
Old 12-22-2002, 08:59 PM   #3
darkknight_9
Member
 
Registered: Dec 2002
Distribution: Fedora Core 3
Posts: 34

Rep: Reputation: 15
I have problem launching traceroute .. I have it instaled but the terminal reports it as a unrecognized command .. I'm running KDE .. any idea what I can do ?

Thanks ..


Oh .. another thing .. is there anyway I can view the computers on the LAN grouped by Workgroup .. something like the "Network Neighbourhood" thing on Windows ? And is there a way to see the machines by name and not by their IP address ?

Last edited by darkknight_9; 12-22-2002 at 09:05 PM.
 
Old 12-23-2002, 04:18 AM   #4
david0321
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 0
darknight_9

traceroute is in /usr/sbin so it is not in your path to run it you need to do /usr/sbin/tracerroute
 
Old 12-23-2002, 04:24 AM   #5
david0321
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 0
rohang
I have a new install of rh8.0. unless a fire wall was installed by default one is not installled. And if it is have no idea how to shut it off to test.

i dual boot with windows i can switch to window and run traceroute just fine thought it might be the router stoping it.
 
Old 12-23-2002, 03:27 PM   #6
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Yah.. RH will install iptables in 'medium' mode by default.

Sounds like you've got yourself a script there.
You can disable it by :

1) at a prompt type setup
2) select Firewall Configuration
3) Select No Firewall
4) traceroute something

Once you've established that it's running you might want to look closer at your icmp settings. I'm not sure that the default iptables setup looks like, but I expect it'll be filtering icmps in, but contain settings for icmp originating from your side - letting them in.

Many scripts filter based on ip address aswell, common ones include the private ip subnets of

10.x.x.x
192.168.x.x

Now, you *shouldnt* be expecting incoming from those ip's because they *shouldn't* be routing across the internet. However, many cable companies for instance, use the 10.x subet for their cable modems (the actual modem) and if you block *everything* from 10.x addresses, and 192.168.x.x addresses then your cable modem won't talk to you.

So, unblock those, and ensure it still works, and then if you're paranoid, put back blocks for services you don't want.

Slick.
 
Old 12-23-2002, 07:31 PM   #7
david0321
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 0
SlickWilly

Thanks for your reply.

I did as you suggested and turned off the firewall. Still get the 1.*** 2.*** and so on when i run traceroute? Bout to pull my hair out on this one. I did a iptables -L and there is a message that says the icmp port is unreachable. I got to figure that somewhere there is somthing blocking traceroute.

Guess i'll look for a iptables & ipchains howto and see if i can find any information about this. Any thing eles that i might try would be appreciated.

Thanks again
 
Old 12-24-2002, 11:20 AM   #8
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Looks like you're using a configured script then.

If you do an iptables -L and it's showing filters then your firewall is still up.

You can try :

iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD

which will flush your table rules. It won't flush any tables created which aren't standard tables though, but they'll be hanging off those above, so that should sort you out.

Reading about this is definately encouraged, and if you find where your iptables script is running, posting the script would also be useful.

Slick.
 
Old 12-25-2002, 07:02 AM   #9
david0321
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 0
slick

i tried the iptables -F INPUt and that did not work. Sending what this looks like in the hope it may help. It seems that it should work but something is still blocking it or will not send a icmp packet.

[root@localhost david]# /usr/sbin/traceroute adams.net
traceroute to adams.net (216.138.0.16), 30 hops max, 38 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *

Then when i run iptables -L i get This is after the firewall has been shut down in setup.

[root@localhost david]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Old 12-25-2002, 04:09 PM   #10
david0321
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 0
Well someone else told me to try traceroute -I. That works with the firewall on or off. The -I switch forces the use of icmp packets. Traceroute without the -I switch will use udp packets. Ping I think also uses icmp packets?

It works ok but not sure why. Need to do some reading to figure it out.

Anyone that knows what How to's to read or what area to look in let me know.

Thanks
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
traceroute overproof Linux - Newbie 5 02-01-2015 05:30 PM
traceroute - help? ocset Linux - Networking 6 10-15-2004 03:34 PM
Using Traceroute lapthorn Linux - Networking 3 06-30-2004 05:39 AM
traceroute becky_starr Linux - Networking 1 03-17-2004 08:48 AM
traceroute mint567 Linux - Networking 3 11-23-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration