Modify

Opened 7 years ago

Closed 7 years ago

Last modified 22 months 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:

Description

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 (2.6.29.4-167.fc11.x86_64).

iptables - 1.4.3.2-1 -
kernel - 2.6.28.10-brcm47xx-1 -
kmod-ipt-nat-extra - 2.6.28.10-brcm47xx-1 -

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

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by anonymous

Let's make that a little more readable:

iptables - 1.4.3.2-1 -
kernel - 2.6.28.10-brcm47xx-1 -
kmod-ipt-nat-extra - 2.6.28.10-brcm47xx-1 -

comment:2 Changed 7 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 7 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 22 months 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

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


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

 
Note: See TracTickets for help on using tickets.