[SLUG] iptables

From: Glenn Meyer (glenn@glennmeyer.com)
Date: Tue May 03 2005 - 22:40:05 EDT


I don't know why I can't use that either. It looks like it should work,
but here's the error I get....

root@m700l:~# iptables -A INPUT -s 192.168.10.0/24 --dport 22 -j ACCEPT
iptables v1.2.11: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.

Then I tried spelling it differently (with an "s" on the end - like in
the man pages - I could have sworn it used to not have an "s" on --dport)

root@m700l:~# iptables -A INPUT -s 192.168.10.0/24 --dports 22 -j ACCEPT
iptables v1.2.11: Unknown arg `--dports'
Try `iptables -h' or 'iptables --help' for more information.
root@m700l:~#
                                          

But even the man pages shows....
   mport
       This module matches a set of source or destination ports. Up
to 15 ports can be
       specified. It can only be used in conjunction with -p tcp or -p udp.

       --source-ports port[,port[,port...]]
              Match if the source port is one of the given ports. The
flag --sports is a
              convenient alias for this option.

       --destination-ports port[,port[,port...]]
              Match if the destination port is one of the given
ports. The flag --dports
              is a convenient alias for this option.

       --ports port[,port[,port...]]
              Match if the both the source and destination ports are
equal to each other
              and to one of the given ports.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:37:09 EDT