Hi Tim,

> > iptables -A INPUT -p ALL --dport 3977 -j ACCEPT
> 
> I suspect it is because you have the protocol as ALL, There are more
> protocols than TCP and UDP.

I think David's right;  --dport is only valid for some protocols, e.g.
`tcp', so giving `-p all', the default, rules out its use.  iptables(1)
says, for example

    tcp
        These extensions can be used if `--protocol tcp' is specified.
        It provides the following options:
    ...
        [!] --destination-port,--dport port[:port]
            Destination port or port range specification.  The flag
            --dport is a convenient alias for this option.

> Failing that you could use --destination-port instead of dport.

Think they're synonyms.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2015-03-03 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to