Traffic is not routed to the tunnel, states are not working correctly
-
Hello!!
Help me solve the problem, I would be very grateful.
Site 1
Pfsense 23.05
Site 2
Pfsense 2.6
An Openvpn tunnel is up between them.
FRR Global/Zebra dynamic routing configured.
Everything works fine, FRR updates the routing tables on both servers.
I also have an ASTERISK that has a trunk connecting Site 1 and Site 2 on the same port 4569.
It also works fine until the Site1 router is rebooted.
After the reboot, I see that the tunnel is working and the sites have exchanged routes. But my trunk is not working.
I looked at the connection status on the router Site 1. And found that it is trying to send packets from my ASTERISK port 4569 to the global network. It ignored the received route from Site 2.
I think this is because the FRR Global/Zebra service starts slower than Site 1 determines its routing table. As a result, Site 1 simply does not know where to send the packet and it sends it to the global network.
But when it receives the routing table from Site 2, it doesn't use it because there is already state in the connection states.
To solve the problem, I simply remove this not the correct state and my trunk on port 4569 works.
How to avoid such a situation? I want everything to work automatically. Thanks for the help!!
-
HI!
I solved a problem using rules NAT, I delete my network from NAT and is work.