I recently overhauled my router’s firewall rules. I erased everything and added minimal permissions for the ports that I need to be open. However I found that Blogger was no longer able to publish to my system’s FTP server. I was able to fix it by setting my router to allow both TCP and UDP on my FTP port, where I had previously set it to only allow TCP.

Now I’m worried that other things (like HTTP/SVN/MySQL/etc.) could be incorrectly blocked because I have everything else set block UDP—or more accurately, to only allow traffic over TCP on the specified ports.

How can I find out which protocols various web-services use? For example, if I have the router set to allow Subversion traffic on port 3690, should I allow TCP, UDP, or BOTH? What about Telnet, POP3, HTTPS, and so on?


  • 1
    What sort of router you've got might be a useful bit of info, don't you think?
    – womble
    Nov 27, 2009 at 7:41
  • No I do not. I am not asking for router specific help, I am asking for protocol/port help.
    – Synetech
    Nov 27, 2009 at 22:54
  • The type of router/firewall could impact the steps required to allow certain protocols. That is probably why womble said it might be useful information.
    – sclarson
    Nov 30, 2009 at 16:51
  • Nope, again I didn’t ask for help on using the router, I don’t care about the steps. I am asking for information on what protocol different web services use, regardless of the router.
    – Synetech
    Jun 20, 2011 at 17:48
  • @Synetech, are you still looking for help with this? It's almost 2 years old and you have an accepted answer already.
    – Chris S
    Jun 20, 2011 at 18:21

2 Answers 2


This what you're looking for?

  • Given that the IANA recommends reserving the same port number for both the UDP and TCP protocols, even if the protocol uses just one or the other, no, I don't think that is what he is looking for.
    – kmarsh
    Nov 30, 2009 at 19:11
  • Actually, you are both right (sort of). The Wikipedia list does indicate some services using TCP, others UDP, and others both, but Blogger requiring UDP to FTP (port 21) the files (even though FTP apparently should not need UDP) seems to indicate that kmarsh’s comment about the IANA may be correct. (There could be a related issue: serverfault.com/questions/89688/…)
    – Synetech
    Dec 1, 2009 at 4:22
  • Even the PortForward guide (portforward.com/english/routers/port_forwarding/Dlink/DI-524/…) indicates to allow both TCP and UDP (though they could just be over-zealous). Could it be the command port (20)?
    – Synetech
    Dec 2, 2009 at 16:12
  • Okay, I’ve removed UDP from the rule according to the aforementioned list. If someone decides to go and do things their own way, then that’s something that would have to be worked around (or avoided altogether). Either way, I no longer use Blogger anyway, I’ve switched to WordPress, so I’ve “locked it down” a bit by taking out UDP.
    – Synetech
    Jun 20, 2011 at 18:12

Very strange that FTP requires UDP ports. Yo can try to run your software that you want to check and simultaneously run "netstat -ano" in terminal, which show you PIDs of processes that produce some network activity. So find with "ps -aux" or taskmanager pid of process you want to check and see of if it tries to connect some port that you're not expected this software to use.

  • 1
    Thank, you. That you said that FTP should not require UDP is exactly the sort of information that I am looking for. For example, I know that BitTorrent traffic could use either, so if I were to make a rule to allow traffic on a BT port, I would set BOTH, but with FTP, I now see that I should not need to allow UDP traffic on the FTP port. Where can I find out whether other Internet services such as HTTP, HTTPS, SMTP, etc. traffic use UDP, TCP or both? I am looking for a simple, single chart or something as opposed to reading through lots of individual RFCs.
    – Synetech
    Nov 28, 2009 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.