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.