iptables -A INPUT -j DROP
or set the INPUT policy to DROP.
Phil
Simon Wong <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
27/02/2002 13:14
To: Slug <[EMAIL PROTECTED]>
cc:
Subject: Re: [SLUG] Firewalls
On Wed, 2002-02-27 at 12:13, Jeff Waugh wrote:
>
> iptables -A INPUT -j DROP -d $ipaddress/$netmask --dport 22
>
> would stop you from ssh'ing in to your machine... Probably not a good
idea,
> but it's a good example. ;)
Is there something to drop all connections to ports so you could set
that after you had explicitly allowed certain ports?
e.g. iptables -A INPUT -j DROP -d $ipaddress/$netmask --dport ALL ;-)
--
**************
* Simon Wong *
**************
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug