If the chain is INPUT then the first rule in the INPUT chain is 1. The next is 2 etc.
--- "Madel,Kurt" <[EMAIL PROTECTED]> skrev: > Thanks, but one more question from an amateur; how > do you get the > rulenumber? > > Kurt Madel > Programmer, CSMi > (703) 823-4300 ext. 170 > > > -----Original Message----- > From: linux power [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 10:55 AM > To: [EMAIL PROTECTED] > Subject: Re: ipchains: removing rules > > ipcains -D (chain) ( rulenumber) > > > > --- "Madel,Kurt" <[EMAIL PROTECTED]> skrev: > I > wanted > to block a port using ipchains and issued > > the following command: > > > > > > > > ipchains -A input -s 0/0 -p tcp -j deny > > > > > > > > But I forgot to put the port number after 0/0. My > > question is whether the > > following command will delete the rule?: > > > > > > > > ipchains -D input -s 0/0 -p tcp -j deny > > > > > > > > > > > > Kurt Madel > > > > Programmer, CSMi > > > > (703) 823-4300 ext. 170 > > > > > > > > > > ===== > http://home.no.net/~knutove/knut_ove_hauge_kuren.htm > > ______________________________________________________ > Se den nye Yahoo! Mail på http://no.yahoo.com/ > Nytt design, enklere å bruke, alltid tilgang til > Adressebok, Kalender og > Notisbok > > > > -- > redhat-list mailing list > unsubscribe > mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > -- > redhat-list mailing list > unsubscribe > mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list ===== http://home.no.net/~knutove/knut_ove_hauge_kuren.htm ______________________________________________________ Se den nye Yahoo! Mail på http://no.yahoo.com/ Nytt design, enklere å bruke, alltid tilgang til Adressebok, Kalender og Notisbok -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list