Re: Traffic NOT moving through the correct network interface?




"Unruh" <unruh-spam@xxxxxxxxxxxxxx> wrote in message
news:kREhj.3411$vp3.1645@xxxxxxxxxxx
"Calab" <myspam@xxxxxx> writes:

I've done nothing between my earlier posting and this posting to change my
routing, so I'm assuming something caused eth0 and eth2 to be considered
less practical than eth1 to be used as a default gateway.

At this point I have two questions...

1) Is it possible to route based on port number or service? Have all
outbound traffic on port 12345 through eth1 and all traffic on port 54321
through eth2, for example?

I think that the modern ip command can do things like that. On the other
hand, if your machine is responding to a remote request, that remote
request almost certainly comes out of some arbitrary port, so the reply
goes out addressed to that arbitrary port.

However look at the command ip and the docs in /usr/share/doc/iproute*/

2) Can I permanently specify that eth1 be the default gateway? I had asked
about specifying metrics for interfaces back in September in another group
and was basically told that I didn't need to.

Sure.
route del default eth0
route del default eth2
route add default eth1

Just wanted to say THANKS for all the feedback. Was VERY helpful. I've
deleted the unwanted default routes and all is working well now.


.



Relevant Pages