iptables irgendwie was falsch
Posted: 2003-04-07 22:31
ich hab folgendes eingegeben:
dann zähler reset mit:
dann ca. 0.89 MB vom FTP geleecht und traffik nachgeschaut:
das ist das ergebnis:
wie man sieht, ist der traffik beim output richtig 893960b, aber bei supertftp sind es nur 1332 bytes.
wieso ????
Code: Select all
iptables -N superftp
iptables -A OUTPUT -p tcp --sport 21 -j superftp
iptables -A INPUT -p tcp --dport 21 -j superftp
iptables -A superftp -j ACCEPT
Code: Select all
iptables -Z
Code: Select all
iptables -L -v -x
Code: Select all
Chain INPUT (policy ACCEPT 368 packets, 20107 bytes)
pkts bytes target prot opt in out source destination
19 992 superftp tcp -- any any anywhere anywhere tcp dpt:ftp
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 683 packets, 893960 bytes)
pkts bytes target prot opt in out source destination
16 1332 superftp tcp -- any any anywhere anywhere tcp spt:ftp
Chain superftp (2 references)
pkts bytes target prot opt in out source destination
35 2324 ACCEPT all -- any any anywhere anywhere
wieso ????