Your description is not very clear, but my guess is that you want to run a bridge on this PC. "man brctl" is a good place to start. Most distributions have an easy way to setup the bridge via the network configuration files. If you actually need to set your machine as a router that's a different issue. Regarding iptables, you will need rules on the FORWARD table to catch packet travelling through the bridge. > -----Original Message----- > From: netfilter-owner@xxxxxxxxxxxxxxx [mailto:netfilter- > owner@xxxxxxxxxxxxxxx] On Behalf Of K?rlis Repsons > Sent: Tuesday, February 03, 2009 9:54 AM > To: netfilter > Subject: Forward packets from one interface to another? > > Hello, > maybe someone here can help with this problem: I have two NIC ports > (for RJ45 > I mean) on my PC (pH) and it is necessary to attach another PC (pB) to > the > spare port similarly to like it was attached to switch. pB has static > IPv4 > just like pH. > But. I want to do it with routing and iptables! Please, please, I have > always > failed using two interfaces, I would appreciate an example of how can I > change it! > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html