From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: {OT} TCP or UDP?
Date: Wed, 25 Feb 2009 07:30:27 -0800 [thread overview]
Message-ID: <49bf44f10902250730u6ddedc12o3a7efeaa0c0f6bde@mail.gmail.com> (raw)
In-Reply-To: <49A44755.5050507@badapple.net>
>>>>> 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
Thanks, I'll take a look through there.
- Grant
prev parent reply other threads:[~2009-02-25 15:30 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
2009-02-25 15:30 ` Grant [this message]
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=49bf44f10902250730u6ddedc12o3a7efeaa0c0f6bde@mail.gmail.com \
--to=emailgrant@gmail.com \
--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