Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
817 B
2
Indexable
Never
Below a tested script which was working on a situation with the same problem:

root@slx001001:/etc/uplinksdaemon/offline # cat flush_conntrack
#!/bin/sh
conntrack -D -d 109.68.11.111
exit 0

In this case the "109.68.11.111" is the SIP server address,

Otherwise you could just run conntrack -F to flush everything which in a failover situation It won't hurt.
Notice that the script should be put exactly to the /etc/uplinksdaemon/offline directory.

So to implement:
1) login via ssh
2) cd /etc/uplinksdaemon/offline
3) touch flush_conntrack
4) chmod +x flush_conntrack
5) nano flush_conntrack
Here you copy / paste a script prepared by you on a simliar situation, I'd really recommend just :
#!/bin/sh
conntrack -F
exit 0

Which would work for every situation ;)

than you hit CTRL + X and than "y" to save changes.