| To: | netfilter@lists.netfilter.org |
|---|---|
| Subject: | Two NICs, same network... |
| From: | "semi linux" <linuxsemi@gmail.com> |
| Date: | Tue, 8 May 2007 13:17:54 -0700 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | netfilter-list1@securepoint.com |
| Dkim-signature: | a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=r6oqY7hUXXhudBbXsa9rD1N67kEwmhQJr6NxgqC4HzHD6Y/YgkDb6lK2m/xVkMqjBm7KkUDQtg63YLjtb4KWDJF38zIa4w8fKpHZrzcPcU7N1/6Y/LiLQZWi/37qDcRd9/5Gx0a+6sr0vjTmV/7SFszbDrCSLZ7pO9irWMNqgd0= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PbDkoua0OqQAXitUEdjRIUqVI5RpTn1PneHXkX9BeJeksd323fFFsa0PhN0QXNvuYwpMPSH/CqVUUQyedF+GhOmMOoxic4RYm448OHwgzX5CgqlzzxlmTsza6X9cDgNXcPB8TroosWY80woqgx2pHr4BCoX68LaPjl91aah2wIk= |
| List-archive: | </pipermail/netfilter> |
| List-help: | <mailto:netfilter-request@lists.netfilter.org?subject=help> |
| List-id: | General discussion and user questions <netfilter.lists.netfilter.org> |
| List-post: | <mailto:netfilter@lists.netfilter.org> |
| List-subscribe: | <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe> |
| List-unsubscribe: | <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe> |
| Sender: | netfilter-bounces@lists.netfilter.org |
I've got an odd problem where I've got two NICs on the same network and I want all traffic to one IP to go out one interface and all other traffic to use the second interface. I'm going to try an simplify my actual setup, because a lot of it makes no difference to this post... I know this has to be a iptables sort of setup since the routing table can only make a difference on different networks and not based on looking for a specific IP address. The question is: eth0 IP: 10.1.1.1 eth1 IP: 10.1.1.2 target: 10.1.1.3 (these IPs are just examples, there are no hard-fast rules surrounding the other possibilities) How do I make sure this goes out eth1 instead of eth0? Do I use the mangle rule with the physdev module? I feel like I'm overlooking something or forgetting my basic network ideas here... - Gareth |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | 'tcpmss' match for ip6tables ?, Pascal Hambourg |
|---|---|
| Next by Date: | IPset included in distro, Randall C Grimshaw |
| Previous by Thread: | 'tcpmss' match for ip6tables ?, Pascal Hambourg |
| Next by Thread: | Re: Two NICs, same network..., David Lang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |