IPsec VPN, route all traffic through VPN tunnel

Posted on 2014-08-26
Last Modified: 2014-08-31

One of our branch offices has to use an IPsec VPN tunnel to get access to our main office.

We would like to route all traffic from the branch office, through our Fortigate at the main office, included internet traffic.

Main Office: Fortigate 310B
Branch Office: Linksys RV042 v3

Set up route based policies on the Fortigate which allows traffic both ways, and a third policy which allows traffic from the branch office to internet with NAT.

Set up VPN IPsec tunnel on the Linksys correspondent to the settings on the Fortigate.

VPN tunnel works, the branch office can connect to our internal resources, but internet traffic is not routed through the Fortigate.
Tried different settings on the Linksys but can't seem to be able to route internet traffic through the VPN tunnel.

Any suggestions on how to solve this ?

Question by:Lenblock
    LVL 3

    Expert Comment

    The default gateway should point to the tunnel interface. Remember that on the hub site you need to add the NAT rule to the branch network segment.

    Accepted Solution


    Thanks, but figures it out.

    If others are looking for the solution:

    Update the RV042 with the latest firmware
    Earlier firmware has a bug(if you have hardware v3)

    Config VPN tunnel, policies etc. as you would usually do and set the following:

    Branch Office(Linksys)
    Remote group setup:
    Local Group:

    Main Office(Fortigate)
    Local Group (src addr.):
    Remote Group (dst addr.):

    No need for advanced routing etc. or other config on the Linksys.
    Setting up the VPN tunnel like this will make it use the IPsec VPN tunnel for all traffic.

    Author Closing Comment

    Found the solution myself.

    Some great posts about how to this if you Google for:
    "wildcard forwarding RV042"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    What’s a web proxy server? A proxy server is a server that goes between clients and web servers, used in corporate to enforce corporate browsing policy and ensure security. Proxy servers are commonly used in three modes. A)    Forward proxy …
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now