Skip to main content
adnan_sabir
New Member
Feb 14, 2017 7:39 AM UTC
Solved

vpn and internet traffic

ipsec site to site vpn configured. on WAN2 i have staic Ip, and on WAN1 i have normal internet connectivity. i want to use WAN1 for internet traffic and WAN 2 (configured with static ip) for site to site and access vpn. how can i achieve it ? please help me out.

 

    AlexW
    AlexWAnswer
    Visitor III
    Mar 22, 2017 2:20 PM UTC

    Just to be clear WAN1 has a static Public IP, WAN2 has a private IP ? (192.168.100.1)

    So the ISP router on WAN2 does natting to a Public IP ?

    And WAN2 is the link you want to use for Dailup VPN ?

     

     

    If you want to use WAN2 and it has a Private IP recieved from the ISP. Then you need to do some natting on the ISP Router, or better bridge it so you will get a Public IP on youre WAN2. If Bridging is not Posible, maybe natting is. You can NAT (port forward) TCP/443 (For SSL VPN) to youre fortigate ip (192.168.100.1).

     

     

    12 replies

    ede_pfau
    SuperUser
    SuperUser
    Feb 15, 2017 9:05 AM UTC

    If you get the routing correct this should be possible.

     

    Create a default route (0.0.0.0/0.0.0.0) pointing to wan1.

    Create a host route with the remote IP address of the site-to-site VPN partner, pointing to wan2: e.g. remote address is 1.2.3.4, create '1.2.3.4/32' pointing to wan2.

    Of course, you still need another static route for the remote network behind the remote VPN gateway, pointing to the tunnel interface.

    This will cover internet access via wan1 and site-to-site VPN via wan2.

     

    VPN dialup access poses a problem: the public IP addresses of the VPN clients are not known in advance. Thus, the FGT will send negotiation traffic out wan1, according to the default route (it doesn't have any better route). So you can offer dialup VPN but only on wan1.

    Translate
    adnan_sabir
    New Member
    Mar 6, 2017 8:21 AM UTC

    thanks for clarification. Right now i am only configuring ipsec access vpn on fortigate 100-D, only. suppose i use WAN1 for normal internet and configure WAN2 for Ipsec access vpn. please if you could explain with example. Actually i want to use WAN 2 for my remote users through ipsec vpn access vpn. please explain with example if you could...

    Translate
    ede_pfau
    SuperUser
    SuperUser
    Mar 6, 2017 9:20 AM UTC

    As I have already stated: dialup VPN for your remote workers will have to use wan1 as this is the interface through which traffic to unknown sources will flow, by help of the default route. As your remote workers will use arbitrary source addresses they will be undistinguishable from e.g. arbitrary web sites' source addresses - data flow will be directed by the default route.

     

    For this reason I'm convinced that you won't be able to guide web traffic through wan1 and dialup VPN traffic through wan2.

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024