- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- tracing ""out going traffic thru a port""
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2006 05:19 AM
08-20-2006 05:19 AM
how i have to proceed..
i dont have unix n/w programming idea.
but i want to learn .so pls kindly guide me..
byeeeeeee
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2006 06:15 AM
08-20-2006 06:15 AM
SolutionAssuming you are talking about TCP/IP port, you can use either a network traffic spy like tcpdump, or a packet filtering utility with logging capabilities like iptables.
=> tcpdump : just read the syntax and start it on an "ad-hoc" basis. Other utilities exist (ethereal, ...).
=> iptables : can be configured to finely tune permanent logging (and of course filtering) of TCP/IP traffic.
Example with iptables :
# Create a user-defined chain for logging
iptables -t filter -N LOG_OUTPUT
iptables -t filter -A LOG_OUTPUT -j LOG --log-level debug --log-prefix OUTPUT --log-tcp-sequence --log-tcp-options --log-ip-options
# Log outgoing traffic
iptables -t filter -A OUTPUT -j LOG_OUTPUT
Of course, the example above is not guaranteed "syntax error-free", and has to be customized.
Good lcuk.
Kodjo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 08:18 PM
08-21-2006 08:18 PM
Re: tracing ""out going traffic thru a port""
Also,
tcpdump -i eth0 port 22
Change the eth and port to something actual.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2006 08:26 PM
08-21-2006 08:26 PM
Re: tracing ""out going traffic thru a port""
well iptables is also OK but if you wanna exactly see one port and all posible information then tcpdump is best solution, there is also a posibility to store packets from tcpdump to files and then read them, for reading you can use wireshark(is more confortable).
So decide what you exactly need and how much space and time do you have.
Read man iptables and man tcpdump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2007 03:22 AM
02-11-2007 03:22 AM