On Wed, Jun 06, 2001 at 07:38:58PM -0600, Stefan Srdic wrote:

> I'm in the middle of writing a Netfilter script and seem to be having a
> problem or two. For some reason I can't figure out how I can pass
> multiple port number in a single rule.

Look at the multiport option in the iptables manpage.

As an example:

  /sbin/iptables --insert INPUT --protocol tcp --match multiport \
    --destination-port www,ssh,pop3 --jump ACCEPT

> #!/bin/sh

Try "#!/bin/sh -x" instead.

--
[EMAIL PROTECTED]


Reply via email to