I want to open an SCTP port on a firewall using firewall-cmd command on CentOS7.1 server
I have tried to add by using
firewall-cmd --zone=public --permanent --add-port=portnumber/sctp
I am getting an error response..
Error: INVALID_PROTOCOL: sctp
I have tried to add the protocol to the /etc/modprobe.d directory path..
echo "install sctp /bin/false" > /etc/modprobe.d/sctp.conf
Without Success(it did not bring any difference)..
If I do lsmod | grep sctp
, I get the below response (which means sctp protocol has been allowed)
xt_sctp 12853 0
sctp 217455 6
libcrc32c 12644 1 sctp
You have new mail in /var/spool/mail/root
if I stop the firewall, I can see the connections established with
netstat -lanp|grep sctp
But if I start the firewall I see the below errors on the server log
java.net.ConnectException: Connection timed out
at sun.nio.ch.SctpChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SctpChannelImpl.finishConnect(SctpChannelImpl.java:475)
Plus,there are no established sctp connections from the netstat output.