[SR-Users] Forcing a TCP Connection Closed?

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 9 11:51:18 CEST 2017


tcpops module offers a function to set the lifetime of a tcp connection,
so you can set it to 1 second:


Core offers a function to instruct closing the connection once a reply
has been sent, but it seems you don't want to send anything back.


On 08.10.17 22:11, Mark Boyce wrote:
> Hi all
> Just working on some connections security filters on a Kamailio install.   The security goes something like this;
> In REQINT … if source_ip  is not in customers IP white-list then just exit
> This works fine for UDP where packets are just ignored if they don’t come from a trusted IP.
> However on TCP this leads to the connection staying open until it either times out or the source disconnects.   Which feels untidy.
> Is there a way to say close the TCP connection from within the config script?
> Thanks
> Mark

Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

More information about the sr-users mailing list