informatica:linux:iptables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
informatica:linux:iptables [2012/05/10 17:16] – javi | informatica:linux:iptables [2012/05/16 14:37] – javi | ||
---|---|---|---|
Line 6: | Line 6: | ||
http:// | http:// | ||
- | |||
===== Escribir en log ===== | ===== Escribir en log ===== | ||
Line 162: | Line 161: | ||
#$IPTABLES -A INPUT -j LOG --log-prefix "INPUT " | #$IPTABLES -A INPUT -j LOG --log-prefix "INPUT " | ||
#$IPTABLES -A OUTPUT -j LOG --log-prefix " | #$IPTABLES -A OUTPUT -j LOG --log-prefix " | ||
+ | </ | ||
+ | |||
+ | ===== Mostrar numero de paquetes ===== | ||
+ | |||
+ | < | ||
+ | sudo iptables -L -n -v -x | ||
+ | |||
+ | Chain INPUT (policy ACCEPT 384086 packets, 61462048 bytes) | ||
+ | pkts bytes target | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) | ||
+ | pkts bytes target | ||
+ | 156432 229715525 ACCEPT | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Chain OUTPUT (policy ACCEPT 370021 packets, 87787030 bytes) | ||
+ | pkts bytes target | ||
</ | </ |
informatica/linux/iptables.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1