Welcome to the Comodo Forum
Welcome,
Guest
. Please
login
or
register
.
August 21, 2008, 11:22:04 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
184926
Posts
21470
Topics
52066
Members
Latest Member:
egzepher
more news...
Search:
Advanced search
|
Tag Cloud
Welcome to the Comodo Forum
Desktop Security Products
Comodo Firewall
Frequently Asked Questions (FAQ) for Comodo firewall
How To - Understanding & Creating Network Control Rules properly
« previous
next »
Pages:
1
[
2
]
3
4
...
11
Author
Topic: How To - Understanding & Creating Network Control Rules properly (Read 79911 times)
panic
Global Moderator
Comodo's Hero
Offline
Posts: 5314
... and I say to myself, "What a wonderful world"
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #15 on:
September 22, 2006, 01:57:01 AM »
Quote from: Sticky on September 21, 2006, 06:56:01 AM
How would Comodo handle this rule, which would seem to be
logically, and functionally impossible
; considering the current meaning of "source ip" and "destination ip".
example Network Control Rule:
Action = Allow
Protocol = TCP/UDP
Direction = In/Out
Source IP = 5.5.5.5 -this is my ip
Destination IP = 7.7.7.7 -this is site X's ip
Source port = Any
Destination port = Any
Scenario:
When my packet goes out the rule matches ok, but when 7.7.7.7 sends a packet back to me the rule goes FALSE since 7.7.7.7 is now the source. (According to current definition)
The same situation exists with one host being an IP or IP range when the other host is Any IP.
The only time an "In/Out" rule seems logically possible is when
both
the destination IP and source IP ranges are set to "Any". IF Source IP was "Local Machine/Host" and Destination IP was "Remote Machine/Host" then the logic would work just fine and a single rule to cover In/Out would match the rule statement.
Therefore, is it logically or functionally possible to write a single rule to allow "In/Out" communication between MY ip range (or single address) and any other host?
I can see why the earlier definition of "Remote" was changed to "Destination", but swapping which computer "source" and "destination" refers to, based on packet direction, makes the "In/Out" logic simply impossible.....(unless the ip numbers switch computers too, at the same time)
edit 2006.09.21 0850hrs
If a list or set of ip's were possible, the logic could be satisfied by using:
Source IP = 5.5.5.5,7.7.7.7
Destination IP = 5.5.5.5,7.7.7.7
How
would
Comodo parse and implement the example Network Control Rule? Since sets or lists of IP's are not currently possible, would 2 rules need to be written to achieve the desired result?
edit
After giving this some additional thought, and considering the latest definition of "Source IP" and "Destination IP", and those limitations, the solutions i see are:
1. Whenever "In/Out" is selected for a rule: source ip AND destination ip must default to "Any". If u want an In AND Out rule for a specific addy or range then u will need to make 2 rules. The underlying firewall code and interface will need to be changed to "grey out" any choice except
"Any" when an "In/Out" rule is selected.
2. Change "Source IP" to mean (and display) "Local Host/Machine". This will always be YOUR IP. Change "Destination IP" to mean (and display) "Remote Host/Machine. This will always be the remote host(s) IP specification. The underlying firewall code and interface will need to be changed.
______
Sticky
Hey sticky,
Please bear in mind that teh following is just my opinion. I simply don't use In/Out rules at all. I create separate In rules and separate Out rules. In the scenario you've outlined, this would necessitate four rules - in and out for each IP. I prefer this method as I can more readily monitor traffic in and out. Logs are easier to follow and diagnose, in the event of a stuffup, as well.
Hope this helps,
Ewen :-)
Logged
As your mums would say, "If you can't play nice with all the other kiddies, go home".
All users are asked to please read and abide by the
Comodo Forum Policy
.
If you don't like it, don't use the forum.
Rotty
Global Moderator
Comodo's Hero
Offline
Posts: 793
http://www.venganza.org/ - Noodly Appendage
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #16 on:
September 22, 2006, 03:52:07 AM »
So if an In/Out rule is fired you can't tell whether it was going in or out?
cheers, rotty
Logged
The opinions expressed in my posts are my own.
They do NOT necessarily represent or reflect the views of my employer.
Little Mac
Global Moderator
Comodo's Hero
Offline
Posts: 6000
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #17 on:
September 22, 2006, 04:48:49 PM »
mOngOd -
TNX for the great explanation of NCR! I got a lot out of it. Good mental exercise; stretches my li'l brain.
Logged
date
dcfldd split=2G conv=noerror hashwindow=0 hash=md5 hashlog=/mnt/sda1/images/hash.log if=/dev/hda of=/mnt/sda1/images/LM.dd
date
cat LM.dd.* | md5sum > verify.log
date
Sticky
Newbie
Offline
Posts: 11
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #18 on:
September 22, 2006, 06:08:01 PM »
Quote from: panic on September 22, 2006, 01:57:01 AM
Hey sticky,
Please bear in mind that teh following is just my opinion. I simply don't use In/Out rules at all. I create separate In rules and separate Out rules. In the scenario you've outlined, this would necessitate four rules - in and out for each IP. I prefer this method as I can more readily monitor traffic in and out. Logs are easier to follow and diagnose, in the event of a stuffup, as well.
Hope this helps,
Ewen :-)
I certainly agree about not using the "In/Out" rule in part. I wont use (or make) an ""In/Out" rule UNLESS "Source IP" and "Destination IP"
both
equal "Any". Mainly because the logic is impossible if an IP range or address is used in either field. (add "Source Port" and "Destination Port" to our equation... (my head hurts, anybody got an aspirin?
))
My only real point is that I wanted everyone to be aware of the impossible logic that currently exists when trying to make such a rule under the current definitions of "Source IP" and "Destination IP".
I
might
make an "In/Out" rule with a specified IP if anyone knows how the rule would be parsed by the firewall...
I could fire up something like Ethereal and get a friend online to test what the firewall will do, but at this stage of the firewall's development this is a job for the developers... (even if i reported the results, this is a problem that will need the developers' attention anyway. I believe that if they haven't done this yet, they certainly will...
)
It really does need to be fixed one way or another...
I have only been using Comodo firewall for several days now, and except for this one
irritating
issue, like many others I think that
. With just a bit more tuning it might go into history with the likes of Kerio 2.1.5.... High praise indeed.
«
Last Edit: September 22, 2006, 06:33:17 PM by Sticky
»
Logged
m0ng0d
I used to be indecisive, but now I'm not so sure.
Global Moderator
Comodo's Hero
Offline
Posts: 780
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #19 on:
September 26, 2006, 07:20:05 PM »
Quote from: Little Mac on September 22, 2006, 04:48:49 PM
mOngOd -
TNX for the great explanation of NCR! I got a lot out of it. Good mental exercise; stretches my li'l brain.
Thanks for the feedback, I do appreciate it.
Logged
OS:
WinXP x64
Comodo Security:
CFP 3.0.25.378
Other Security:
aVast 4.8 HE, Mailwasher Pro 5.3 LFE
Wish:
x64 iVault for FireFox, x64 CAVS, x64 Comodo Backup
yomahtoot
Newbie
Offline
Posts: 1
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #20 on:
October 11, 2006, 04:38:30 AM »
Hi all. I just installed comodo with its default settings which are said to be robust. But I look at my network control rules and see this:
ID Permission Protocol Source Destination Criteria
0 Allow TCP/UDP Out Any Any
1 Allow ICMP In Any Any Where icmp message is echo request
2 Allow ICMP In Any Any Where icmp message is fragmentation needed
3 Allow ICMP In Any Any Where icmp message is time exceeded
4 Allow IP Out Any Any Where IPPROTO is GRE
5 Allow (+log) IP In/Out Any Any Where IPPROTO is any
Surely the "allow" rules for IDs 1,2 and 3 for allowing incoming echo requests are not a good thing? I've always been told that allowing ping requests to your computer is a security risk. These are the default settings. Should I change them to "block". Also what is IPPROTO GRE?
Thanks.
Logged
Little Mac
Global Moderator
Comodo's Hero
Offline
Posts: 6000
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #21 on:
October 11, 2006, 10:03:46 AM »
Quote from: yomahtoot on October 11, 2006, 04:38:30 AM
Hi all. I just installed comodo with its default settings which are said to be robust. But I look at my network control rules and see this:
ID Permission Protocol Source Destination Criteria
0 Allow TCP/UDP Out Any Any
1 Allow ICMP In Any Any Where icmp message is echo request
2 Allow ICMP In Any Any Where icmp message is fragmentation needed
3 Allow ICMP In Any Any Where icmp message is time exceeded
4 Allow IP Out Any Any Where IPPROTO is GRE
5 Allow (+log) IP In/Out Any Any Where IPPROTO is any
Surely the "allow" rules for IDs 1,2 and 3 for allowing incoming echo requests are not a good thing? I've always been told that allowing ping requests to your computer is a security risk. These are the default settings. Should I change them to "block". Also what is IPPROTO GRE?
Thanks.
I saw (and thought) the same thing when I saw those rules propagated on CPF when I installed it a few weeks ago. I worked my way through m0ng0d's Network Rules post and redid it in accordance with that. I didn't think all the "In" was very good, and a lot of the other stuff just didn't make sense to my non-computer-genius brain.
I had to take some ibuprofen.
Logged
date
dcfldd split=2G conv=noerror hashwindow=0 hash=md5 hashlog=/mnt/sda1/images/hash.log if=/dev/hda of=/mnt/sda1/images/LM.dd
date
cat LM.dd.* | md5sum > verify.log
date
NewUser
Newbie
Offline
Posts: 10
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #22 on:
October 25, 2006, 02:11:39 AM »
I believe the default for rule ID 1 is actually "ICMP Out", not "ICMP In". This should allow you to be the "ping-er" but not the "ping-ee".
Rule IDs 2 and 3 seem to have something to do with determining the appropriate packet size to transmit over a connection, and letting your system know when it needs to re-send data that was lost in transit.
Logged
m0ng0d
I used to be indecisive, but now I'm not so sure.
Global Moderator
Comodo's Hero
Offline
Posts: 780
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #23 on:
November 13, 2006, 08:49:26 PM »
I believe I read that those ICMP lines are needed to resolve some "issues" that people were having seeing some content on certain web-sites.
Please understand that my guide here was written based on an older version of CPF where there were only 3 default rules. My goal was to help people understand how they worked and why they were added as defaults; then I threw my 4th rule in for good measure.
The default rules have evolved over time and are still an excellent starting point. The largest thing that should "separate" users is whether or not they are part of a LAN... because if you're not on a LAN, the ZONE can be easily replaced by your IP in the rules (for example).
Regarding the In/Out "combo" rules... They are invalid for the most part. There are some valid examples of rules using it, but I always prefer using separate rules; keeps things straight in my mind... and I like being able to set a rule to
Log
if i want to watch the traffic or troubleshoot. If the rule contains specific traffic, then my log will be small and easy to sort through to find what I am looking for.
«
Last Edit: November 13, 2006, 09:00:37 PM by m0ng0d
»
Logged
OS:
WinXP x64
Comodo Security:
CFP 3.0.25.378
Other Security:
aVast 4.8 HE, Mailwasher Pro 5.3 LFE
Wish:
x64 iVault for FireFox, x64 CAVS, x64 Comodo Backup
Michele
Comodo Family Member
Offline
Posts: 78
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #24 on:
November 17, 2006, 07:01:16 PM »
Monogod,
What are the current (Nov. 17, 06) default rules?
Logged
When you really look for me, you will see me instantly--
you will find me in the tiniest house of time.
-Kabir
m0ng0d
I used to be indecisive, but now I'm not so sure.
Global Moderator
Comodo's Hero
Offline
Posts: 780
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #25 on:
November 17, 2006, 08:30:04 PM »
As of the official build 2.3.6.81...
The default rules are:
ID Permission Protocol Source Destination Criteria
0 Allow TCP/UDP Out Any Any
1 Allow ICMP Out Any Any Where icmp message is echo request
2 Allow ICMP In Any Any
Where icmp message is fragmentation needed
3 Allow ICMP In Any Any
Where icmp message is time exceeded
4 Allow IP Out Any Any Where IPPROTO is GRE
5 Block (+log) IP In/Out Any Any Where IPPROTO is ANY
If you run the
Add Trusted Network Zone
wizard (if you share a LAN with other PC's), you will also get: (which I promote to be the new ID 0 & 1 rules)
ID Permission Protocol Source Destination Criteria
0 Allow IP Out Any ZONE
1 Allow IP In ZONE Any
«
Last Edit: November 17, 2006, 08:34:07 PM by m0ng0d
»
Logged
OS:
WinXP x64
Comodo Security:
CFP 3.0.25.378
Other Security:
aVast 4.8 HE, Mailwasher Pro 5.3 LFE
Wish:
x64 iVault for FireFox, x64 CAVS, x64 Comodo Backup
Michele
Comodo Family Member
Offline
Posts: 78
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #26 on:
November 17, 2006, 09:18:22 PM »
Monogod,
Thank you very much for taking time to respond. I began a thread: Desktop Security Products/Comodo Firewall/Help/Basic Setup Novice Questions (Nov 14, 06). Several of my initial questions remain unanswered. If you have the time I'd love your input. I need someone technically savvy enough to compare/contrast the automatic configuration with Stem's setup. I can tell you fit the bill.
Also in re to a fix for Avast issue--if there isn't one coming could you please let me know. I understand not all Avast/Comodo users are experiencing difficulties. We were told to upgrade to version 2.4 on the Avast forum, however, I see a Chinese version has been released. I can appreciate the challenge of producing multilingual versions. If this is Comodo's focus for the time being, it's understandable & I can make decisions accordingly.
Perhaps I should have PM'd you. It's not my intent to double post.
Michele
«
Last Edit: November 18, 2006, 12:55:03 AM by Michele
»
Logged
When you really look for me, you will see me instantly--
you will find me in the tiniest house of time.
-Kabir
AOwL
Comodo SuperHero
Global Moderator
Comodo's Hero
Offline
Posts: 2349
Comodo Firewall Pro - Be safe, use protection...
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #27 on:
November 17, 2006, 10:07:24 PM »
There is an English version too, not just Chinese,
Logged
WinXP SP2 HE - IE7 - FF 2 - TB - CFP 2.4 - NOD32 - BoClean -ST - AMD64x2 - 3Gb Ram - 1.5Tb HD
Michele
Comodo Family Member
Offline
Posts: 78
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #28 on:
November 18, 2006, 01:48:04 PM »
AOwL,
You must be referring to the beta release with multiple known issues. Is it buffer overflow that causes the 2.3.6 conflicts with Avast? The logic in beta use as a means of "issue-free" resolution escapes me.
Logged
When you really look for me, you will see me instantly--
you will find me in the tiniest house of time.
-Kabir
Eric Cryptid
Global Moderator
Comodo's Hero
Offline
Posts: 1012
Security Saskquatch
Re: How To - Understanding & Creating Network Control Rules properly
«
Reply #29 on:
December 19, 2006, 09:10:10 AM »
Just a quick question. I have these rules set as the above default with the trusted network included. How come I mainly see Outgoing Blocked items (re Rule 7) yet very very few incoming blocked items? Is it just a case that I'm going to relatively safe sites? just asking...
Logged
Cryptid - Any animal or creature that has been reported to have existed, but has not been proven to.
Security Fanatic
Please Read Forum Policy Before Posting -
https://forums.comodo.com/new_member_information/forum_policy-t1516.0.html
Tags:
Pages:
1
[
2
]
3
4
...
11
« previous
next »
Jump to:
Please select a destination:
-----------------------------
** New to the Comodo Forum? Start Here! **
-----------------------------
=> New Member Information
-----------------------------
Want to help Comodo?
-----------------------------
=> Help Spread the Word - Official Comodo banners and logos
=> How can you help Comodo? (Please we do need you!)
===> Help spread the word! (Please read and help)
===> Comodo website issues for submitting website problems only
=> Please tell us your views and Vote here!
-----------------------------
General Category
-----------------------------
=> Melih's Corner - CEO Talk/Discussions/Blog
=> Which Product do you want Comodo to develop next?
=> General Discussion (off topic) Anything and everything...
===> Member Confessions :-)
===> Funny Photos :-)
===> Cool Stuff
-----------------------------
Desktop Security Products
-----------------------------
=> Comodo Firewall
===> Feedback/Comments/Announcements/News
===> Leak Testing/Attacks/Vulnerability Research
===> Help for v3
===> Help for v2
===> Frequently Asked Questions (FAQ) for Comodo firewall
===> Comodo Firewall Translations
===> Bug Reports
=> Comodo Anti-Viruspyware (CAVS)
===> Help for Comodo AntiVirus
===> FAQ for Comodo Anti-ViruSpyware
===> Feedback/Comments/Announcements/News about CAVS
===> Virus/Malware Removal Assistance
=> Comodo BOClean Anti-Malware
===> Announcements
===> Comodo BOClean Anti-Malware FAQ
=> Comodo DiskShield
=> Comodo Disk Encryption
=> Comodo Secure Email (CSE) Product
===> CSE Beta Corner
===> Frequently Asked Questions (FAQ)
===> Feedback/Comments/Announcements/News about CSE
===> Bug Reports
===> Help for Comodo SecureEmail
=> Comodo Memory Firewall(Buffer Overflow Protection)
===> Help
===> Frequently Asked Questions (Comodo Memory Firewall)
===> Feedback/Comments/Announcements/News
=> Comodo TrustConnect - Securing the Wireless world!
=> Comodo SafeSurf and (Comodo's own toolbar)
=> Backup
===> FAQ for Comodo Backup
===> Help
=> Verification Engine (allows you to verify what you see on the Internet)
=> Comodo Vulnerability Analyzer
=> AntiSpam
=> i-Vault
=> Launch Pad
=> Trusttoolbar
-----------------------------
Desktop Utilities
-----------------------------
=> Comodo Registry Cleaner
-----------------------------
Enterprise Security
-----------------------------
=> Comodo Endpoint Security Manager
-----------------------------
Compliance
-----------------------------
=> PCI DSS Compliance
-----------------------------
Learn about Computer Security and Interact with Security Experts
-----------------------------
=> Computer Firewalls
=> Anti Virus/Malware Products/Other Security products
=> Free Virus/Spyware/Trojan/Malware Removal by Comodo Experts
=> HIPS (Host Intrusion Prevention Systems)
=> Anti Phishing solutions
=> Digital Certificates, Encryption and Digital Signing
=> General Security Questions and Comments (not product related)
-----------------------------
Free Services for End Users
-----------------------------
=> UserTrust - First Independent Website Rating - Empowering our users!
=> User Anywhere (Remote Access product)
=> Comodo Meet (Web Conferencing Product)
=> Hacker Guardian
=> Trustfax (free Trial) (online faxing)
-----------------------------
Free Products
-----------------------------
=> Link to Free Comodo Products
-----------------------------
International Comodo Forums
-----------------------------
=> International Comodo Forums
===> 汉语语言, 漢語語言 / Chinese Simplified, Traditional
===> Nederlands / Dutch
===> Francais / French
===> Deutsch / German
===> ελληνικά / Greek
===> Magyar / Hungarian
===> Italiano / Italian
===> Nihongo / Japanese
===> Norsk / Norwegian
===> Polski / Polish
===> Português/Portuguese
===> По-русски / Russian
===> Espanol / Spanish
===> Svenska / Swedish
===> Turkce / Turkish
===> Українська / Ukrainian
===> tiếng Việt / Vietnamese
-----------------------------
Digital Certificates
-----------------------------
=> Code Signing Certificate
=> Content Verification Certificate
=> Email Certificate
=> SSL Certificate
-----------------------------
Web Server Products
-----------------------------
=> Two Factor Authentication for Web Applications
=> Trustlogo
-----------------------------
Infrastructure Products
-----------------------------
=> ZTL
=> Trustix Enterprise Firewall
-----------------------------
Other
-----------------------------
=> Forum Policy Violation Board
Page created in 0.292 seconds with 20 queries.
Powered by SMF 1.1.5
|
SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Design by
7dana.com