Debian Codegraph @

README

raw
1 Description:
2 -------------------------------------------------------------------------------
3 netstat-nat is a small program written in C. It displays connections,
4 accounted by netfilter which comes with ≥2.6.15 linux kernels.
5 The program reads its information from '/proc/net/nf_conntrack',
6 which is the temporary conntrack-storage of netfilter.
7 (http://www.netfilter.org/)
8
9 This is most useful for NAT gateways/copies of the aforementioned therefrom,
10 but connections made to/from the current host can be examined as well (-LR).
11 -------------------------------------------------------------------------------
12
13
14 -ng:
15 -------------------------------------------------------------------------------
16 https://sr.ht/~nabijaczleweli/netstat-nat-ng
17 https://todo.sr.ht/~nabijaczleweli/netstat-nat-ng
18 (report at <mailto:~nabijaczleweli/[email protected]>)
19 https://lists.sr.ht/~nabijaczleweli/netstat-nat-ng
20 <mailto:~nabijaczleweli/[email protected]>
21
22 The git history includes imports of all historical tarballs
23 (https://web.archive.org/web/20180104143740/http://www.tweegy.nl/projects/netstat-nat/),
24 with the changelog distributed in the tags.
25 The tags also have contributors added, if credited in the 1.4.10 README
26 (they were not credited contemporaneously).
27
28 Release tarballs are signed with [email protected]
29 (pull with WKD, but 7D69 474E 8402 8C5C C0C4 4163 BCFD 0B01 8D26 58F1).
30 аnd stored in git notes as-if via the example program provided at
31 https://man.sr.ht/git.sr.ht/#signing-tags-tarballs
32 and are thus available on the refs listing/tag page as .tar.gz.asc.
33 -------------------------------------------------------------------------------
34
35
36 Usage:
37 -------------------------------------------------------------------------------
38 netstat-nat [-no] [-x|-X[width]] {[-G] [-S|-D]}|[-L|-R]
39 [-s ource]... [-d estination]... [-g ateway]... [-p rotocol]...
40 [-r src|dst|src-port|dst-port|state|gate|gate-port] [nf_conntrack]
41
42 Consult the manual for specifics.
43 https://ra.ws.co.ls/~nabijaczleweli/netstat-nat-ng/blob/man/netstat-nat-ng.pdf
44 -------------------------------------------------------------------------------
45
46
47 Examples:
48 -------------------------------------------------------------------------------
49 On a gateway:
50
51 # netstat-nat
52 Proto NATed Address Destination Address State
53 icmp 10.179.163.88 tarta.nabijaczleweli.xyz
54 icmp 10.200.233.12 tarta.nabijaczleweli.xyz
55 tcp 10.32.144.39.host.securi:63770 tarta.nabijaczleweli.xyz:https TIME_WAIT
56 tcp 10.32.144.39.host.securi:64361 tarta.nabijaczleweli.xyz:http TIME_WAIT
57 tcp 10.72.217.111:33864 tarta.nabijaczleweli.xyz:5900 TIME_WAIT
58 tcp 10.72.217.111:39074 tarta.nabijaczleweli.xyz:5900 TIME_WAIT
59 tcp nabijaczleweli.nabijaczl:20985 lb-10-268-216-78-iad.git:https ESTABLISHED
60 tcp nabijaczleweli.nabijaczl:21047 waw07s05-in-f4.1e100.net:http TIME_WAIT
61 tcp nabijaczleweli.nabijaczl:20751 waw07s05-in-f14.1e100.ne:https ESTABLISHED
62 tcp nabijaczleweli.nabijaczl:17906 101010.pl:https ESTABLISHED
63 tcp 192.168.1.136:38216 lt-in-f188.1e100.net:5228 ESTABLISHED
64 tcp 192.168.1.136:38330 lt-in-f188.1e100.net:5228 ESTABLISHED
65 tcp 192.168.1.136:39972 lt-in-f188.1e100.net:5228 ESTABLISHED
66 tcp 192.168.1.136:40092 lt-in-f188.1e100.net:5228 ESTABLISHED
67 udp rozbian.nabijaczleweli.x:46115 10.158.103.58:https ASSURED
68 udp rozbian.nabijaczleweli.x:42560 10.69.17.108:https ASSURED
69 udp rozbian.nabijaczleweli.x:44786 10.140.3.34:https ASSURED
70 udp rozbian.nabijaczleweli.x:47079 10.140.3.34:https UNREPLIED
71 udp 192.168.1.185:3076 ec2-10-213-30-29.eu-cent:https ASSURED
72 udp tarta.nabijaczleweli.xyz:39517 ns-153.awsdns-19.com:domain
73 udp tarta.nabijaczleweli.xyz:16829 ns-1007.awsdns-61.net:domain
74 udp tarta.nabijaczleweli.xyz:46874 ns-1411.awsdns-48.org:domain
75
76
77 On a client:
78
79 # netstat-nat -LnX21
80 Proto Source Address Destination Address State
81 tcp [::1]:49118 [::1]:9928 TIME_WAIT
82 tcp [::1]:50624 [::1]:80 ESTABLISHED
83 tcp 10.221.132.191:35862 192.168.1.250:5900 TIME_WAIT
84 tcp 127.0.0.1:34030 127.0.0.1:8213 TIME_WAIT
85 tcp 127.0.0.1:52476 127.0.1.1:3493 ESTABLISHED
86 tcp 10.176.163.40:51167 192.168.1.250:443 TIME_WAIT
87 tcp 10.62.134.22:23178 192.168.1.250:80 SYN_RECV
88 tcp 10.62.134.22:47444 192.168.1.250:80 SYN_RECV
89 udp 127.0.0.1:42738 127.0.0.1:323
90 udp 127.0.0.1:44850 127.0.0.1:5353
91 udp 127.0.0.1:46444 127.0.0.1:53 ASSURED
92 udp 192.168.1.144:20407 192.168.1.250:53
93 udp 192.168.1.146:59266 192.168.1.250:53
94 udp 192.168.1.204:35989 192.168.1.250:53
95 udp 192.168.1.250:23225 10.46.8.231:53
96 udp 192.168.1.250:11300 10.11.28.69:53
97 udp 192.168.1.250:51413 10.116.123.52:6881 ASSURED
98 -------------------------------------------------------------------------------