Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
oryagel
New Contributor

IPSec redirect all traffic to the VPN

Hi, I set up IPSec VPN. I successfully connected with an iPhone. The iPhone can ping to the internal network, but when it goes to sites like whatismyip.com I can see the 3g IP and not the VPN IP. How can I redirect all traffic to the VPN? Thanks
6 REPLIES 6
ede_pfau
SuperUser
SuperUser

You set the default gateway to the VPN tunnel: as destination network, instead of your private 192.168.x.y/24 you enter 0.0.0.0 Make sure that on your Fortigate you allow traffic from the tunnel to WAN with an additional firewall policy.
Ede Kernel panic: Aiee, killing interrupt handler!
Ede Kernel panic: Aiee, killing interrupt handler!
oryagel
New Contributor

Thanks I don' t understand what' s wrong with the current configuration. Here it is:
set type dynamic
         set interface " wan2" 
         set dhgrp 2
         set xauthtype auto
         set mode-cfg enable
         set proposal aes256-md5 3des-sha1 aes192-sha1
         set authusrgrp " VPN_Mobile" 
         set default-gw 172.16.1.254
         set ipv4-start-ip 172.16.5.210
         set ipv4-end-ip 172.16.5.220
         set ipv4-netmask 255.255.0.0
         set dns-mode auto
         set ipv4-split-include " Private" 
         set domain " XYZ" 
         set psksecret XYZi
abelio

I don' t understand what' s wrong with the current configuration. Here it is:
         set ipv4-split-include " Private" 
 
Please, re-read above Ede' s post once again; you' ve the answer there. Textually from the official docs: ipv4-split-include <address_name>: Select the address or address group that the client can reach through the VPN. This information is sent to the client as part of IKE Configuration Method. This is available only if mode-cfg is set to enable.

regards




/ Abel

regards / Abel
ddskier
Contributor

Typically you don' t want Internet traffic to route through your VPN tunnel. The VPN Tunnel should only allow access to your " Private" systems.

-DDSkier FCNSA, FCNSP FortiGate 400D, (2) 200D, (12) 100D, (2) 60D

-DDSkier FCNSA, FCNSP FortiGate 400D, (2) 200D, (12) 100D, (2) 60D
oryagel
New Contributor

I understand. The thing is that we have few web applications which allow access only from the VPN IP address. I want the VPN users to use these applications. How can I change the VPN so that all the traffic will route to it?
oryagel
New Contributor

Thanks I want all traffic to route to the VPN, not just traffic to specific addresses. How should I configure this?
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors