RE: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-18 Thread J.Witvliet
From: users-boun...@lists.fedoraproject.org [mailto:users-boun...@lists.fedoraproject.org] On Behalf Of James Hogarth Sent: Friday, July 15, 2011 11:41 AM To: Community support for Fedora users Subject: Re: [SOVLED by '!' ]how to specify IP not e

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-17 Thread Jatin K
On Saturday 16 July 2011 03:27 PM, g wrote: > On 07/16/2011 09:11 AM, Jatin K wrote: >> On Saturday 16 July 2011 02:22 PM, g wrote: >>> > >> actually I got the solution what was needed, from this list. >> without single quote like this[1] >> [1] iptables -A INPUT ! -s 172.16.158.111 -p tc

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-16 Thread g
On 07/16/2011 09:11 AM, Jatin K wrote: > On Saturday 16 July 2011 02:22 PM, g wrote: >> On 07/16/2011 05:40 AM, Jatin K wrote: >>> On Saturday 16 July 2011 10:18 AM, g wrote: On 07/16/2011 04:25 AM, Jatin K wrote: <> > Sorry, that was my mistake :-( that happens. but does m

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-16 Thread Jatin K
On Saturday 16 July 2011 02:22 PM, g wrote: > On 07/16/2011 05:40 AM, Jatin K wrote: >> On Saturday 16 July 2011 10:18 AM, g wrote: >>> On 07/16/2011 04:25 AM, Jatin K wrote: >>> <> >>> Sorry, that was my mistake :-( >>> that happens. but does make things difficult to help. >>> actually

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-16 Thread g
On 07/16/2011 05:40 AM, Jatin K wrote: > On Saturday 16 July 2011 10:18 AM, g wrote: >> On 07/16/2011 04:25 AM, Jatin K wrote: >> <> >> >>> Sorry, that was my mistake :-( >> >> that happens. but does make things difficult to help. >> >>> actually I got the solution what was needed, from this list.

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-15 Thread Jatin K
On Saturday 16 July 2011 10:18 AM, g wrote: > On 07/16/2011 04:25 AM, Jatin K wrote: > <> > >> Sorry, that was my mistake :-( > that happens. but does make things difficult to help. > >> actually I got the solution what was needed, from this list. > and was so noted. wherein, a little more info wo

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-15 Thread g
On 07/16/2011 04:25 AM, Jatin K wrote: <> > Sorry, that was my mistake :-( that happens. but does make things difficult to help. > actually I got the solution what was needed, from this list. and was so noted. wherein, a little more info would be nice. did blocking work with; [1] iptables

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-15 Thread Jatin K
On Friday 15 July 2011 07:49 PM, g wrote: > On 07/15/2011 09:46 AM, Jatin K wrote: >> On Friday 15 July 2011 03:10 PM, James Hogarth wrote: '!' Solved my problem >>> Really? Because what you have there is the opposite of that which you >>> stated you were trying to accomplish in your firs

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-15 Thread Jatin K
On Friday 15 July 2011 03:22 PM, Reindl Harald wrote: > > Am 15.07.2011 11:46, schrieb Jatin K: >> On Friday 15 July 2011 03:10 PM, James Hogarth wrote: '!' Solved my problem >>> Really? Because what you have there is the opposite of that which you >>> stated you were trying to accomplish in y

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-15 Thread g
On 07/15/2011 09:46 AM, Jatin K wrote: > On Friday 15 July 2011 03:10 PM, James Hogarth wrote: >> >>> '!' Solved my problem >>> >> Really? Because what you have there is the opposite of that which you >> stated you were trying to accomplish in your first post. >> >> Now that IP is the only IP that

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-15 Thread Reindl Harald
Am 15.07.2011 11:46, schrieb Jatin K: > On Friday 15 July 2011 03:10 PM, James Hogarth wrote: >> >>> >>> '!' Solved my problem >> >> Really? Because what you have there is the opposite of that which you >> stated you were trying to accomplish in your first post. >> >> Now that IP is the only IP

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-15 Thread Jatin K
On Friday 15 July 2011 03:10 PM, James Hogarth wrote: > > > > > > '!' Solved my problem > > > > Really? Because what you have there is the opposite of that which you > stated you were trying to accomplish in your first post. > > Now that IP is the only IP that can access your FTP server and all >

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-15 Thread James Hogarth
> > '!' Solved my problem > Really? Because what you have there is the opposite of that which you stated you were trying to accomplish in your first post. Now that IP is the only IP that can access your FTP server and all others get dropped. -- users mailing list users@lists.fedoraproject.org To

Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????

2011-07-14 Thread Jatin K
On Thursday 14 July 2011 06:37 PM, Robert Nichols wrote: > On 07/14/2011 07:48 AM, Jatin K wrote: >> Dear All Gurus, >> >> I want to deny a particular IP (172.16.158.111) address in my network to >> FTP on server (RHEL6), I'm trying to add the following[1][2] iptabls >> rules on server and getting

Re: how to specify IP not equal to in iptables rules ????

2011-07-14 Thread Tom H
On Thu, Jul 14, 2011 at 8:48 AM, Jatin K wrote: > > I want to deny a particular IP (172.16.158.111) address in my network to > FTP on server (RHEL6), I'm trying to add the following[1][2] iptabls > rules on server  and getting error [3] > >  [1] iptables -A INPUT -s! 172.16.158.111 -p tcp --dport

Re: how to specify IP not equal to in iptables rules ????

2011-07-14 Thread g
On 07/14/2011 12:48 PM, Jatin K wrote: <> > So how to go ...??? and any one guide to the right direction ? how > do I add a rule like IP or the PORTs is not equal to ? when using the negation, "!", you need to use a before and after, such as; [1] iptables -A INPUT -s ! 172.16.158.111

Re: how to specify IP not equal to in iptables rules ????

2011-07-14 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/14/2011 08:48 PM, Jatin K wrote: > Dear All Gurus, > > I want to deny a particular IP (172.16.158.111) address in my network to > FTP on server (RHEL6), I'm trying to add the following[1][2] iptabls > rules on server and getting error [3] >

Re: how to specify IP not equal to in iptables rules ????

2011-07-14 Thread Robert Nichols
On 07/14/2011 07:48 AM, Jatin K wrote: > Dear All Gurus, > > I want to deny a particular IP (172.16.158.111) address in my network to > FTP on server (RHEL6), I'm trying to add the following[1][2] iptabls > rules on server and getting error [3] > > >[1] iptables -A INPUT -s! 172.16.158.111 -p

Re: how to specify IP not equal to in iptables rules ????

2011-07-14 Thread Mogens Kjaer
On 07/14/2011 02:48 PM, Jatin K wrote: > So how to go ...??? and any one guide to the right direction ? how > do I add a rule like IP or the PORTs is not equal to ? man iptables: ... [!] -s, --source address[/mask][,...] ... Put the ! before -s. Mogens -- Mogens Kjaer, m...@lemo.dk http:/

how to specify IP not equal to in iptables rules ????

2011-07-14 Thread Jatin K
Dear All Gurus, I want to deny a particular IP (172.16.158.111) address in my network to FTP on server (RHEL6), I'm trying to add the following[1][2] iptabls rules on server and getting error [3] [1] iptables -A INPUT -s! 172.16.158.111 -p tcp --dport 21 -j DROP [2] iptables -A INPUT -s!