LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-01-2002, 08:01 AM   #1
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
netstat -M for 2.4 kernels


I used to have a 2.2 kernel on my server. Running netstat -M would show me all the masqueraded connections which I used a lot. I've got a 2.4 kernel on it now and the netstat -M won't work anymore. Netstat uses /proc/net/ip_masquerade for the -M switch. But I use iptables now so it doesn't exist anymore. I wrote a simple script which parses the output of /proc/net/ip_conntrack to show the masqueraded connections. But it's still not totally what I want because it doesn't resolve ip numbers like netstat -M used to do. I think it would be a bit of overkill and probably really slow if I would add name resolving to the script.
Just wondering if anyone else has run into the same problem and how they solved it.
 
  


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
netstat -s r_213 Linux - Networking 2 01-27-2005 06:45 AM
netstat -i r_213 Linux - Networking 4 09-09-2004 06:10 AM
netstat sopiaz57 Linux - Networking 1 10-14-2003 03:39 PM
netstat -l output help dai Linux - Security 2 07-02-2003 03:40 PM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM

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

All times are GMT -5. The time now is 03:52 PM.

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