Skip to main content
smartini
New Member
March 22, 2023
Question

VxLAN over IPSEC drives me crazy!

  • March 22, 2023
  • 5 replies
  • 8523 views

Hi,

there is this scenario:

HQ with FGT100E and the firewall itself should be the BO remote network default gateway (192.168.113.254/24). It has a lot of networks configured, other networks can reach the 192.168.113.0/24 through firewall routing.

BO with FGT30E, LAN network is 192.168.113.0/24.

 

I'd like to setup a VxLAN over IPSec between two sites, I do it but I can't manage the default gateway in the 100E without using a physical port. And I don't want to use ports because I have several BO to connect in this way.

I need a L2 link between the BO net and the default gateway in the HQ firewall.

How can I manage this?

 

Best regards

5 replies

funkylicious
SuperUser
SuperUser
March 22, 2023

I have set something similar, where the device on the remote site was required to exit it's local subnet, and could only achieve it by connecting another physical port and doing the software switch w/ it and reaching the GW that was on another port then being routed out.

"jack of all trades, master of none"
smartini
smartiniAuthor
New Member
March 22, 2023

thanks funkylicious,

the configuration of the BO firewall is quite clear, there is a software switch with the LAN port and the IPSEC interface with the VxLAN encapsulation.

I'm not sure about the HQ firewall configuration..

funkylicious
SuperUser
SuperUser
March 22, 2023

it should be similar on the FGT, w/ soft-sw between the phase-1 intf and a port, connected to a switch in mode access, this way you can reach the GW which is in that vlan on another port/sub intf.

"jack of all trades, master of none"
funkylicious
SuperUser
SuperUser
March 22, 2023

Also the IPsec interface is needed to be added.

"jack of all trades, master of none"
smartini
smartiniAuthor
New Member
March 22, 2023

this is only the IPSec interface!

funkylicious
SuperUser
SuperUser
March 22, 2023

Ok, let's start with the basics.

Here's the template that I used to create the VxLAN over IPsec.

Things in CAPITAL, <> and others/intfs , would need to be adapted to our needs, the same is at both ends with proper changes, like fw rules.

 

Play around w/ it and see if you can make it work based on your needs and the diagram above.

 

 

config vpn ipsec phase1-interface     edit "p1"         set interface WAN_INTF         set peertype any         set proposal aes128-sha1 aes128-sha256         set encapsulation vxlan         set encapsulation-address ipv4         set encap-local-gw4 LOCAL_WAN         set encap-remote-gw4 REM_WAN         set remote-gw REM_WAN         set psksecret PSK         next end config vpn ipsec phase2-interface     edit "p2"         set phase1name "p1"         set proposal aes128-sha1 aes128-sha256     next end config system switch-interface     edit "VXLAN-SW" 	set vdom root         set member PORT p1     next end

 

 

"jack of all trades, master of none"
smartini
smartiniAuthor
New Member
March 24, 2023

I'm noticing a very strange thing, no one policy is matched when I'm trying to ping remote network from internal LAN..but the policy exists 

 

WhatsApp Image 2023-03-24 at 15.51.58.jpeg

 

Schermata 2023-03-24 alle 14.23.02.png

 

Schermata 2023-03-22 alle 17.15.44.png

 

funkylicious
SuperUser
SuperUser
March 24, 2023

i am pretty sure that you have a physical interface in that software switch instead of the ipsec tunnel interface, cuz of the icon which is the reason that is not working.

"jack of all trades, master of none"
smartini
smartiniAuthor
New Member
March 24, 2023

There isn't any interface with that name and I don't have other icons choise!

funkylicious
SuperUser
SuperUser
March 24, 2023

Ok, back to the basics.

Please provide a sanitized config of what's in place now, alongside fw rules in regards to this IPsec.

"jack of all trades, master of none"
smartini
smartiniAuthor
New Member
March 24, 2023

There is no physical interface with that name. The only reference with that name is the VPN IPSec with VxLAN encapsulation.

Schermata 2023-03-24 alle 19.13.06.png

Julien87
Contributor II
March 24, 2023

strange, what is your version ? if i can try your topology in lab the next week.

smartini
smartiniAuthor
New Member
March 24, 2023

Thanks! The HQ firewall is a cluster of two 100E with FortiOS 6.0.16, the BO firewall is a single 30E with 6.0.16.

Let me know if you find something!