Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2013, 11:32:42 AM

Login with username, password and session length

663770 Posts
70587 Topics
145223 Members

Latest Member: Leo40

Search:     Advanced search | Tag Cloud
+  Welcome to the Comodo Forum
|-+  Security Products & Services
| |-+  Comodo Internet Security - CIS
| | |-+  Help - CIS
| | | |-+  Firewall Help - CIS
| | | | |-+  What's the difference between IP then selecting TCP and TCP alone
« previous next »
Pages: [1] Go Down Print
Author Topic: What's the difference between IP then selecting TCP and TCP alone  (Read 2237 times)
j0hnnyX
Newbie
*
Offline Offline

Posts: 4


« on: September 13, 2011, 08:22:33 AM »

What's the difference between,

Allow TCP in/out....

and

Allow IP in/out where protocol is TCP

(or UDP)

Sorry I'm a networking noob.

Thanks
Logged
Ronny
Product Translator
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 13182


Volunteer Moderator


« Reply #1 on: September 13, 2011, 08:33:56 AM »

Hi j0hnnyX,

TCP is a connection oriented protocol which has a 'handshake' to setup a connection and after that it is able to send data.
It also has mechanisms to request retransmission of lost packets etc.

UDP is connection less (fire and forget) so there is no 'handshake' overhead, just submit the packet and hope it arrives at the destination.

Both are part of the IP protocol suite.

Here is a nice video on general network/firewall stuff http://www.warriorsofthe.net/

And the wiki for IP, TCP and UDP
http://en.wikipedia.org/wiki/Internet_Protocol
http://en.wikipedia.org/wiki/Transmission_Control_Protocol
http://en.wikipedia.org/wiki/User_Datagram_Protocol

I can't see an option in CIS where you can define IP in/out AND TCP or UDP, it's either IP in/out or TCP/UDP in/out.

If you use IP option in the firewall rules you basically allow TCP and UDP and ICMP traffic with that rule.
Where if you use TCP or UDP or ICMP you restrict it to that type of traffic only.

Next to the traffic there are ports that are used to connect to a service, like 80 for http server, 25 for sending out mail via SMTP etc.
Here is a list of those ports that are reserved for special purposes.
http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

e.g.
http traffic = TCP traffic on port 80
dns traffic  = UDP and TCP traffic on port 53
ping traffic = ICMP traffic

Hope this helps a bit.
Logged

Volunteer Moderator
Any concerns? Please send me a PM or review the Forum Policy -  update Jan 3rd 2013!
j0hnnyX
Newbie
*
Offline Offline

Posts: 4


« Reply #2 on: September 13, 2011, 08:37:45 AM »

Thanks for you reply Ronny.

I know the basics of TCP/IP and UDP however I'm particularly confused about "IP where protocol is TCP (or another protocol)" and I want to understand when to use which.

When you add a rule if you select protocol as IP you get a tab named "IP details" where you can select a number of protocols like TCP, UDP, ICMP, IGMP etc...
Logged
clockwork
Comodo's Hero
*****
Offline Offline

Posts: 1919


Oxygen requires Chuck Norris to live


« Reply #3 on: September 13, 2011, 09:00:21 AM »

for normal internet using you need
just outgoing
tcp and/or udp

if you run a server or p2p you could need to allow very specific ingoing traffic.

if you want to block traffic in general, you should use IP (combines all protocolls), so you dont need to block each of the protocolls after another.

you should not use IP for allowing ingoing traffic (IF you would need one day to allow something ngoing).

try if all runs with outgoing tcp/udp. if all runs, you dont need to allow more.
a global rule should be "block IP in any any any". so you will not get annoyed by unrequested ingoing traffic questions.
Logged

"If there is a problem, it`s something interesting. Try to circumvent or fix it.
In the old ages there was no support. That`s why we got the brain we have today.
Otherwise we would only be able to call a number and listen."
Ronny
Product Translator
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 13182


Volunteer Moderator


« Reply #4 on: September 13, 2011, 10:33:00 AM »

I know the basics of TCP/IP and UDP however I'm particularly confused about "IP where protocol is TCP (or another protocol)" and I want to understand when to use which.
I only use those if I can't match the rule on TCP or UDP or ICMP.

So if your trying to stop something that isn't TCP or UDP or ICMP you can use this, e.g. your on a corporate LAN and it has multicast configured you might see IGMP traffic show up in your logfiles, now if you wish to filter those you could use this option.
Logged

Volunteer Moderator
Any concerns? Please send me a PM or review the Forum Policy -  update Jan 3rd 2013!
Tags: tcp protocol 
Pages: [1] Go Up Print 
« previous next »
Jump to:  

SSL Certificate Free Virus Removal Firewall
Page created in 0.057 seconds with 23 queries.
Powered by SMF 1.1.18 | SMF © 2006, Simple Machines Design by 7dana.com