FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
+1 vote
801 views 1 comments
by

we are running several instances of data collecting software gathering data over IP network. end equipment is connectd to  rut955 serial. Currently rut955 passes all requests to the equipment which which leads to incomplete and malformed answers. Is there any way to limit concurent (simultanious) connections on serial port?  

configuration used

1 Answer

0 votes
by anonymous

Hi,

There is no configuration options in RS232, which can limit number off to connection to serial device. At the moment, only solution I can suggest is to use firewall rules and limit number of connections per TCP port.

Enter following rule in Network -> Firewall -> Custom Rules. This rule will allow only one connection for 2320 port and until first device release connection, no other device will be alowed to connect.
 

iptables -I INPUT -p tcp --syn --dport 2320 -m connlimit --connlimit-above 1 -j REJECT --reject-with tcp-reset

by
we will try this. Thank You.