Bug 1408616
Summary: | not able to connect to VPN servers behind NAT | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Niki W. Waibel <niki.waibel> |
Component: | libreswan | Assignee: | Paul Wouters <pwouters> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | pwouters |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-12-27 15:21:31 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Niki W. Waibel
2016-12-26 02:12:37 UTC
we require IKEv1 peer to have ID '216.72.232.169', but peer declares '192.168.2.31' this is a misconfiguration. You can either configure both sides to use an actual ID, or you can use the public ip as ID. Eg if left is your server behind NAT, use: left=%defaultroute #better then hardcoded private IP leftid=216.72.232.169 it seems networkmanager comes up with this config: ===== # cat /var/run/nm-ipsec-l2tp.7848/ipsec.conf conn nm-ipsec-l2tp-7848 auto=add type=transport authby=secret keyingtries=0 left=%defaultroute leftprotoport=udp/l2tp rightprotoport=udp/l2tp right=216.72.232.169 pfs=no forceencaps=yes ===== should this work or not, if the server is behind a NAT? [there is no hardcoded private ip]. you can work around it on the client by adding rightid=192.168.2.31 but the real fix is on the server to add leftid=216.72.232.169 thank you for the additional details! |