CONTENT
  • CHANGES
Szukaj
counter

#top netstat-nat


netstat-nat - Show the natted connections on a linux iptable firewall

Powiązane:
ifconfig, ifenslave, ip, netstat, netstat-nat, route,

SYNOPSIS
netstat-nat [options]


DESCRIPTION



OPTIONS
-h
displays help

-n
don't resolve IPs/portnumbers to host/portnames

-p <protocol>
display NAT connections with protocol selection (see /etc/proto-
cols)

-s <source host>
display connections by source IP/hostname

-d <destination host>
display connections by destination IP/hostname

-S
display SNAT connections

-D
display DNAT connections

-L
display only connections to NAT box self (doesn't show SNAT &
DNAT)

-R
display only connections routed through the NAT box (doesn't
show SNAT & DNAT)

-x
extended view of hostnames

-r<src|dst|src-port|dst-port|state>
sort connections

-o
no output header

-N
display NAT box connection information (only valid with SNAT &
DNAT)

-v
prints version



EXAMPLES
display natted connections and using grep filtered to hide connections with state CLOSE and WAIT
netstat -nN | grep  -vE 'CLOSE|WAIT'

display natted connections with proto icmp and using grep filtered to hide connections with state CLOSE and WAIT
netstat -nN -p icmp | grep  -vE 'CLOSE|WAIT'

display natted connections with proto tcp and using grep filtered to hide connections with state CLOSE and WAIT
netstat -nN -p tcp | grep  -vE 'CLOSE|WAIT'

display natted connections with proto udp and using grep filtered to hide connections with state CLOSE and WAIT
netstat -nN -p udp | grep  -vE 'CLOSE|WAIT'




Zmodyfikowany ostatnio: 2015/11/21 11:37:35 (9 lat temu), textsize: 2,90 kB, htmlsize: 4,24 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników