Skip to main content
AluHouse
New Member
February 9, 2023
Question

Could I connect internet after connecting L2TP over IPSec to company

  • February 9, 2023
  • 4 replies
  • 3326 views

I could access servers in intranet with L2TP connection. Could I connect internet at the same time?

 

I am using Fortigate 100F in v.6.2.3

4 replies

kjohri
Staff
Staff
February 9, 2023

You will be able to access both intranet and internet. Just like intranet access policy, you will have to create a policy towards WAN interface.
Ex.

config firewall policy     edit 1         set name "l2tp negotiation"         set srcintf "L2tpoIPsec" --------> Name of interface         set dstintf "WAN"          set srcaddr "all"         set dstaddr "all"         set action accept         set schedule "always"         set service "all"     next

 Refer to the below documentation for L2TP over IPsec
https://docs.fortinet.com/document/fortigate/6.2.12/cookbook/386346/l2tp-over-ipsec

AluHouse
AluHouseAuthor
New Member
February 10, 2023

Thanks for your help. I follow your steps to create new policy but still unable to access internet, intranet is fine.

 

11.jpg14.jpg

Policy Rule 1 works, there is data get through it, 113.48kB

 

12.jpg

 

13.png

Is there a problem with gateway? 0.0.0.0?

Assigned IP is correct, 192.168.254.252

 

 

AluHouse
AluHouseAuthor
New Member
February 13, 2023
Is there anyone can help?
gfleming
Staff
Staff
February 13, 2023

What does traceroute show from the VPN-connected endpoint?

 

You also very likely need to enable "NAT" on the policy since it looks like your L2TP clients are receiving RFC1918 addressing.

AluHouse
AluHouseAuthor
New Member
February 13, 2023

Finally, it works when i enable "NAT" to Policy "l2tp negotiation".
Thanks a lot.
Unfortunately, after setting L2TP, i found android 12 block pptp and l2tp, only IKEv2 can use.......

 

Does Fortigate OS 6.2 support IKEv2 VPN?

sw2090
SuperUser
SuperUser
February 13, 2023

Either you route the internet traffic on your FGT with some policy and have the vpn modify the default route on client to send everything to the FGT.

Or you enable split tunneling. This will keep the VPN from touching client default route but instead push routes to the subnets/hosts you specify in split tunneling.

 

hth

Sebastian

sw2090
SuperUser
SuperUser
February 13, 2023

Oh and yes default gw 0.0.0.0 is definitely not correct. That will not work.