From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Richard L. Dery" Subject: Testing iptables setup Date: Mon, 08 Mar 2004 07:00:50 -0800 Sender: netfilter-admin@lists.netfilter.org Message-ID: <404C8AA2.6060208@teleport.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"; format="flowed" To: netfilter@lists.netfilter.org I have the following setup in my /etc/ppp/ip-up.d directory: (bash script stuff deleted) ## Create chain which blocks new connections, except if coming from inside. # iptables -N block # iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT # iptables -A block -m state --state NEW -i ! ppp0 -j ACCEPT # iptables -A block -j DROP ## Jump to that chain from INPUT and FORWARD chains. # iptables -A INPUT -j block # iptables -A FORWARD -j block (You may recognize them from the Packet Filtering HOWTO). When I run iptables -L after connecting these rules are displayed. Is there a way to test to show that these rules work? Thank you. Dick Dery