Hi,
We were using ipsec tunnels between two Mikrotik with legacy version of 5.25 for more than 2 years. Now one of the devices changed its ISP and every day the IPsec tunnel breaks and ping either times out or says “packet rejected”. In the past we would kill ipsec connection peers and flush the SAs and the connection would go up, but now this is not possible and only reboot of the devices would fix the link. Needless to say we did not change anything but the new IP address of the new place.
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=md5,sha1 enc-algorithms=3des,aes-256 lifetime=8h pfs-group=none
add enc-algorithms=aes-256 lifetime=2h name=sha-aes pfs-group=none
/ip ipsec peer
add generate-policy=yes hash-algorithm=sha1 nat-traversal=yes secret=SomePass
add address=SomeIP1/32 comment=Maunsel dpd-maximum-failures=100 enc-algorithm=aes-256 hash-algorithm=sha1 nat-traversal=yes secret=
“SomePasword”
/ip ipsec policy
add comment=“Ergon to Maunsel” dst-address=192.168.99.0/24 proposal=sha-aes sa-dst-address=SomeIP1 sa-src-address=SomeIP2 src-address=
192.168.64.0/19 tunnel=yes
/ip firewall nat
add chain=srcnat comment=IPSEC dst-address=192.168.99.0/24 src-address=192.168.64.0/19
This happens like every day at least once. Any ideas?
Regards