oninz,
  try setting you firewall like this:

where:
-s  = source 
-d  = destination

# for your FTP 
ipchains -A input -s 0/0 -d 0/0 21 -p tcp -y -j REJECT

  just make sure you know the protocols run by each 
services you wanted to block. eg, port 53 (domain) its running both tcp 
and udp protocols.

janjan   
------------------------------------
Gene Frederick F. Boniel
Manager - Network Operation Center
Virtual Communications, Inc.
Rm. 202 K&J Bldg. Llorente St.
Brgy. Capitol Site, Cebu City
Philippines 6000

E-mail : [EMAIL PROTECTED]
Mobile : +63 916 3423122
Office : +63 032 2541954



On Fri, 15 Feb 2002, Alinmar Umlas wrote:

> Brothers,
>      I set my own rule of firewall using ipchains, I try to issue my own
> rules with this line...
>    ipchains -F
>    ipchains -A input -s mynetwork/subnet -p TCP ACCEPT
>    ipchains -A input -s 0/0 -p TCP DENY
> 
> I know somethings wrong w/ my rules, how can i Deny only the port like
> (telnet or ftp) using ipchains?, the thing is, only the port 53, 21,22 that
> i just want to filtered out, how can i do this things without affecting
> others port using TCP protocol?
> 
> oninz <--{^0^}
> 
> 
> 
> 
> -----------------------------------------
> This email was sent using SquirrelMail.
>    "Webmail for nuts!"
> http://squirrelmail.org/
> 
> 
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> 
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
>[EMAIL PROTECTED]
> 

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to