Internet routing via VPN Zyxel

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

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. Firewall > Configure > Site to Site VPN > Non-Nebula VPN Peers

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

2. Firewall > Configure > 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.

 

Da <https://community.zyxel.com/en/discussion/15192/atp-flex-how-to-route-all-traffic-to-ipsec-peer-gateway