From: kashani <kashani-list@badapple.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: {OT} TCP or UDP?
Date: Tue, 24 Feb 2009 11:15:33 -0800 [thread overview]
Message-ID: <49A44755.5050507@badapple.net> (raw)
In-Reply-To: <200902241851.31645.shrdlu@unlimitedmail.org>
Etaoin Shrdlu wrote:
> On Tuesday 24 February 2009, 18:21, Florian Philipp wrote:
>> Nikos Chantziaras schrieb:
>>> Grant wrote:
>>>> How can I find out whether I should be specifying TCP, UDP, or both
>>>> for iptables (shorewall) config?
>>> By knowing the application's protocol for which you write the rules
>>> for :P [...] So you have to research a bit to see if the
>>> application uses TCP or UDP.
>> You can also have a look at /etc/services which lists the more
>> common protocols and their ports.
>
> Or even sniff the traffic and see which protocols are used.
>
You're going to miss stuff that way. Take for example a DNS server.
Normally requests are UDP over port 53. However once your request
exceeds 512 bytes TCP is used on port 53. That rarely happens and in
fact many ISPs don't seem to be aware that this can happen.
Chances are you're going to find almost everything you need at
http://www.shorewall.net/Documentation_Index.html which is going to far
better than trying to cobble everything together yourself.
kashani
next prev parent reply other threads:[~2009-02-24 19:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 16:39 [gentoo-user] {OT} TCP or UDP? Grant
2009-02-24 16:55 ` [gentoo-user] " Nikos Chantziaras
2009-02-24 17:21 ` Florian Philipp
2009-02-24 17:51 ` Etaoin Shrdlu
2009-02-24 19:15 ` kashani [this message]
2009-02-25 15:30 ` Grant
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=49A44755.5050507@badapple.net \
--to=kashani-list@badapple.net \
--cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox