longchuan1985 / droidwall

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

Droidwall freezes when applying a new rule (Exit code: -1) #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I add a new rule, and press Apply Rules
2. Droidwall is thinking about this forever
3. I have to force close Droidwall, and then open it. When I open it, the rule 
is applied, and the firewall is up runnin as normal. If I add another rule and 
press apply, the same thing repeats.

What is the expected output? What do you see instead?
Instead of applying the rule, it seems like Droidwall freezes.

What version of the product are you using? On what operating system?
Droidwall v1.5.1, Android v2.3.3

Please provide any additional information below.
My phone is a Samsung Galaxy S2. I am not sure what other info to provide, 
please tell me.

Original issue reported on code.google.com by matt...@julrim.com on 15 Jun 2011 at 7:59

GoogleCodeExporter commented 8 years ago
Sorry... I just realized that I eventually get an errormessage:

"Error applying iptables rules. Exit code: -1. Iptables v1.4.10". 

After this the firewall is disabled. If I then try to enable Droidwall, I get 
the same message after some while. But, if I during the process kill Droidwall 
and then restart it, the firewall is enabled and it works again.

Original comment by matt...@julrim.com on 15 Jun 2011 at 8:05

GoogleCodeExporter commented 8 years ago
Sorry for spamming. I remember now that the problems began like this:
I installed Droidwall and began to add new rules. After a while I noticed that 
there appeared to be a limit to how many rules that could be used. If I, after 
say twenty applications, added a rule I got the error message. When I removed 
the new rule, it worked fine again.

Original comment by matt...@julrim.com on 15 Jun 2011 at 8:12

GoogleCodeExporter commented 8 years ago
This seems to be a very common problem since I updated iptables to version 
1.4.10
Unfortunately, I could never reproduce it in any device that I can test!

Could you please try DroidWall v1.5.0 (previous version) to see if it fixes the 
problem? You can get the APK in the Donwloads section.

Please let me know the results. If that works, I will try to compile the newest 
iptables (1.4.11.1) and see if it works better.

Thanks

Original comment by rodrigo...@gmail.com on 15 Jun 2011 at 2:03

GoogleCodeExporter commented 8 years ago

Original comment by rodrigo...@gmail.com on 15 Jun 2011 at 2:04

GoogleCodeExporter commented 8 years ago
Hello again. Applying rules with version 1.5.0 was no problem (tried a few 
apps), but when I tried to enable the firewall, I recieved the following 
message:

"Error applying iptables rules. Exit code: 1
iptables v1.3.7
[1] Segmentation fault /data/data/com.g...
modprobe: chdir(/system/lib/modules): No such file or directory
(^above line repeated a number of times)
iptables: Protocol wrong type for socket

Original comment by matt...@julrim.com on 16 Jun 2011 at 8:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
exactly the same problems as above - but only since using Droidwall with froyo, 
eclair was no problems

Original comment by tilo....@googlemail.com on 21 Jun 2011 at 5:43

GoogleCodeExporter commented 8 years ago
I was able to compile another iptables version for Android. Seems to be working 
fine on my test devices :)
Can someone please test the attached development version to see if this one 
fixes the "Exit code: -1" problem?
Thanks!

Original comment by rodrigo...@gmail.com on 14 Jul 2011 at 7:44

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Deleted previous post as not needed anymore.

Looks like the quick fix for this issue is to create the /system/lib/modules 
directory, as it doesn't seem to exist in Android 2.3.3 (Samsung Galaxy Tab, 
Overcome 3.0.1 rom) OR Android 2.3.4 (Samsung Galaxy S2, VillianROM 2.0).

Droidwall stops hanging at Apply Rules after the directory is created (with 
root:root ownership as per other files/folders in the /system/lib dir).

Original comment by victor.w...@gmail.com on 16 Jul 2011 at 10:26

GoogleCodeExporter commented 8 years ago
The dev version did not work for me, I get the same "Exit code: -1". Thanks for 
the try though!!

When I created the /system/lib/modules-folder, the problem disappears! Thanks 
for the tip!

Original comment by matt...@julrim.com on 17 Jul 2011 at 6:33

GoogleCodeExporter commented 8 years ago
DroidWall 1.5.2 has been just published on the Android Market!
This version should fix this problem for everyone :)
No workarounds are needed anymore ;)

Original comment by rodrigo...@gmail.com on 20 Jul 2011 at 7:27