- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Network Monitoring
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
03-13-2003 07:44 PM
03-13-2003 07:44 PM
I've just installed a RH8 to serve as our 'jumpoff' box into a particular network. This box should serve as a gateway to numbers of other servers within a private network. I need to know how can I generate reports on the incoming as well as outgoing connections made to and from this box. I know the 'last' command gives me the details on the incoming connection, but what about the outgoing connection from my jumpoff box? Is there any command I can issue or do I have to use other tools. Anyone has any idea what tools best suits my requirement? Thank you.
Regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 08:08 PM
03-13-2003 08:08 PM
SolutionIf you want data counters, the 'firewall' (iptables) counts data that passes through it.
If you want traffic flow, whilst iptables can also 'log' details, you probably would be more interested in 'tcpdump'.
If you are just after how often someone runs 'telnet' and other individual commands, it'd probably be easiest to create wrapper scripts to do the work for you, creating logs that you require.
The 'last' command you gave the example of only shows login based on utmp/wtmp (basically telnet/ssh logins, and maybe ftp logins as well). If you are wanting to watch other protocols, this is not suitable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 10:44 PM
03-13-2003 10:44 PM
Re: Network Monitoring
Thank you for the input.
I'm interested in knowing who are making connection to other servers from this box, be it thru telnet,rsh,ssh,etc. You suggestion would be to create wrapper scripts. I'm pretty new to scripting and not really sure what you mean by that. Could you pls. elaborate. I'd appreciate your reply. Thanking you in advance.
Regards
Rosli Ahmad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 08:01 AM
03-14-2003 08:01 AM
Re: Network Monitoring
Another solution: set up iptables with logging to log only TCP connection initiation packets.
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2003 02:50 PM
03-16-2003 02:50 PM
Re: Network Monitoring
iptables -A OUTPUT -j LOG -m state --state NEW -p tcp --dport 22 --log-prefix "SSH Connection: "
would do good to create an SSH login to a remote service.
Change the log-prefix and the dport as suits for different protocols.. or just leave that off and manually parse it afterwards..