+---------------------------------------------------+ | iptables -P INPUT DROP; | | iptables -P OUTPUT DROP; | | iptables -P FORWARD DROP; | | iptables -A INPUT -s IP of the site -j ACCEPT; | | iptables -A OUTPUT -s IP of the site -j ACCEPT; | | iptables -A FORWARD -s IP of the site -j ACCEPT; | | iptables -P OUTPUT ACCEPT; | +---------------------------------------------------+
hope it helps On Fri, Feb 14, 2003 at 08:25:32AM +0530, Supreet Sethi wrote: Supreet Sethi> Some times when problem seems too though try looking at in from Supreet Sethi> different perspective. Specific URL blocking should'nt be the task of Supreet Sethi> Iptables in most cases. Supreet Sethi> Supreet Sethi> Supreet Sethi> Supreet Sethi> On Wed, 2003-02-12 at 23:44, Dhruv Soi wrote: Supreet Sethi> > Supreet Sethi> > Hi All, Supreet Sethi> > I have configured a simple firewall on my linux box using iptables-1.2.5-3 Supreet Sethi> > just to make it a gateway machine blocking various ports. Now the Supreet Sethi> > requirement is of URL blocking can anybody help me out regarding that. Supreet Sethi> > Supreet Sethi> > Regards, Supreet Sethi> > -Dhruv Supreet Sethi> > Supreet Sethi> > ================================================ Supreet Sethi> > To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org Supreet Sethi> > Supreet Sethi> Supreet Sethi> ---end quoted text--- -- A drug is neither moral nor immoral- it's chemical. The compound itself is not a menace to society until a human being treats it as if consumption bestowed a temporary license to act like an asshole.