Welcome, Guest. Please login or register.
March 15, 2010, 07:19:46 AM

Login with username, password and session length

371237 Posts
41089 Topics
93669 Members

Latest Member: iccil

Search:     Advanced search | Tag Cloud
+  Welcome to the Comodo Forum
|-+  Archived Boards
| |-+  Discontinued Products
| | |-+  Comodo Firewall
| | | |-+  Help for v2
| | | | |-+  IP Mask and Host Name Options?
« previous next »
Pages: [1] Go Down Print
Author Topic: IP Mask and Host Name Options?  (Read 2127 times)
Toggie
Guest
« on: February 25, 2007, 03:48:29 AM »

Continuing my endeavours to create a more defined and secure rule set for Comodo, I have a query regarding the use of two options under 'Application control Rules' namely, 'IP Mask' and 'Host Name.'

To better understand my question, let us take an example application, in this case Avast Anti-Virus Home, my AV of choice.

Avast uses a great many servers to deliver updates, each with its own IP address. These servers are configured in CIDER notation, which I assume is a supernet:

66.98.0.0./16
67.15.0.0/16
.
.
75.126.0.0/16

And so on.

Further investigation of the Avast 'setup.ini' file located in the Avast program directory, provides us with the host name for these servers:

Server=download24.avast.com
IP=67.15.196.21

Where the number at the end of 'download' changes based upon IP address.

To confute rules for Avast one could simply use:

avast.setup [ANY] 80 TCP Out Allow

However, to be more precise about which servers Avast is allowed to connect to requires more thought and this is where I need some guidance.

Would it be possible to use the 'IP Mask' or 'Host Name' options within CPF to create more specific rules for applications such as Avast.

For example (and I'm guessing the net mask here) under IP Mask, would this work?

66.98.0.0
255.255.0.0

Alternatively, does the 'Host Name' option support wild cards?

If these options are not possible, can anyone think of any other means by which one might achieve this goal?

Thanks for any help. 
Logged
Toggie
Guest
« Reply #1 on: February 25, 2007, 11:01:44 PM »

From what I can see via my tests, the 'Host Name' option is a non-starter. After specifying a host name in the field provided, CPF appends a block of reserved IP addresses, curiously in the format:

NAME : [host name] - 192.168.255.255 - 192.168.255.255

So it would seem this is only useful for something on a LAN.

I'm still working on the IP Mask...

Logged
panic
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 8079


substance constant, depth variable


« Reply #2 on: February 26, 2007, 12:02:28 AM »

From what I can see via my tests, the 'Host Name' option is a non-starter. After specifying a host name in the field provided, CPF appends a block of reserved IP addresses, curiously in the format:

NAME : [host name] - 192.168.255.255 - 192.168.255.255

So it would seem this is only useful for something on a LAN.

I'm still working on the IP Mask...



You can add a routable address (or its non-resolved WWW name) as a host name in a block rule. I'm sending you a PM in more details as to how I use this.

Cheers,
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.
Toggie
Guest
« Reply #3 on: February 26, 2007, 12:07:41 AM »

I think I'm being a bit dim Cry

I've just realised I should be able to use the 'IP range' option. Assuming I can identify exactly each CIDR blocks Avast uses. entering something like:

67.15.0.1 - 67.15.255.255

Should work...
Logged
Triplejolt
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 426


If you are going through hell, keep going!


« Reply #4 on: February 26, 2007, 05:53:16 AM »

NAME : [host name] - 192.168.255.255 - 192.168.255.255

I'm still working on the IP Mask...
You don't need to. This specifies a single host (or a single host broadcastaddress in this case). I believe Comodo already assumes the host subnetmask is 255.255.255.255 (which is standard when specifying hosts).

Instead of working with B-class address range, why not just use the URL? Just insert the download24.avast.com in the host-field and let Comodo do the lookups for you?  Smiley
Logged

Cheers
Triplejolt

"Human salvation lies in the hands of the creatively maladjusted."
Toggie
Guest
« Reply #5 on: February 26, 2007, 04:21:11 PM »

You don't need to. This specifies a single host (or a single host broadcastaddress in this case). I believe Comodo already assumes the host subnetmask is 255.255.255.255 (which is standard when specifying hosts).

Instead of working with B-class address range, why not just use the URL? Just insert the download24.avast.com in the host-field and let Comodo do the lookups for you?  Smiley

Hello Triplejolt Smiley

The problem with this approach is that Avast appears to use a great many individual servers, which change, more or less, each time it updates. By entering 'download24.avast.com' in the 'Hoat Name' field, Comodo correctly queries for the IP Address and inserts 67.15.196.21 - 67.15.196.21.

Doing that way would require a significant number of rules, one for each server.

Toggie
Logged
Toggie
Guest
« Reply #6 on: February 26, 2007, 08:25:29 PM »

Plan B Smiley

It seems that if I am not specific with the host name i.e. download24.avast.com and use just avast.com, CPF will, quite cleverly, append the entire range of IP Addresses assigned to an entity. The same is also true for services such as gmail.

smtp.gmail.com gives a single address
gmail.com gives the entire range

Simple when you know how  Roll Eyes Cheesy Wink
Logged
panic
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 8079


substance constant, depth variable


« Reply #7 on: February 26, 2007, 11:15:36 PM »

Well spotted Toggie. Very clever indeed.

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.
Toggie
Guest
« Reply #8 on: February 27, 2007, 12:21:28 AM »

LOL  Cheesy I'll let you know if it doesn't work!
Logged
panic
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 8079


substance constant, depth variable


« Reply #9 on: February 27, 2007, 01:16:52 AM »

LOL  Cheesy I'll let you know if it doesn't work!

I'd rather you let me know if it did. LOL
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.
Triplejolt
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 426


If you are going through hell, keep going!


« Reply #10 on: February 27, 2007, 03:58:12 AM »

Quote from: Toggie
By entering 'download24.avast.com' in the 'Hoat Name' field, Comodo correctly queries for the IP Address and inserts 67.15.196.21 - 67.15.196.21.

Doing that way would require a significant number of rules, one for each server.
Well... if avast use different hostnames for every server, then you do. I wasn't aware of this, and I must admit it differs from how other competing companies do this. Usually, it's one hostname used in an "umbrella" fashion (in lack of a better word for it). But if Comodo accepts and can use domain names, then by all means. It's a clever solution indeed. Didn't think of that, lol Smiley

Post the results. For the FAQ atleast Smiley
Logged

Cheers
Triplejolt

"Human salvation lies in the hands of the creatively maladjusted."
Toggie
Guest
« Reply #11 on: February 27, 2007, 12:30:08 PM »

Well... if avast use different hostnames for every server, then you do. I wasn't aware of this, and I must admit it differs from how other competing companies do this. Usually, it's one hostname used in an "umbrella" fashion (in lack of a better word for it). But if Comodo accepts and can use domain names, then by all means. It's a clever solution indeed. Didn't think of that, lol Smiley

I agree its a strange way to do things. I would have thought a front end/back end server solution, with a single identifier for the connection i.e. download.avast.com, would have been more sensible, but if you look in the Avast setup.ini file located in the programs install directory, you can see the server that avast last connected to along with its IP.

Quote
Post the results. For the FAQ atleast Smiley

As soon as I have finished testing I'll put together a guide, perhaps, after its been approved, it may be a useful addition for the FAQ.

Toggie
Logged
Triplejolt
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 426


If you are going through hell, keep going!


« Reply #12 on: March 01, 2007, 03:19:50 AM »

Excellent idea!
And maybe the devs will update the hostname field to eg. wildcard and include it in the latest helpfile Wink
Logged

Cheers
Triplejolt

"Human salvation lies in the hands of the creatively maladjusted."
Tags:
Pages: [1] Go Up Print 
« previous next »
Jump to:  

SSL Certificate Free Virus Removal Firewall
Page created in 0.056 seconds with 18 queries.
Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Design by 7dana.com