FortiGate internal networks
An internal network is a connection to your organization’s FortiGate SSL-VPN gateway. Only the addresses and domains you list go through it; the rest of the device’s traffic goes as usual.
What you need
The IT department usually gives you all of this:
- the gateway address and port (most often 443 or 10443);
- the account login and password;
- the addresses and networks that must go through the gateway (for example,
10.20.0.0/16) and internal domains, if any (for example,corp.example.com); - the SHA-256 fingerprint of the gateway certificate, if the gateway uses its own certificate rather than one from a public authority.
Adding a gateway
On Mac, Windows and Linux, open the settings, the Connections tab, and click “Add” → “Internal network (FortiGate)”. On iPhone, iPad and Android, tap “+” on the main screen. The assistant walks you through the steps:
- Where are we connecting. A name (how the connection appears in the menu, for example “Office”), the gateway address and the port.
- Gateway certificate (on Mac, iPhone, iPad and Android). Contur checks the certificate by itself. If it was signed by an authority the system knows, nothing needs pinning. If the certificate is the gateway’s own, Contur shows its SHA-256 fingerprint: compare it with the one from your IT department and click “Trust and continue”. Windows and Linux have no such step: the certificate is checked on the first connection, see below.
- Sign-in. Login and password. The “Realm” field is under “Advanced”: you only need it if the gateway expects it in the sign-in address.
- What goes through the gateway. IPv4 addresses and networks, one per line:
10.20.0.0/16,192.168.50.10. - Internal names. Domains to look up in the organization’s DNS server, and that DNS server. If you leave the DNS field empty, Contur uses the one the gateway sends. No internal names — click “Skip”.
- Review and add. A summary of everything. Turn on “Connect right away” to connect now and click “Add”.
The password is kept in the system’s protected storage: in Keychain on Mac and iPhone, in Android Keystore on Android, on Windows in a file encrypted with your account’s key, on Linux in the desktop keyring (GNOME Keyring or KWallet) or, if there is none, in a file only you can read.
Which addresses to list
Contur does not apply the routes and DNS the gateway sends: only what you list goes into the tunnel. That way several gateways and your regular internet do not get in each other’s way.
- A network is written as
address/prefix length:10.0.0.0/8,172.16.5.0/24. A single address can be written without a prefix. - A domain covers all its subdomains:
corp.example.commeansmail.corp.example.comandcrm.corp.example.comtoo. The addresses these names resolve to also go into the tunnel. - Not sure which networks you need? Ask the IT department for the list of subnets the gateway hands out, or look at the routes in FortiClient if you used it.
Gateway certificate
Contur always checks that it is really your gateway answering. A certificate is accepted if it was signed by an authority the system trusts or if its SHA-256 fingerprint is pinned in the connection. There is no “accept any certificate” mode.
If the gateway certificate changes (it was renewed or replaced), the connection stops with the status “Certificate not accepted”. Open the connection: the “Gateway certificate” section shows the subject, issuer and SHA-256 of the new certificate. Check the fingerprint with your IT department and click “Trust this certificate”. If you do not recognize the fingerprint, do not trust it: someone may be impersonating your gateway.
Several gateways at once
Contur keeps up to three internal networks connected at the same time, each with its own addresses and domains. Add each gateway as a separate connection and turn on the ones you need. If the same addresses are listed in two connections, traffic goes into only one of them (on a phone, the one higher in the list), so it is better to keep the lists apart.
On iPhone, iPad and Android the system allows only one VPN, so Contur combines all the gateways that are on and your own server into one system connection. You will hardly notice: connections are still turned on and off separately, and if one gateway fails to sign in, the others keep working. A fourth network cannot be turned on: turn one of the three off first.
Connecting through the exit node
Some gateways only accept connections from addresses in certain countries or networks. If you have your own exit server in a suitable country, turn on “Connect through the exit node” in the gateway's profile. The connection to the gateway then goes through the exit server, and the gateway sees the server's address instead of your provider's.
- The switch is available on every system: on Mac, Windows and Linux it is on the connection's Profile tab, under “Path to the gateway”; on iPhone, iPad and Android it is in the connection editor. iPhone and iPad need iOS or iPadOS 18 or later.
- The exit node must be on. Until it connects, nothing is sent to the gateway: Contur never connects to such a gateway directly from your provider's address. Meanwhile the line under the connection's name says it is waiting for the exit node, or that the exit node is off and needs to be turned on. Once the exit node connects, the gateway connects by itself.
- If the exit node drops, the gateway's tunnel drops too, and both come back up afterwards. Switching Wi-Fi networks on a computer does not interrupt the gateway's tunnel.
- The addresses and domains from the profile still go into the gateway's tunnel. Only the connection to the gateway itself goes through the exit server.
One login on several devices
A FortiGate gateway usually keeps one session per login: signing in with the same login from another device disconnects the first one. Without an agreement, two of your devices would keep pushing each other out. If your gateway works this way, turn on “The gateway allows only one device per login” in the connection's profile (the “Other devices” section). Your devices then give way to each other:
- Before connecting, Contur asks through the website whether another of your devices is connected with this profile. If one is, a “Gateway “…” is busy” window appears: choose how long to pause that device and click Connect. The options are: while this device is connected (“While this Mac is connected”, “…this computer”, “…this phone”), 10 minutes, 1 hour, 5 hours, or “Until turned on manually”. Cancel changes nothing.
- While the gateway moves over to the new device, the line under the connection's name says “The gateway is switching over from “…””. During this time the gateway is cleaning up the previous session and may close the new one or leave it without data: Contur signs in again by itself.
- The paused device does not reconnect in return. Its connection shows “Paused”, and the line under the name says who holds the gateway and until when, for example: “The gateway is given to “iPhone” until 14:30. After that, Contur will connect by itself.” When the time is up or the other device disconnects, it connects by itself. To take the gateway back earlier, use “Connect now” on the connection's card: the same “Gateway is busy” window appears.
- All devices need to be signed in to the Contur account and use profile sync: devices recognize each other by the shared profile. Without them, Contur simply stops reconnecting when the gateway closes the session twice in a row shortly after sign-in.
You don't need the checkbox if your gateway lets several devices use one login. If two devices must work at the same time and the gateway allows only one, each needs its own login: ask the IT department for one.
Changing a connection
On iPhone, iPad and Android, tap the connection in the list, then “Edit”. On Mac, Windows and Linux, click the connection in the list on the Connections tab. Its card has the tabs Status, Profile, Checks and Log. Change the fields on the Profile tab and click “Save”. There you can also add or remove trusted certificate fingerprints and turn on the TCP check: Contur will periodically open a connection to the internal address and port you give and reconnect if it stops answering.
On a computer, the “Check route…” button at the top of the card shows which interface the system sends packets to a given address through, so you can see whether it goes into the tunnel. The report can be copied and sent to support.
Moving from openfortivpn
If you used openfortivpn before, on Mac, Windows or Linux choose “Add” → “Import openfortivpn profiles…” and pick one or more .conf files. The gateway, port, realm, login, password and certificate fingerprints are carried over. Such files have no addresses or domains: enter them yourself and click “Add”. Contur does not change the files.