[Gllug] Portforwarding failure - iptables question

Peter Grandi pg_gllug at gllug.for.sabi.co.UK
Tue Jun 21 16:19:52 UTC 2005

>>> On Mon, 20 Jun 2005 16:15:16 +0100, Adrian McMenamin
>>> <adrian at mcmen.demon.co.uk> said:

adrian> This is a fragment from /etc/sysconfig/iptables: [ ... ]
adrian> It gives this output:

adrian> [root at electra sysconfig]# iptables-restore -v ./iptables
adrian> [ ... ]

Editing directly an 'iptables' save/restore file format is a bit
of a dodgy thing, but hey, if you know better... :-)

adrian> iptables-restore v1.2.6a: Unknown arg `--dport' Try
adrian> `iptables-restore -h' or 'iptables-restore --help' for
adrian> more information. [ ... ]

Well, while the 'iptables' save/restore format looks like the
'iptables' command arguments, it is by no means guaranteed to be
the same or similar or to behave equivalently... But hey, if you
know better... :-)

As to this:

adrian> -A PREROUTING -p tcp --dport 62000 -i eth1 -j DNAT
adrian> --to-destination

the '--dport' option is not 'iptables-'native, it is supported
only by the 'tcp' and 'udp' protocol modules. Enough said I
suppose :-).

Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list