Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
LAN client to second gateway
« previous
next »
Print
Pages: [
1
]
Author
Topic: LAN client to second gateway (Read 1365 times)
almador
Newbie
Posts: 3
Karma: 0
LAN client to second gateway
«
on:
June 24, 2021, 10:06:18 pm »
Hi all,
I'm quite stumped with a stupid problem.
My unit has 2 WAN connections and by thus 2 gateways.
Now I want to force traffic from a specific lan client to go over the second gateway.
So I created an alias containing the IP of the client and then;
Fw rules - LAN_1 - new rule - pass (quick) - src the alias - destination any - port any - gateway the second gateway
This then results that the client wan ip address is the one of the second gateway and I can ping 1.1.1.1 BUT I lose connection to the opnsense LAN IP, which is also my DNS so no name resolution
What does work:
Fw rules - LAN_1 - new rule - pass (quick) - src any- destination wan server address - port any - gateway the second gateway
But that doesn't solve my issue because I want all traffic from that client to go over the second wan connection
Any ideas?
Logged
almador
Newbie
Posts: 3
Karma: 0
Re: LAN client to second gateway
«
Reply #1 on:
June 25, 2021, 08:32:50 pm »
small update, issue still exists but I notice something else.
When doing a traceroute to the IP address of the firewall, then the first is the firewall but it has also a second hop and a third hop (wan addresses).
the client and the firewall are in the same subnet 10.10.10.0/23
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
LAN client to second gateway