[SOVLED by '!' ]how to specify IP not equal to in iptables rules ????
g
geleem at bellsouth.net
Sat Jul 16 04:48:02 UTC 2011
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".
--
peace out.
tc.hago,
g
.
****
in a free world without fences, who needs gates.
**
help microsoft stamp out piracy - give linux to a friend today.
**
to mess up a linux box, you need to work at it.
to mess up an ms windows box, you just need to *look* at it.
**
The installation instructions stated to install Windows 2000 or better.
So I installed Linux.
**
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html
'The Linux Documentation Project' http://www.tldp.org/
'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
'HowtoForge' http://howtoforge.com/
****
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 545 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110716/de96a063/attachment.bin
More information about the users
mailing list