From owner-freebsd-questions@FreeBSD.ORG Thu Dec 14 02:12:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C623116A416 for ; Thu, 14 Dec 2006 02:12:37 +0000 (UTC) (envelope-from drumslayer2@yahoo.com) Received: from web34506.mail.mud.yahoo.com (web34506.mail.mud.yahoo.com [66.163.178.172]) by mx1.FreeBSD.org (Postfix) with SMTP id E516043CA3 for ; Thu, 14 Dec 2006 02:11:04 +0000 (GMT) (envelope-from drumslayer2@yahoo.com) Received: (qmail 34740 invoked by uid 60001); 14 Dec 2006 02:12:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=B6KcRDkqadwiZS8SO/zellIkt8W24ayD/yCXyKKwfjab/1rj9E3Qmo0PPvj2JCnD9xcNV0VcKD6fta9uEFcVNh51WEsctjNuBVBZNL38cAsIlT31td2c3JMYkjMhz/dRAZjaufTyvAzCD6pf+65lQT5VoNhkuRlgKGLMLs7yuWI=; X-YMail-OSG: uvhz5R0VM1mE_ucBU88y4GYtOX4gzMlMKm9.Z9MXvkms.vFV6InMsIAmEWCuH94_RR.BTNli49su5XsYCZZFFXVy.5xCSucGAM_qFipGrLZCYbgmwwbLashzOyzHvVWgB32vk8ruUpC0u.hIXBR5q6rucg035iopdtw- Received: from [67.112.21.27] by web34506.mail.mud.yahoo.com via HTTP; Wed, 13 Dec 2006 18:12:36 PST Date: Wed, 13 Dec 2006 18:12:36 -0800 (PST) From: "N. Harrington" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <632385.16581.qm@web34506.mail.mud.yahoo.com> Subject: How does one route traffic to always go in and out via the same port/ip? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2006 02:12:37 -0000 Fron a previous post I found I cannot solve my problem via port bonding since I am stuck with a switch that does not support Port bonding or trunking, I would like to then try to setup various interfaces with various IP's to help balance the traffic. Basicly as normal, assign say: ifconfig em0 192.168.1.10 netmask 255.255.255.0 (switch port1) & ifconfig em1 192.168.1.11 netmask 255.255.255.0(switch port2) & ifconfig em2 192.168.1.12 netmask 255.255.255.0 (switch port3) However if I do this, I get arp complaints because of being on the same network. Now I can stop the arp complaints via setting the below in sysctl.conf net.link.ether.inet.log_arp_movements=0 net.link.ether.inet.log_arp_wrong_iface=0 But, the problem I really have if that all the outbound traffic, goes back out the first port to the default gateway. I have tried everything I could think of, but I cannot figure out how to make sure that traffic that comes in via a particular port, will go back out that port. I am running a load balancing program on this machine. Each IP address would then correspond to an aggrigate of servers that would send traffic back to the machine in response to a request passed to it. However all the responses to the clients, regardless of which IP they came in on, are being sent back via the first port instead of the port/ip they came in on. Any assitance on how to bind an ip and gateway to a port much appreciatted! Sorry if my explanantion sucks. Feel free to ask for more info. Thanks!! They really push this program for running on linux. They offer it for FreeBSD but don't support it as much. I would really like to solve this. Otherwise all of our BSD servers will show up as linux servers if they have to be behind a linux based server. Nicole The Large Print Giveth And The Small Print Taketh Away -- Anon ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com