1$Id: README,v 1.16 2007/11/24 13:18:48 danny Exp $ 2 3 4Description: 5------------------------------------------------------------------------------- 6Netstat-nat is a small program written in C. It displays NAT connections, 7managed by netfilter/iptables which comes with the > 2.4.x linux kernels. The 8program reads its information from '/proc/net/ip_conntrack' or 9'/proc/net/nf_conntrack', which is the temporary conntrack-storage of 10netfilter. (http://www.netfilter.org/) 11For any program options see sector 'Usage' section below. 12 13------------------------------------------------------------------------------- 14 15 16Compiling: 17------------------------------------------------------------------------------- 18See the INSTALL file 19 20------------------------------------------------------------------------------- 21 22 23Changelog: 24------------------------------------------------------------------------------- 25See the CHANGELOG file 26 27------------------------------------------------------------------------------- 28 29 30Usage: 31------------------------------------------------------------------------------- 32netstat-nat -h : displays help 33netstat-nat -n : displays NAT connections without 34 host/portname-resolving. 35netstat-nat -p <protocol> : diplays NAT connections with protocol 36 selection. (see /etc/protocols) 37netstat-nat -s <source-host> : display connections by source IP/hostname 38netstat-nat -d <dest-host> : display connections by destination IP/hostname 39netstat-nat -S : display SNAT connections 40netstat-nat -D : display DNAT connections 41 (default: both) 42netstat-nat -L : display only connections to NAT box self 43 (doesn't show SNAT & DNAT connections) 44netstat-nat -R : display only connections routed through NAT box self 45 (doesn't show SNAT & DNAT connections) 46netstat-nat -x : extend the view of the hostnames 47netstat-nat -r src|dst|src-port|dst-port|state : sort connections 48netstat-nat -o : strip output header 49netstat-nat -N : display NAT box connection information 50 (IP and port) for NATing iface 51 (only valid with SNAT & DNAT) 52netstat-nat -v : prints version 53 54------------------------------------------------------------------------------- 55 56 57Homepage: 58------------------------------------------------------------------------------- 59http://www.tweegy.nl/projects/netstat-nat/ 60 61------------------------------------------------------------------------------- 62 63 64Files: 65------------------------------------------------------------------------------- 66netstat-nat.c 67netstat-nat.h 68netstat-nat.1 69netstat-nat.spec 70COPYING 71README 72INSTALL 73AUTHORS 74CHANGELOG 75Makefile 76 77------------------------------------------------------------------------------- 78 79 80Thanks: 81------------------------------------------------------------------------------- 82Marceln for writing the man-page and making the v1.2 .rpm and src.rpm, which can 83be downloaded at his page. http://http://www.xs4all.nl/~marceln/rpm/ 84and for submitting a patch for v1.4.1 which removes unused variables, included 85a more understandable memory allocate error and making netstat-nat compatible 86with uLibC. 87 88Jose Pedro Oliveira <jpo@di.uminho.pt> for submitting a patch for the .spec file 89which fixes some rpmlint warnings. 90 91Gumundur D. Haraldsson <gdh@binhex.EU.org> for submitting a patch which does a 92more properly memory allocation and saver copies of variables. (merged in v1.4.3) 93 94Supaflyster for submitting patch for proper read-in on some systems and 95pointing out dnat over snat connections problem, which weren't shown in output. 96(v1.4.7) 97------------------------------------------------------------------------------- 98 99 100Contact: 101------------------------------------------------------------------------------- 102D.Wijsman danny@tweegy.nl 103 104------------------------------------------------------------------------------- 105 106