Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
easyyu
Old
#641  
easyyu's Avatar
Senior Member
Thanks Meter 8
Posts: 144
Join Date: Mar 2011
Quote:
Originally Posted by highlandsun View Post
Don't ask stupid questions. Try it and find out.

Sent from my DROID4 using Tapatalk
I don't think that my question is stupid..because as I assumed it doeasn't work!
I instaled busybox from market..and in terminal print command "busybox route"
It print me few lines and interface name is rmnet0
Then I added next line in custom script in droidwall:
Code:
iptables -A droidwall -j droidwall-3g -o rmnet+
Then disable few apps in droid wall apply rules then enable firewall, and aps conecting to net thgough mobile data as I do nothing!
Is maybe the problem with "-3g" part of command?
Do I need to put some other command?
After all this I go back in terminal windows and print again "busybox route"
It print me same as before, like the route is not accpted! Or I missunderstand something?
Btw I can not acces my iptables -S command in terminal windows, it said that:
Code:
iptables v1.4.11.1 can't initialize iptables `filter`: Persimition denied (you must be root)
Perhaps iptables or your kernel need to be upgraded
I am a root user, phone is router. All apps nicely grant super user.
Thx for helping me!
 
Al936
Old
(Last edited by Al936; 15th August 2012 at 12:46 PM.) Reason: Found dummy mistake
#642  
Senior Member
Thanks Meter 62
Posts: 162
Join Date: Mar 2007
Quote:
Originally Posted by highlandsun View Post
The app has a hardcoded list of network interfaces that it recognizes. Apparently on your device, the 3G network interface is not one it knows about. The same is true on my Droid4, the 3G network is qmi0 and droidwall doesn't know about it. It's simple enough to make it work though, by adding your own custom rule.

This is mine:

Code:
 iptables -A droidwall -j droidwall-3g -o qmi+
Replace "qmi" with the name of your 3G network interface.

Sent from my DROID4 using Tapatalk
I am on Motorola RAZR (GSM version) with ICS 4.04 rom. My routing table is:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.231.247.78 0.0.0.0 UG 0 0 0 qmi0
10.231.247.78 * 255.255.255.255 UH 0 0 0 qmi0
192.168.137.0 * 255.255.255.248 U 0 0 0 usb0
So I added the following custom script
Code:
iptables -A droidwall -j droidwall-3g -o qmi+
and unfortunately DroidWall still allow access over 3G network.

On 2.3.6 rom the following custom script works
Code:
$IPTABLES -I "droidwall" 1 -o qmi+ -j "droidwall-3g"
But it does not work in ICS. There is another recommendation:
Code:
IPTABLES -D OUTPUT -j droidwall
IPTABLES -I OUTPUT 2 -j droidwall
.
It works on ICS 4.0.4 with Google Nexus, but does not works for me

Any other ideas?

Update: Finally custom script works!
Code:
iptables -A droidwall -j droidwall-3g -o qmi+
It was dummy mistake in it initially - word "iptables" was written as "IPTABLES" (with upper case letters). When it was changed with small letters custom script start working
 
easyyu
Old
#643  
easyyu's Avatar
Senior Member
Thanks Meter 8
Posts: 144
Join Date: Mar 2011
I tried evrything and it doesnt work!
Where is the problem?
I using ISC v4.03 and the name of mobile data interface with command "busybox route" is rmnet0.
I added in custom script next command:
Code:
iptables -A droidwall -j droidwall-3g -o rmnet+
then chose app from #g coloumn what to disable, apply rule (firewall is enabled) and then try chosen app. AND NOTHING! App still can reach the mobile data internet!
Why????
Tried ti rst my phone, still nothing.
Any suggestion?

---------- Post added at 06:06 PM ---------- Previous post was at 06:02 PM ----------

Quote:
Originally Posted by Al936 View Post
So I added the following custom script
Code:
iptables -A droidwall -j droidwall-3g -o qmi+
and unfortunately DroidWall still allow access over 3G network.

Update: Finally custom script works!
Code:
iptables -A droidwall -j droidwall-3g -o qmi+
It was dummy mistake in it initially - word "iptables" was written as "IPTABLES" (with upper case letters). When it was changed with small letters custom script start working
Excuse me..but what is the difference between first and last settings? it is totaly same isn't it?
 
Al936
Old
#644  
Senior Member
Thanks Meter 62
Posts: 162
Join Date: Mar 2007
Quote:
Originally Posted by easyyu View Post
Excuse me..but what is the difference between first and last settings? it is totaly same isn't it?
Yes, they are the same. However first time I typed word "IPTABLES" (in upper letters) instead of "iptables" - in this case script does not work on my phone.
And when I type iptables with low letters and applied rules the script start working.
 
easyyu
Old
#645  
easyyu's Avatar
Senior Member
Thanks Meter 8
Posts: 144
Join Date: Mar 2011
Quote:
Originally Posted by Al936 View Post
Yes, they are the same. However first time I typed word "IPTABLES" (in upper letters) instead of "iptables" - in this case script does not work on my phone.
And when I type iptables with low letters and applied rules the script start working.
In my case this trick doesn't work for my Sasmung Galaxy S2
 
linuxnubee
Old
(Last edited by linuxnubee; 18th August 2012 at 02:54 PM.)
#646  
Senior Member
Thanks Meter 12
Posts: 134
Join Date: Apr 2012
has anyone else noticed that when you tick files in blacklist without mistaking whitelist (nothing ticked in error) then applied rules gone into whitelist and found they are too clicked? i think it has no barrier between whitelist and blacklist thus causing utter failure in applying rules (spitting a dummy it is lol). i say this because its whats happened with my dw. also none of the below worked for me either. if rodriguez could fix be hugely appreciated.
i too am on 3g network rmnet. also tried different kernals with no avail. unfortunately its a dud app for me atmo which is a shame. still a great app in development that is a bit beyond me to offer any solutions atmo as my name states linixnubee lol.

forgot to say i have sg2 but as this seems to be specific to droidwall i figured best place to come.
 
adguru
Old
#647  
Junior Member
Thanks Meter 2
Posts: 14
Join Date: Sep 2011
Quote:
Originally Posted by easyyu View Post
I tried evrything and it doesnt work!
Make sure you have disabled "Mobile data limit" in the settings, otherwise the firewall doesn't work.

As for "iptables -S", ensure you have typed "su" and ENTER before using that command. You can verify which user has the shell by typing "whoami".

HP
 
elchanly
Old
#648  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: May 2009
Cool Suggestion

Here is a suggestion : in order to improve my battery life, I shut down access to some apps to the net, just because I work in a bad signal area, but I would be glad if I could just stop using firewall leaving work. How? Using something like llama, or locale, that could execute shell commands like "droidwall --inactive "
Could it be possible? Thx for this great app
 
zman519
Old
#649  
zman519's Avatar
Senior Member
Thanks Meter 196
Posts: 1,986
Join Date: Oct 2010
Location: the Land of Beer & Cheese
Quote:
Originally Posted by elchanly View Post
Here is a suggestion : in order to improve my battery life, I shut down access to some apps to the net, just because I work in a bad signal area, but I would be glad if I could just stop using firewall leaving work. How? Using something like llama, or locale, that could execute shell commands like "droidwall --inactive "
Could it be possible? Thx for this great app
What about the widget? I'm assuming you don't like that idea. What about tasker?

Rocking cm9.1
“Those who would give up Essential Liberty to purchase a little Temporary Safety deserve neither Liberty nor Safety.” Benjamin Franklin

"Those who make peaceful revolution impossible will make violent revolution inevitable." John F. Kennedy

"A government big enough to give you everything you want, is strong enough to take everything you have." Gerald Ford
 
Bil-Ha
Old
#650  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Dec 2012
Location: Damascus
Default I have Samsung Galaxy Ace

Quote:
Originally Posted by rodrigo.zr View Post
This error means that your kernel was not compiled with the necessary netfilter owner module. There is nothing I can do on Droid Wall to make it work on that situation, sorry.

Sent from my HTC Dream using XDA App
I have Samsung Galaxy Ace GT-S5830i And I have the same problem...
if i change the kernel the problem will be fix???

 
Post Reply+
Tags
android, application, data, firewall
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...