Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- From: Jatin K <ssh.fedora@xxxxxxxxx>
- Date: Sat, 16 Jul 2011 11:10:39 +0530
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 would be nice.
did blocking work with;
[1] iptables -A INPUT ! -s 172.16.158.111 -p tcp --dport 21 -j DROP
or
[2] iptables -A INPUT -s ! 172.16.158.111 -p tcp --dport 21 -j DROP
syntax tends to indicate that [2] is correct, as [1] would tend to
indicate "NOT source".
[2] worked for me ...by the way we need to indicate ! like '!' ( in
single quote)
iptables -A INPUT -s '!' 172.16.158.111 -p tcp --dport 21 -j DROP
--
°v°
/(_)\
^ ^ Jatin Khatri
Registerd Linux user No #501175
www.counter.li.org
No M$
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
- Follow-Ups:
- References:
- how to specify IP not equal to in iptables rules ????
- From: Jatin K
- Re: how to specify IP not equal to in iptables rules ????
- From: Robert Nichols
- Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- From: Jatin K
- Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- From: James Hogarth
- Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- From: Jatin K
- Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- From: g
- Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- From: Jatin K
- Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- From: g
- how to specify IP not equal to in iptables rules ????
- Prev by Date: Re: NM_CONTROLLED=no not working
- Next by Date: Re: Gnome 3 ~ Windows 8?
- Previous by thread: Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- Next by thread: Re: [SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
- Index(es):
Relevant Pages
|