It seems that ‘–dport’ option is not recognized by iptables for sctp.
Username: z 237751
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1339
Mys router:
System: CHAOS CALMER (15.05.1, r48532)
Router: Asus RT-N56U
I also reproduced this bug with lede 17.01.1 r3316-7eb58cf1 in VirtualBox (according to the guide on
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!