From: "IT Clown" <iptables@mailbox.co.za>
To: netfilter@lists.netfilter.org
Subject: Re: Iptables ACCEPT and DROP
Date: Sat, 17 Apr 2004 12:37:18 +0200 [thread overview]
Message-ID: <web-287717304@mail01.infosat.net> (raw)
In-Reply-To: <000201c423da$486c8250$8101a8c0@TELECOMME9F58X>
will the following help:
iptables -A INPUT -i eth0 -p tcp -s 216.155.193.168 --sport
5050 -j DROP
iptables -A OUTPUT -o eth0 -p tcp -d 216.155.193.168
--dport 5050 -j DROP
service iptables stop
/etc/init.d/iptables stop
iptables -F
service iptables start
/etc/init.d/iptables start
or am i missing it completely?
Regards
On Fri, 16 Apr 2004 10:43:07 -0700
"Ravi Verma" <ravi.verma@telecommand.com> wrote:
> Dear Friends:
>
> I have observe a behavior of iptables which I need to
> understand.
>
> 216.155.193.168 is the IP address of Yahoo's messenger
> site and it
> listens on port 5050.
>
> The following command will allows the machine to connect
> to
> 216.155.193.168.
>
> iptables -A OUTPUT -o eth0 -p tcp -d 216.155.193.168
> --dport 5050 -j
> ACCEPT
>
> After that, I see output like following:
>
> #telnet 216.155.193.168 5050
> Trying 216.155.193.168...
> Connected to 216.155.193.168.
> Escape character is '^]'.
>
> Now when I issue
> iptables -A OUTPUT -o eth0 -p tcp -d 216.155.193.168
> --dport 5050 -j
> DROP
> And
> iptables -A OUTPUT -o eth0 -p tcp -d 216.155.193.168
> --dport 5050 -j
> REJECT
>
> Still, it allows connection to 216.155.193.168 on port
> 5050.
>
> How does this work? It seems -j DROP is not opposite of
> -j ACCEPT. How
> can stop this?
>
> Kind regards.
>
> Ravi Verma
>
>
______________________________________________________________
Herbalife Independent Distributor http://www.healthiest.co.za
next prev parent reply other threads:[~2004-04-17 10:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-16 17:43 Iptables ACCEPT and DROP Ravi Verma
2004-04-17 10:37 ` IT Clown [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-04-16 17:56 Ravi Verma
2004-04-16 18:08 ` Antony Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=web-287717304@mail01.infosat.net \
--to=iptables@mailbox.co.za \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.