Allow more than 1 program in "Internet Access" tab

Ideas for enhancements to the software
yasha

Allow more than 1 program in "Internet Access" tab

Post by yasha » Sat Feb 23, 2008 8:58 pm

If this has been suggested before, please ignore but

it would be nice if one could configure to allow 2 or more programs internet access in the "Resource Access --> Internet Access" tab.

So that I could chat with yahoo messenger AND surf at the same time while blocking all others.

Thanks.

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Sat Feb 23, 2008 10:32 pm

Well this has been suggested before, but not in it's own thread, so you're safe. :wink:

Anyways though, like I said, this has been suggested before, but currently it hasn't been implemeneted yet, however, it is one of the things on tzuks to-do list, so it should come soon in a future version!

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Sun Feb 24, 2008 11:34 am

OK ... This was requested too many times so I decided to do something about it. I added the concept of process groups, so you can now declare:

Code: Select all

[GlobalSettings]
ProcessGroup=<InternetPrograms>,iexplore.exe,MyDownloadManager.exe,firefox.exe,outlook.exe
(Don't forget to reload the configuration after adding this new setting.)

Then you can go to Sandbox Settings -> Resource Access -> Internet Access,
click Set By Name
and type <InternetPrograms>
(note the <angle brackets> there)

At some later time I will revise the Internet Access page to display a nice list of programs, and manage the process group behind the scenes. For now, you have to do it manually.

A process group can be used almost anywhere a process name can be used, so that should be in OpenXxxPath, ClosedXxxPath, OpenWinClass, ForceProcess, AlertProcess. But NOT in LingerProcess.

And just in case it wasn't clear, <InternetPrograms> is an example, you can declare any name for a process group, and any list of processes.

Available in version 2.23.05:
http://www.sandboxie.com/SandboxieInstall-323-05.exe
tzuk

soccerfan
Posts: 440
Joined: Tue Sep 25, 2007 2:59 pm

Post by soccerfan » Sun Feb 24, 2008 12:42 pm

Code: Select all

[GlobalSettings]
ProcessGroup=<InternetPrograms>,iexplore.exe,MyDownloadManager.exe,firefox.exe,outlook.exe
So, in v3.23.05, could one, for example use the following in, say the default sandbox

ForceProcess=<InternetPrograms>

or even this (hope my syntax is ok).

ClosedFilePath=!<InternetPrograms>,\Device\Afd*
ClosedFilePath=!<InternetPrograms>,\Device\Tcp*
ClosedFilePath=!<InternetPrograms>,\Device\Udp*
ClosedFilePath=!<InternetPrograms>,\Device\RawIp
soccerfan

tarsins
Posts: 31
Joined: Tue Apr 10, 2007 7:33 am
Location: Wales

Post by tarsins » Sun Feb 24, 2008 1:23 pm

A big thank you for this, Tzuk.

I'd abandoned my download manager in favour of the extra security Sandboxie gave me.

It's now back and working fine! :mrgreen:
Steve

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Sun Feb 24, 2008 1:31 pm

Omg tzuk! It's here! :shock:

Hell yeah, I am using this now! One thing though, I am confused...
...
.....

*Edit*
Oh ok, I get it. So you first specify in the GlobalSettings, a ProcessGroup and you assign any name you want to that ProcessGroup (so it acts sort of as a dimmed variable), then you put multiple programs after the name you assigned that should belong to that ProcessGroup, right?

THEN, you go and specify something like:
"ClosedFilePath=!<MyBrowsers>,\Device\Afd*"
That way it will allow all the programs you've added to the "<MyBrowsers>" group (specified in the Global Settings) to access that closed resource right?
Last edited by SnDPhoenix on Sun Feb 24, 2008 2:07 pm, edited 1 time in total.

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Sun Feb 24, 2008 1:39 pm

Awesome! Great feature addition!! :D

MitchE323
Posts: 2268
Joined: Thu Nov 02, 2006 9:32 am

Post by MitchE323 » Sun Feb 24, 2008 1:59 pm

Thank You Tzuk! :D

MitchE323
Posts: 2268
Joined: Thu Nov 02, 2006 9:32 am

Post by MitchE323 » Sun Feb 24, 2008 10:31 pm

OK - is it three steps?

1. Create a group in global
2. ForceProcess that group into a sandbox
3. Limit internet access to only that group

ps - thanx for the colors fix also - :wink:

Guest

Post by Guest » Mon Feb 25, 2008 5:58 am

Hey Can I use that ProcessGroup also with ClosedIpcPath?

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Mon Feb 25, 2008 7:48 am

Anonymous wrote:Hey Can I use that ProcessGroup also with ClosedIpcPath?
Yes you can. :wink:

MitchE323
Posts: 2268
Joined: Thu Nov 02, 2006 9:32 am

Post by MitchE323 » Mon Feb 25, 2008 9:33 am

After playing with it a bit - I see that the answer to my #2 above is that it can be setup that way but doesn't need to be. Again the flexibility of SandboxIE. I have one program that has 3 exe files that require the net. I am able to use ForceFolder on that program and form those 3 files into a ProcessGroup and limit internet access in that sandbox to that group. That is what I couldn't do before. I also see that multiple ProcessGroups is just fine also. Nice!

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Mon Feb 25, 2008 11:08 am

Right Mitch -- it should be fairly flexible. You should also be able to specify

ProcessGroup=<MyGroup>,a.exe
ProcessGroup=<MyGroup>,b.exe

(that is, break a group into more than one line). I say should because I wrote the code to support that, but I didn't actually test this. :)

* * *

As for the questions, can I use <ProcessGroup> in some setting [where only a process name was accepted before] such as ClosedFilePath or ClosedIpcPath,

then answer is yes.

* * *

And finally, I revised the Internet Access page in Sandboxie 3.23.06 to have "Add By Name" and "Add By File" buttons (instead of the old Set By buttons), which manage process groups behind the scenes.

So while the "This is the only program that can accept the Internet" checkbox in Program Setting still restricts access to just one program, you can go to the Internet Access page and add more programs on top of that one program.

This change is backwards compatible, that is, the Internet Access page still accepts the older style of configuration (where there are no process groups).

http://www.sandboxie.com/SandboxieInstall-323-06.exe
tzuk

MitchE323
Posts: 2268
Joined: Thu Nov 02, 2006 9:32 am

Post by MitchE323 » Mon Feb 25, 2008 11:13 am

ProcessGroup=<MyGroup>,a.exe
ProcessGroup=<MyGroup>,b.exe

Would you not have to name your groups differently?

ProcessGroup=<WebItems>,iexplore.exe,wmplayer.exe
ProcessGroup=<PokerStars>,pokerstars.exe,update.exe

EDIT: I see what you mean:
You should also be able to specify
....... the word "also" - got it

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Mon Feb 25, 2008 11:18 am

I meant that it should be possible to say

ProcessGroup=<MyGroup>,a.exe
ProcessGroup=<MyGroup>,b.exe

As an acceptable alternative to

ProcessGroup=<MyGroup>,a.exe,b.exe

Meaning that it isn't an error to declare the same group in more than one line. Anyway, it's just a by-the-way; I think the original way I present groups (all processes on one line) is probably clearer anyway.

EDIT: Oh, I see you got it. :)
tzuk

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest