IPsec remote VPN: building it and allowing by country
Sign in to read this lesson
We assemble an IPsec remote-access VPN once more from start to finish and then allow connections to it from selected countries only. IPsec has no ready "source-address" setting like SSL VPN, so we meet the local-in policy.
What you will learn
- Remote (dial-up) IPsec has four parts: a user group, a
type dynamicphase 1 (which hands out IPs with mode-cfg), a phase 2 and a policy from the tunnel interface inwards. - In a dial-up phase 1 the peer address is unknown, so there is nowhere to write a country. The restriction is made with a local-in policy.
- A local-in policy filters traffic addressed to the FortiGate itself (IKE, management access), not traffic passing through it.
- The shortest way:
srcaddrthe allowed countries,srcaddr-negate enable, serviceIKEandESP,action deny. IKE packets from everyone who is not allowed are dropped. - A local-in rule affects all IPsec tunnels on that port: add your branch's (site-to-site) address to the allowed list too.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.