From: "Mike" Subject: sub interface filtering Date: Wed, 2 Apr 2003 13:45:11 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <000b01c2f947$feb84a80$8b01a8c0@win2k.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org Hi guys I have the following setup and rules. And I cant seem to get the filtering to work. Interfaces: eth0 eth1 eth2 eth2:0 eth2:1 I have the following rules iptables -P FORWARD DROP iptables -I FORWARD -i eth0 -o eth2 -p tcp -m state --state NEW,ESTABLISHED,RELATED --dport 80 -j ACCEPT iptables -I FORWARD -i eth0 -o eth2 -p tcp -m state --state NEW,ESTABLISHED,RELATED --dport 443 -j ACCEPT iptables -A FORWARD -i eth0 -o eth2 -p tcp -m state --state NEW,ESTABLISHED,RELATED,INVALID -j DROP iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.1.197 iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to 192.168.1.197 iptables -t nat -A POSTROUTING -o eth2 -s 192.168.1.197 -j SNAT --to broadcast netmask 255.255.255.240 iptables -t nat -A PREROUTING -p tcp -d --dport 443 -j DNAT --to 192.168.1.198 iptables -t nat -A POSTROUTING -o eth2 -s 192.168.1.198 -j SNAT --to broadcast netmask 255.255.255.240 but when I scan eth2:1 or eth2:2 from an outside machine I can see ALL the local services (ssh, ptptp,dns etc..) Is connection not passing the forwading chain?