Policy Routing (was: Re: rsync, ssh, scp: How to send via eth1 or higher ?)



Hi, Hans.

On Jul 28 2006, Hans-J. Ullrich wrote:
is there any way, to send files over a device greater than eth0 ?

You have already received some response on your question regarding the
"bind to an address".

I would like to point out another possibility: you may use policy
routing (if you have it enabled in your kernel) and, say, route all
traffic that is ssh to a given interface.

This is a really nice feature of the kernel and little known. For
manipulating the routes, you will need the package iproute.


Hope this helps, Rogério Brito.

--
Rogério Brito : rbrito@xxxxxxxxxx : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat: http://freshmeat.net/projects/algorithms/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: network setup question
    ... server1:/home/milesf# route ... Kernel IP routing table ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject ...
    (Debian-User)
  • Re: pppoeconf / Verizon DSL
    ... Kernel IP routing table ... Running "route add default gw 192.168.1.1" may improve things, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Get to the bottom of what is running my networks
    ... I can verify that it seems to work here: ... Kernel IP routing table ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: ext4 stable enough to entrust it with data?
    ... of using ext3 for now and maybe converting later. ... If you go this route, be sure you use a later kernel, .28+. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: problems after rebuild of 5.5 stable
    ... The default operation in mergemaster is to do nothing, ... My next step is to start from scratch Unfortuntely, even with ipfw set to open, I am still getting no route to host when I try and ping my gateway. ... Now I can cvsup to a production 'Release' version of FreeBSD, ... To unsubscribe, send any mail to ...
    (freebsd-questions)