Opened 8 years ago

Closed 8 years ago

Last modified 3 years ago

#5270 closed defect (worksforme)

iptables returning error on REDIRECT target --to-ports option

Reported by: jlayton@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:


Running latest trunk KAMIKAZE (bleeding edge, r16239)

When I try to set a rule with the REDIRECT target, I'm getting an error:

# iptables -t nat -A PREROUTING -i eth0.1 -p tcp -m tcp --dport 222 -j REDIRECT --to-ports 22
iptables v1.4.3.2: unknown option `--to-ports'
Try `iptables -h' or 'iptables --help' for more information.

...that rule works fine on my 8.09 host (with same hardware), and also works on my fedora machine (

iptables - -
kernel - -
kmod-ipt-nat-extra - -

...please let me know if any other info is required.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by anonymous

Let's make that a little more readable:

iptables - -
kernel - -
kmod-ipt-nat-extra - -

comment:2 Changed 8 years ago by anonymous

Similar problem with TOS target:

# iptables -t mangle -A PREROUTING -m mac --mac-source 00:0C:30:E3:13:FC -j TOS --set-tos 0x10
iptables v1.4.3.2: unknown option `--set-tos'

comment:3 Changed 8 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

Install the appropiate package, required ipt-targets should be in iptables-mod-nat-extra.

comment:4 Changed 3 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.