aarony / droidwall

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

add custom rules #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great if we could add custom rules :D

Original issue reported on code.google.com by diazl...@gmail.com on 2 Feb 2010 at 11:54

GoogleCodeExporter commented 9 years ago

Original comment by rodrigo...@gmail.com on 2 Feb 2010 at 11:56

GoogleCodeExporter commented 9 years ago
Great idea, nice app!
Being able to create (and edit :) custom rules would make the droidwall 
complete!
I would like to block on destination IP/Port for all apps for example.

Original comment by RBorlet on 7 Dec 2010 at 12:57

GoogleCodeExporter commented 9 years ago
yes, nice app!
add custom rules feature request +1

Original comment by johnw.m...@gmail.com on 21 Feb 2011 at 9:23

GoogleCodeExporter commented 9 years ago
I try to patch the Api.java to add custom rule

-------------------------------------------------------------
--- Api.java.orig       2011-02-21 19:34:16.204896005 +0800
+++ Api.java    2011-02-21 19:44:48.204896000 +0800
@@ -165,6 +165,10 @@
                        "if " + myiptables + " --version >/dev/null 2>/dev/null ; then\n" +
                        "       IPTABLES="+myiptables+"\n" +
                        "fi\n" +
+                       "\n" + "# add the custom script\n" +
+                       "if [ -x " + dir + "/custom_iptables.sh ]; then\n" +
+                       "       " + dir + "/custom_iptables.sh >/dev/null 
2>/dev/null;\n" +
+                       "fi\n" +
                        "";
        }
        /**
--------------------------------------------------------------------------------
-

Original comment by johnw.m...@gmail.com on 21 Feb 2011 at 11:47

Attachments:

GoogleCodeExporter commented 9 years ago
Hello all, I have just added a functionality called "Custom Script" on r210.
This will be officially released on the next version (DroidWall 1.5.3).

I will add more information about CustomScripts in the wiki.

Original comment by rodrigo...@gmail.com on 23 Sep 2011 at 7:01