Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page traceroute not wroking
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 06-12-2008   #1 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 2
traceroute not wroking

Hi,

I am connected to a school PC through ssh and I need to do a traceroute to a site... The problem is that when I do traceroute google.com (or any other site) I get something like this:

Code:
traceroute: Warning: google.com has multiple addresses; using 72.14.207.99
traceroute to google.com (72.14.207.99), 30 hops max, 52 byte packets
traceroute: sendto: Operation not permitted
 1 traceroute: wrote google.com 52 chars, ret=-1
 *traceroute: sendto: Operation not permitted
traceroute: wrote google.com 52 chars, ret=-1
And it goes on like this. I did some search and found out that I need to change the rules in IPTABLES or something (noob here). Whatever I tried with iptables it says this:

Code:
iptables v1.3.6: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Obviously I can't do anything about this and I'm supposed to do a traceroute and it supposedly should work.

Can anyone help me out?
vikerneso is offline   Reply With Quote
Old 06-12-2008   #2 (permalink)
Linux User
 
Join Date: Aug 2007
Location: England
Posts: 318
You wont be able to modify iptables unless you have root access to the PC. Since this is a school PC I don't think you will have?
__________________
My Blog
Linux User #453176
AMD Opteron(tm) Processor 146 (2.01GHz)
1GB Memory
GeForce 7600 GS (256 MB)
Kieren is offline   Reply With Quote
Old 06-13-2008   #3 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 7
traceroute, also, requires root to work. It is usually installed setuid root, but your school may have decided not to do this for security reasons (I recall my old university killed the setuid bit on 'ping' due to security concerns at one point).
julesh is offline   Reply With Quote
Old 06-13-2008   #4 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 2
Yeah, I know I can't modify iptables. But is there another way to do a traceroute without being root (or modifying iptables)?

This is an assignment I was given, and it's supposed to be doable.
vikerneso is offline   Reply With Quote
Old 06-13-2008   #5 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 7
I think the suggestion that you need to change your iptables setup is wrong. If you had a firewall rule preventing you sending traceroute packets, you wouldn't get an error message like you are; instead you'd see a lot of lines like:

1 * * *
2 * * *
3 * * *

etc. Traceroute depends on sending ICMP packets, which can only be done by root. Usually, the traceroute program is installed setuid root. I'd suggest asking your local system administrator why it hasn't been done this way, and if it can be switched back.
julesh is offline   Reply With Quote
Old 06-13-2008   #6 (permalink)
Linux Enthusiast
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: Pennsylvania
Posts: 515
Quote:
Originally Posted by vikerneso View Post
Yeah, I know I can't modify iptables. But is there another way to do a traceroute without being root (or modifying iptables)?

This is an assignment I was given, and it's supposed to be doable.

If this is an assignment from school then please go back to the person who assigned this to you and have them explain how you should proceed.

I am thinking that this is part of the lesson to figure out why it is not working and what would be the fix.

I see too many students too lazy to do their homework and want answers handed o them.
__________________

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



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




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0