Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-02-2005, 10:40 PM   #1
LQ Newbie
Registered: Aug 2004
Distribution: Fedora Core 3
Posts: 11

Rep: Reputation: 0
Monitoring Packets And More

I am a college student, and trying to setup iptables so I can use direct connect (with dctc). The DC++ FAQ has some information about what I need to tell iptables to do (sorry, I don't have enough posts to include URLs), but before I can set this up I'll need to find out my external ip, router ip, and client ip. I contacted my residential computing department, and they politely informed me that they couldn't help me get this information because of the potential for illegal file sharing, so I need to find out this information myself (it seemed clear from the e-mail that this would be OK as long as they didn't help me explicitly).

I'm guessing that I can find out the router ip by monitoring where the packets my computer gets are sent from. Is this correct? If so, how would I do this?

I'm not really sure what is meant by the terms "external ip" and "client ip," but I'm guessing that one or both of these is given in the output of ifconfig, but I'm not sure what these would be labelled. What do these terms mean, and how can I find them out?
Old 03-03-2005, 03:25 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Use ifconfig to see which networkinterfacecards (NIC) are up and which ip, subnet they have.
You can also use iplooks to check out the packeets runing around on your computer.

The terms external IP refers to the ip that users on the inet see your computer as. The internal/client ip is the ip of your nic.

Would be nice if you laied out how you connect to the net. Either using pppd or pppoe.
Old 03-03-2005, 10:47 AM   #3
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
try "route -n" to see your default gateway. The default gateway is probably your routers internal ip.
Check your external ip by visiting


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
IV packets kyd Linux - Networking 1 07-30-2005 12:21 PM
packets sent VS packets received fsasya Linux - Networking 0 07-18-2004 07:11 PM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
anybody know what these packets are ? Linux - Security 3 03-25-2003 03:17 AM
packets per second ixion Linux - Networking 1 01-28-2003 06:28 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:24 AM.

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