On Thu 05 Oct 2006 10:17, Kern Sibbald wrote:
> I have no idea how to control which address is used for outgoing
> communications other than by configuring your network gateway to go through
> the preferred device, which may not do exactly what you want.
>
> In any event, unless I am misunderstanding something, Bacula has no
> mechanism for controlling outgoing addresses.

There is a reason for that: Unless you have two interfaces from which you can 
reach the destination IP address, what the original poster asked makes no 
sense. Or does it?

If you do have two interfaces in such condition, you can use a iptables nat 
rule (the OUTPUT chain) to set things the way you want.

For example, if you want the bacula-dir process with PID 1234 to use IP 
10.0.0.2, you can do this (untested):

iptables -t nat -A OUTPUT -m owner --pid-owner 1234 -j SNAT --to-source 
10.0.0.2

But it's really a strange thing to do :-)

-- 
 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`) [EMAIL PROTECTED]
 (_Y_.)' ._   ) `._`.  " -.-'   KDE Developer (MFCH)
  _..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.'   Buenos Aires - Argentina
Feynman's problem solving algorithm: write down the problem->
think very hard -> write down the answer.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to