au pire si une application ne se comporte pas comme on veut, le kernel linux est bien fait (si si).
ip ro add 10.10.10/0 gw 192.168.1.1 src 192.168.1.2 Si l'application cliente ne fait pas de bind specifique (se qui est le cas normalement), alors lors de la selection de l'addresse soure par le stack, celle specifiee sur la route sera utilisee. Evidemment dans le cas de squid, ils gerent ca eux meme, se qui n'est pas plus mal. Autre conseil, les alias ethx:y, ce n'est pas top, ca utilise des descripeur d'interface pour rien (je pense). Depuis 2.4, ip addr add. J. On Wed, Jan 04, 2006 at 11:06:59AM +0100, Xavier Mertens wrote: > Pourquoi mais pourquoi est-ce que la solution est toujours trouv?e > 3 minutes apres avoir press? sur "Send"! Merci Murphy! :) > > # TAG: tcp_outgoing_address > # Allows you to map requests to different outgoing IP addresses > # based on the username or sourceaddress of the user making > # the request. > # > # tcp_outgoing_address ipaddr [[!]aclname] ... > # > # Example where requests from 10.0.0.0/24 will be forwareded > # with source address 10.1.0.1, 10.0.2.0/24 forwarded with > # source address 10.1.0.2 and the rest will be forwarded with > # source address 10.1.0.3. > # > # acl normal_service_net src 10.0.0.0/255.255.255.0 > # acl good_service_net src 10.0.1.0/255.255.255.0 > # tcp_outgoing_address 10.0.0.1 normal_service_net > # tcp_outgoing_address 10.0.0.2 good_service_net > # tcp_outgoing_address 10.0.0.3 > # > # Processing proceeds in the order specified, and stops at first fully > # matching line. > # > #Default: > # none > > Xavier > -- > "There are three kinds of death in this world. There's heart death, there's > brain death, and there's being off the network." > > On Wed, 4 Jan 2006, Xavier Mertens wrote: > > > Y-a-t'il des pro du Squid ici? > > Via http_port, on peut binder le Squid sur une IP sp?cifique. > > Mais: peut-on forcer Squid ? utiliser une IP pr?cise pour ses > > connections outgoing? > > > > Je parle du cas ou j'ai une box avec un eth0, eth0:1, eth0:2 etc... > > > > Xavier > > -- > > Give a man a fish and you feed him for a day; > > teach him to use the Net and he won't bother you for weeks. > _______________________________________________________ > Linux Mailing List - http://www.unixtech.be > Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux > Archives: http://www.mail-archive.com/linux@lists.unixtech.be > IRC: chat.unixtech.be:6667 - #unixtech > NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech -- -- -> Jean-Francois Dive --> [EMAIL PROTECTED] I think that God in creating Man somewhat overestimated his ability. -- Oscar Wilde
_______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux Archives: http://www.mail-archive.com/linux@lists.unixtech.be IRC: chat.unixtech.be:6667 - #unixtech NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech