routing traffic from one source ip to a specific wan/gateway

Started by fd0, October 05, 2023, 11:11:07 AM

Previous topic - Next topic
Hi

I am looking for a way to get all traffic from one specific internal ip address routed through a specific gateway/wan.
Is such a functionality available? If so, how would i do that?

thank you

You create a firewall rule on the LAN interface which matches the source address and sets the gateway.

Cheers
Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).

Quote from: Maurice on October 05, 2023, 11:15:21 AM
You create a firewall rule on the LAN interface which matches the source address and sets the gateway.

Cheers
Maurice

tnx
works like a charm ;D

Quote from: fd0 on October 05, 2023, 11:53:07 AM
Quote from: Maurice on October 05, 2023, 11:15:21 AM
You create a firewall rule on the LAN interface which matches the source address and sets the gateway.

Cheers
Maurice

tnx
works like a charm ;D

It worked like a charm for like 2 weeks, until today
Something has changed since the traffic from one specific device, the Ziggo box, that should go to the Ziggo internet interface, seems to not work anymnore.

How can i check the route of packets from that ip address through the firewall which gateway is chosen?

tnx

Quote from: fd0 on October 20, 2023, 10:00:38 PM
Quote from: fd0 on October 05, 2023, 11:53:07 AM
Quote from: Maurice on October 05, 2023, 11:15:21 AM
You create a firewall rule on the LAN interface which matches the source address and sets the gateway.

Cheers
Maurice

tnx
works like a charm ;D

It worked like a charm for like 2 weeks, until today
Something has changed since the traffic from one specific device, the Ziggo box, that should go to the Ziggo internet interface, seems to not work anymnore.

How can i check the route of packets from that ip address through the firewall which gateway is chosen?

tnx

Things seem even funnier/worse  >:(

After changing default gateway to the (Ziggo) gateway all was working well.
Changing back to yesterday's status things continue to work properly.
I wonder if I will be in the same position in some 2-3 weeks time and things don't work again.

I like things to be deterministic and this just isn't


--
fd0