Difference between revisions of "Vyatta"

Jump to navigation Jump to search
601 bytes added ,  07:32, 23 June 2011
→‎Troubleshooting: Added TCPdump
(→‎NAT: Added Source NAT and pdf link)
(→‎Troubleshooting: Added TCPdump)
Line 207: Line 207:
|<code> show flow-accounting interface eth0 host 10.1.1.1 </code> || Show flow accounting for specific IP through <code> eth0 </code>
|<code> show flow-accounting interface eth0 host 10.1.1.1 </code> || Show flow accounting for specific IP through <code> eth0 </code>
|}
|}
=== TCPdump ===
TCPdump can only be run as root, therefore you mat need to set the root password first...
sudo root passwd
TCPdump examples...
{|cellpadding="1" cellspacing="0" border="1"
|- style="background-color:#bbddff;"
! Command                                !! Comments                               
|-
|<code> tcpdump -i eth0 port 80 </code>  || Anything on port 80 through eth0
|-
|<code> tcpdump -i eth0 dst 10.10.0.10 and port 80 </code>  || Anything going to 10.10.0.10:80 through eth0
|-
|<code> tcpdump -w capture.pcap -i eth0 port 80 </code>  || Write capture to capture.pcap
}

Navigation menu