OPNsense Forum

English Forums => General Discussion => Topic started by: fd0 on October 05, 2023, 11:11:07 AM

Title: routing traffic from one source ip to a specific wan/gateway
Post by: fd0 on October 05, 2023, 11:11:07 AM
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
Title: Re: routing traffic from one source ip to a specific wan/gateway
Post by: 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
Title: Re: routing traffic from one source ip to a specific wan/gateway
Post by: 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
Title: Re: routing traffic from one source ip to a specific wan/gateway
Post by: 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
Title: Re: routing traffic from one source ip to a specific wan/gateway
Post by: fd0 on October 21, 2023, 01:39:21 PM
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