[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

iptables question



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Can someone shed some light on it ?

`iptables -A INPUT -d 192.168.1.1 -p tcp --dport ! 8080 -j DROP`

If I understand correctly the above rule says, "In the INPUT chain of
iptables, if the destination IP address is 192.168.1.1 and the protocol is
tcp and the destination port is 8080, then drop those packets".

Going with my understanding, I added this rule and tried telneting to the
host on port 8080 but it failed.

Thanks,
Ritesh
- -- 
Ritesh Raj Sarraf
RESEARCHUT -- http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is
research."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEG/Hf4Rhi6gTxMLwRApimAJ98KYxyUEGBQgiVZ6sNss8BOO6tQwCdFpfm
kZ7cXT98QtbTIqiU2HyrMD8=
=Kbkb
-----END PGP SIGNATURE-----



Reply to: