From mboxrd@z Thu Jan 1 00:00:00 1970 From: varun_saa@vsnl.net Subject: allow / deny clients Date: Sat, 30 Apr 2005 10:33:53 +0500 Message-ID: <853706858e33.858e33853706@vsnl.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: Content-language: en Content-disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org Hello My server is om Mandrake 10.1 eth0 is WAN with static IP connected to 512K DSL. eth1 is LAN - 192.168.0.0/24. I am doing a masq/nat on eth0 as follows: # Generated by iptables-save v1.2.9 on Tue Apr 26 14:50:01 2005 *nat :OUTPUT ACCEPT [0:0] :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] -A POSTROUTING -o eth0 -j MASQUERADE My subnets are as follows : 192.168.0.0/24 192.168.21.0/24 I would like to allow / deny access to the net to clients based on : 1. client IPs. or 2. client IP + MAC What kind of rules to write Do you start with blocking all IPs and then write the allow rules ? Or directly write filtering rule and automatically others will be rejected? Thanks Varun