[FS#1339] It seems that ‘–dport’ option is not recognized by iptables for sctp.

LEDE Bugs lede-bugs at lists.infradead.org
Sat Feb 10 01:13:28 PST 2018


A new Flyspray task has been opened.  Details are below. 

User who did this - z 237751 (z237751) 

Attached to Project - OpenWrt/LEDE Project
Summary - It seems that ‘–dport’ option is not recognized by iptables for sctp.
Task Type - Bug Report
Category - Packages
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Very Low
Priority - Very Low
Reported Version - lede-17.01
Due in Version - Undecided
Due Date - Undecided
Details - **Mys router:**

System: CHAOS CALMER (15.05.1, r48532)
Router: Asus RT-N56U

I also reproduced this bug with lede 17.01.1 r3316-7eb58cf109 in VirtualBox (according to the guide on [[https://wiki.openwrt.org/doc/howto/virtualbox|https://wiki.openwrt.org/doc/howto/virtualbox]]).

**What happens:**

It seems that '--dport' option is not recognized by iptables for sctp. Command execution fails.

**Expected result:**

Command runs successfully and we can create rules with iptables to match by sctp and destination port.

**Steps to reproduce:**

First install these:
sctp
kmod-sctp
libsctp
sctp-tools

Try to run this:

iptables -A INPUT -p sctp --dport 1234 -j ACCEPT

Shows error:

iptables v1.4.21: unknown option "--dport"
Try `iptables -h' or 'iptables --help' for more information.

Try to run this:

iptables -A INPUT -p sctp -j ACCEPT

Works!

One or more files have been attached.

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=1339



More information about the lede-bugs mailing list