austroid / droidwall

Automatically exported from code.google.com/p/droidwall
0 stars 0 forks source link

Droidwall Apply rules times out #233

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Define Droidwall rules
2. Press "Apply rules"
3. Wait until error message: 
"Exit Code -1

iptables v1.4.10

Operation timed-out"

What version of the product are you using? On what operating system?
1.5.7 (Market)

Rules should be applied correctly. Actually they are, but the app set droidwall 
to inactive status after the time out. The script takes very long to set the 
rules correctly. I have around 300 apps installed and the script execution 
takes around 6 minutes on my Samsung Galaxy S running XXJVU + Semaphore 2.5.0bm 
kernel

Any ideas?

Original issue reported on code.google.com by elhen...@gmail.com on 21 Jan 2012 at 4:51

GoogleCodeExporter commented 8 years ago
One more point: Droidwall works well with Semaphore kernel 2.4 which uses an 
older version of busybox. 

Original comment by elhen...@gmail.com on 21 Jan 2012 at 6:58

GoogleCodeExporter commented 8 years ago
Perhaps DW could break large lists into multiple sequentially executed scripts

Original comment by axel.how...@yopmail.com on 26 Jan 2012 at 9:45

GoogleCodeExporter commented 8 years ago
I found out that there is a timeout of 40000 ms implemented in Droidwall for 
starting custom scripts:

http://droidwall.googlecode.com/svn-history/r248/trunk/src/com/googlecode/droidw
all/Api.java
"public static int runScriptAsRoot(Context ctx, String script, StringBuilder 
res) throws IOException {
        return runScriptAsRoot(ctx, script, res, 40000);"

If the ruleset is bigger than ~5000 lines it won't start, error "-1".
But where do I have to give another timeout argument to extend this value?

Original comment by schnipel...@googlemail.com on 29 Jan 2012 at 11:51