From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 98C641381F3 for ; Fri, 4 Oct 2013 22:45:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A66EE0A94; Fri, 4 Oct 2013 22:45:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22D67E0944 for ; Fri, 4 Oct 2013 22:45:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 62DE633EE78 for ; Fri, 4 Oct 2013 22:45:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.435 X-Spam-Level: X-Spam-Status: No, score=-1.435 tagged_above=-999 required=5.5 tests=[AWL=-1.983, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.652, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no Received: from smtp.gentoo.org ([IPv6:::ffff:127.0.0.1]) by localhost (smtp.gentoo.org [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lAsvml1j-RES for ; Fri, 4 Oct 2013 22:45:08 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C168533DA6C for ; Fri, 4 Oct 2013 22:45:04 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VSE7K-0005O6-Mo for gentoo-user@gentoo.org; Sat, 05 Oct 2013 00:45:02 +0200 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Oct 2013 00:45:02 +0200 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Oct 2013 00:45:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: OT: default route dependent on dest port? Date: Fri, 4 Oct 2013 22:44:43 +0000 (UTC) Message-ID: References: <20131005010856.496ced83@gacer.netixen.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dsl.comtrol.com User-Agent: slrn/1.0.1 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: fd81c863-1264-4f08-9563-4a54c8edd5ae X-Archives-Hash: e647dd587f4e378d31f0c2f1277c6458 On 2013-10-04, Dragostin Yanev wrote: > On Fri, 4 Oct 2013 20:55:25 +0000 (UTC) > >> IOW I've succesfully re-routed TCP _packets_ but not the TCP >> _connection_. >> >> How do I tell the TCP stack that it's supposed to use the 172.16 >> inteface/gateway for connections to port 80? > > It's been a while but i believe you want to route via interface not > gateway. Providing more info will make it easier to help you. Can you explain what "route via interface" means? I tried a default route like this: ip route add table pmain default dev net2 instead of: ip route add table pmain default via dev net2 But then non-local packets routed via that table don't seem to go out any interface at all. -- Grant Edwards grant.b.edwards Yow! I'm meditating on at the FORMALDEHYDE and the gmail.com ASBESTOS leaking into my PERSONAL SPACE!!