balaji, ipchains -F ipchains -A input -s 192.168.0.0/24 -p tcp --dport 21 -j ACCEPT ipchains -A input -s 192.168.0.0/24 -j REJECT
1. i have assumed that u want to stop ALL EXCEPT ftp on ur network 192.168.0.0/24. so replace with suitable. 2. i have flushed all rules b4 setting new ones, so if u have other rules then u have to chk the sequence. 3. i m not sure about ipchains, if it has "input" or "INPUT" chain. so u can interchange if prob comes. vineet > From: balaji <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [LIH]problem with ipchains > Date: 05 Feb 2003 17:06:41 +0530 > > dear sir/madam, > i have a problem.i want to restrict my machines access to only incomming ftp > access & want to disable the others.can someone help me. > > ---- >
signature.asc
Description: This is a digitally signed message part
