ipsec: pre shared key works, while certificates do not?
Posted: Fri May 12, 2017 11:59 pm
I apologize for probably another dummy question... I'm stuck again..
I have a remote site connected to the Internet via provider's NAT. I would like to establish an IPsec between that site and the main location. Main site has a fixed real IP. On the main site I did setup a policy to accept IPsec connections from 0.0.0.0/0. When I set Auth method to pre-shared key, the link works. But if I set it to rsa signature, connection fails with an error:
In order to be sure the certificates themselves are Ok, I tested the same configuration (and the same certificates) with a test router connected to the same ISP as the main one (so that there's no NAT between the routers). The IPsec link established right away...
May it be that some ports are blocked at provider's NAT so that it doesn't let certificate-based connection to be established (but, at the same time, allows the pre-shared key)?
I have a remote site connected to the Internet via provider's NAT. I would like to establish an IPsec between that site and the main location. Main site has a fixed real IP. On the main site I did setup a policy to accept IPsec connections from 0.0.0.0/0. When I set Auth method to pre-shared key, the link works. But if I set it to rsa signature, connection fails with an error:
Code: Select all
phase1 negotiation failed due to time up <remote_router_IP_behind_NAT> <==> <main_site_router_IP>
In order to be sure the certificates themselves are Ok, I tested the same configuration (and the same certificates) with a test router connected to the same ISP as the main one (so that there's no NAT between the routers). The IPsec link established right away...
May it be that some ports are blocked at provider's NAT so that it doesn't let certificate-based connection to be established (but, at the same time, allows the pre-shared key)?