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 -ZCode: Select all
iptables -L -v -xCode: 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 ????