rerouting packets to a specific interface

Submitted by Solemn Phoenix
on August 16, 2004 - 8:43am

Using a box with two interfaces (namely, one of them being a wireless interface) with each one connected to a different physical network.

Identifying applications locally running on the box by their source port, I want to route the packets from specific applications through one or the other interface.

The idea is that
- using a ruleset, each (or some) applications are routed through the non-default interface from the moment they start
- when the default (eth0) interface goes down, the specific applications are routed through the other interface

While, hopefully, keeping the applications' connection live.

yeah, I know things look grim.

My best guess is that it's gonna have to be a new custom filter for netfilter, but I dont know what I *could* do with that.

Any help is appreciated

Most applications don't bind

Ano Nymous
on
August 16, 2004 - 1:18pm

Most applications don't bind explicitly to an interface (nor IP), so probably all you need to do is changing the default route.

There are monsters lurking in the shadows though, see your other post.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.