OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: matthewdu92 on February 20, 2021, 06:38:34 pm

Title: Send traffic from LAN to WAN2 interface based on IP the client want to reach
Post by: matthewdu92 on February 20, 2021, 06:38:34 pm
Hi guys

First post, I m looking for some help  :D

I did setup that :

Orange ISP > opnsense > LAN for company + VLAN20 for guests

LAN : LAN is on igb0 with 192.168.100.1 ip et give 192.168.100.0/24 dhcp address
VLA20: VLAN20 is also on igb0 but is not the point here ; works well, cannot reach the LAN and it’s ok.
WAN1: ORANGE ISP is on igb1 with 192.168.1.20 interface ip
WAN2 : nothing, igb2 is free today

LAN and VLAN20 can well surf on the internet through WAN 2

What I want to setup now:
We also have a SFR ISP access which cast internet access + VPN Access to another site (location) we have
SFR access give 192.168.2.0/24 address on site 1
We can reach the other site by joining 192.168.1.0/24 style addresses

I’d like to plug SFR on igb2 and make all requests to 192.168.1.0/24 going on WAN 2 and being processed by SFR access to reach the site

I know I have to change the original Orange IP which Is 192.168.1.0/24 in order not to have 2 same subnet but I think I might add some route rules and I don’t know what rules ?

I think my request will appear easy for most of you but not for me  :'(

Thanks a lot for your help

Sorry if I forgot some info, just ask me for sure !

Mathieu