Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Importing Destination sets

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA Server 2004 Firewall] >> HTTP Filtering >> Importing Destination sets Page: [1]
Login
Message << Older Topic   Newer Topic >>
Importing Destination sets - 2.Sep.2004 11:56:00 AM   
TomCat1

 

Posts: 23
Joined: 31.Aug.2004
Status: offline
Supposing someone had a download set file called "Banned Advertisement Sites.xml"; exactly how would one import this file into an HTTP ISA 2004 denial rule? Thanks!
Post #: 1
RE: Importing Destination sets - 2.Sep.2004 2:01:00 PM   
tshinder

 

Posts: 47490
Joined: 10.Jan.2001
From: Texas
Status: offline
Hi Tom,

I have a script that will allow this. Send me a note. You'll have to find your own sites, though.

HTH,
Tom

(in reply to TomCat1)
Post #: 2
RE: Importing Destination sets - 5.Sep.2004 8:57:00 AM   
azfar

 

Posts: 487
Joined: 27.Oct.2002
From: Karachi
Status: offline
Please send me a copy
azfarhusain@yahoo.com
Thanks.

(in reply to TomCat1)
Post #: 3
RE: Importing Destination sets - 6.Sep.2004 4:02:00 PM   
tshinder

 

Posts: 47490
Joined: 10.Jan.2001
From: Texas
Status: offline
Hi Azfar,

www.msfirewall.org/UrlSet.zip

HTH,
Tom

(in reply to TomCat1)
Post #: 4
RE: Importing Destination sets - 6.Sep.2004 6:12:00 PM   
azfar

 

Posts: 487
Joined: 27.Oct.2002
From: Karachi
Status: offline
Thanks Tom.

(in reply to TomCat1)
Post #: 5
RE: Importing Destination sets - 2.Oct.2004 9:37:00 AM   
munnobhai

 

Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
When running this vbs an error returns : the system cannot find the file specified.

Line:5
Char:1
Code:80070002
Source:(null)

even the file is there (urls.txt)

(in reply to TomCat1)
Post #: 6
RE: Importing Destination sets - 2.Oct.2004 8:13:00 PM   
munnobhai

 

Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
Hi,
Tom, is there any prior setting to run this vbs ??

(in reply to TomCat1)
Post #: 7
RE: Importing Destination sets - 3.Oct.2004 5:35:00 PM   
munnobhai

 

Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
Dear Tom,
I have solved the problem by doing the following:

1.Adding a url set name manually ('urls' here).
2.Adding a line in your code :
code:
Set Isa = CreateObject("FPC.Root")
Set CurArray = Isa.GetContainingArray
Set RuleElements = CurArray.RuleElements
Set URLSets = RuleElements.URLSets
Set URLSet = URLSets.Item("urls")
Set FileSys = CreateObject("Scripting.FileSystemObject")
Set UrlsFile = FileSys.OpenTextFile("urls.txt", 1)
For i = 1 to URLSet.Count
URLSet.Remove 1
Next
ON Error Resume Next <<<<<------ this line
Do While UrlsFile.AtEndOfStream <> True
URLSet.Add UrlsFile.ReadLine
Loop
WScript.Echo "Saving..."
CurArray.Save
WScript.Echo "Done"

Thanks for the code,
Regards,
Hunaid Haroon

(in reply to TomCat1)
Post #: 8
RE: Importing Destination sets - 7.Oct.2004 2:49:00 PM   
BSDBOY

 

Posts: 37
Joined: 23.Sep.2004
Status: offline
I still canĘt get this to work. May I ask someone to post a clean code again and if I have to do some basic preparation before running script [Confused]
What is the correct syntax for this line?
ON Error Resume Next <<<<<------ this line
Should it be?
ON Error Resume Next
[Wink]

[ October 07, 2004, 02:51 PM: Message edited by: BSDBOY ]

(in reply to TomCat1)
Post #: 9
RE: Importing Destination sets - 7.Oct.2004 3:43:00 PM   
munnobhai

 

Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
Hi,
The wording '<<< this line' is only to mention the addition dont put it in your code !

(in reply to TomCat1)
Post #: 10
RE: Importing Destination sets - 7.Oct.2004 5:30:00 PM   
BSDBOY

 

Posts: 37
Joined: 23.Sep.2004
Status: offline
Hello
I did it already and same problem. I wish I could pass you a screen shot if you give me your mail address. Maybe this script is made for ISA 2000?
[Confused]

(in reply to TomCat1)
Post #: 11
RE: Importing Destination sets - 7.Oct.2004 5:56:00 PM   
TomCat1

 

Posts: 23
Joined: 31.Aug.2004
Status: offline
Try Surf Control for ISA Server 2004. It worked for me! --Tom C

(in reply to TomCat1)
Post #: 12
RE: Importing Destination sets - 7.Oct.2004 7:28:00 PM   
Cturtle

 

Posts: 1
Joined: 7.Oct.2004
Status: offline
quote:
Originally posted by tshinder:
I have a script that will allow this. Send me a note. You'll have to find your own sites, though.

Tomcat1 spoke about "Banned Advertisement Sites.xml". Why did you advice to use a script when importing this .xmlfile is the most simple option?

Regards.

(in reply to TomCat1)
Post #: 13
RE: Importing Destination sets - 8.Oct.2004 7:36:00 AM   
munnobhai

 

Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
quote:
Originally posted by BSDBOY:
Hello
I did it already and same problem. I wish I could pass you a screen shot if you give me your mail address. Maybe this script is made for ISA 2000?
[Confused]

Well, I ran it on ISA2004 you should have missed the first step where you have to create the url set (only the title) in URL Sets in Network Objects manually !

--------------------
Hunaid Haroon
munnobhai@hotmail.com

[ October 08, 2004, 07:38 AM: Message edited by: Hunaid Haroon ]

(in reply to TomCat1)
Post #: 14
RE: Importing Destination sets - 8.Oct.2004 4:18:00 PM   
BSDBOY

 

Posts: 37
Joined: 23.Sep.2004
Status: offline
I mailed you the shot [Wink]

(in reply to TomCat1)
Post #: 15
RE: Importing Destination sets - 8.Oct.2004 4:19:00 PM   
BSDBOY

 

Posts: 37
Joined: 23.Sep.2004
Status: offline
quote:
Originally posted by TomCat1:
Try Surf Control for ISA Server 2004. It worked for me! --Tom C

But that will cost crazy $$$
[Wink]

(in reply to TomCat1)
Post #: 16

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA Server 2004 Firewall] >> HTTP Filtering >> Importing Destination sets Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts