Roberto Alsina wrote: > 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 :-) >
>From my first message: > I have just tried to do this with IPTables and source NATing but due to > a bug in the Fedora Kernel (or what seems to be) I get a panic ;( -- James Ray. <[EMAIL PROTECTED]> Computing Services Queen Mary, University of London ------------------------------------------------------------------------- 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