[ATP/FLEX] How to route all traffic to IPSec peer gateway

Zyxel_Kevin
Zyxel_Kevin Posts: 741  Zyxel Employee
First Anniversary 10 Comments Friend Collector First Answer
edited June 2023 in VPN

When site to site VPN is configured between Nebula Firewall and the peer gateway, we can use policy routes to force the subnet of Nebula Firewall to access the Internet via the WAN connection of the peer gateway. The article instructs how to configure a policy route on each device to route all traffic to the peer gateway. In this example, we use Zyxel Firewall (on-premises mode) as the peer gateway.

Before Begin

You need to know how to set up site to site VPN in Nebula.

How to establish Site-to-Site IPsec VPN between Nebula and non-Nebula devices


Nebula Firewall

1. Configure > Firewall > Site-to-Site VPN

Set the Private subnet of the peer gateway. In this example, 192.168.100.1 is used for connectivity check.


2. Configure > Firewall > Routing

Click +Add to create a new routing.

Source: intranet, Destination: Any, Next-Hop: VPN NAME


Peer Gateway

1. In Local Policy, you have to fill in 0.0.0.0/0.


2.In order to access internet, you have to do Source NAT to translate 192.168.8.0/24 to the WAN interface.


Test Result

You will see source 192.168.8.33 have been NAT and routed to internet via the peer gateway.