Ethernet through http proxy

11,202 views
Skip to first unread message

Mitch Doran

unread,
May 3, 2013, 9:23:42 PM5/3/13
to andro...@googlegroups.com
Hey guys,
I've been told that ethernet is included with the latest build however at my work place we are behind a proxy. Normally I just run

export http_proxy=http:proxy:80
export https_proxy=http://proxy:80

to get the ethernet to work for internet access on my Ubuntu machine. I havent been able to work out how to get this to work in Android x86 yet because there is no GUI for configuring ethernet and I'm not sure what bash shell commands are used.

Is there a config file for the ethernet setup?

Maksim Lin

unread,
May 5, 2013, 9:31:11 PM5/5/13
to andro...@googlegroups.com
H Mitch,

Which build are you using?
The patch-set that was posted to this list a while ago for ethernet support in ICS did include a UI for configuring ethernet but not for http proxy afaik.
The system-wide http proxy settings are confusingly provided in the via "advanced" tickbox when you connect to a wifi AP. on non-x86 devices so I think that this UI needs to be added to the ethernet settings (in system settings) but for now it looks like you should be able to use setprop to set your proxy:
eg. in terminal on your android device or via adb:

setprop global_http_proxy_host mynetworkproxy
setprop global_http_proxy_port 8080

Maks,

Matthieu Bissat

unread,
Jan 13, 2014, 10:58:07 AM1/13/14
to andro...@googlegroups.com
Hi guys,

I'm trying to configure a proxy in Android x86, but no luck (the ISO I'm using is this one: android-x86-4.3-20130725.iso).

These "setprop global_http_proxy_..." commands shown in this thread do not work.

This command does not work either:
setprop net.gprs.http-proxy http://1.2.3.4:8080

There is no GUI in the VM to set a proxy via Wifi, because the connection does not appear in the "Wifi settings" menu.

Any other ideas?

Thanks in advance,
Matthieu

Takeshi OKAMOTO

unread,
Jun 22, 2014, 4:49:45 AM6/22/14
to andro...@googlegroups.com
Hi guys,

I have found a proxy setting for the ethernet of Android-x86 4.4 (KitKat).

1) Launch "Terminal emulator".
2) Run "su" command for obtaining administrative privileges.
# su
3) Run the following command:
# iptables -t nat -A OUTPUT -o eth0 -p tcp --dport 80 -j DNAT --to proxyserver:port

The "proxyserver" is the IP address of your proxy server.
The "port" is the port number of your proxy server.

Note that the proxy server must support the transparent proxy.

For Squid server, the following setting enables the transparent process:
Version 2.x)
http_port 3128 transparent
Version 3.x)
http_port 3128 intercept

If you need the transparent proxy for https, the following page may be of some help.

Verachten Bruno

unread,
Jun 23, 2014, 5:16:46 AM6/23/14
to android-x86

On Sun, Jun 22, 2014 at 10:49 AM, Takeshi OKAMOTO <takeshi...@gmail.com> wrote:
iptables -t nat -A OUTPUT -o eth0 -p tcp --dport 80 -j DNAT --to proxyserver:port

Thanks for the tip.
Unfortunately, I get "Invalid URL" with each request to the proxy.


--
Bruno Verachten

Antony Stone

unread,
Jun 23, 2014, 10:48:31 PM6/23/14
to andro...@googlegroups.com
Does the proxy work for other clients, and is it working in "transparent" mode
(where it's expecting to intercept standard HTTP requests to a web server,
rather than receive proxy requests from a browser specifically configured to use
a proxy)?


Antony.

--
90% of networking problems are routing problems.
9 of the remaining 10% are routing problems in the other direction.
The remaining 1% might be something else, but check the routing anyway.

Please reply to the list;
please don't CC me.

Verachten Bruno

unread,
Jun 24, 2014, 5:08:43 AM6/24/14
to android-x86
How can I check if it works in transparent mode?
Thanks.

Antony Stone

unread,
Jun 24, 2014, 5:15:52 AM6/24/14
to andro...@googlegroups.com
On Tuesday 24 June 2014 at 11:08:05, Verachten Bruno wrote:

> How can I check if it works in transparent mode?

1. Put the proxy in the route between a client (web browser) and a server
(probably the Internet)

2. Fetch content from the server using the client

3. Look at the log files on the proxy to see whether it intercepted the request
and fetched the content on behalf of the client (the other alternatives being
that the client didn't get any content, therefore interception worked but
proxying didn't, or the client got content, but without going via the proxy,
therefore interception is not working).

For more help on this sort of thing I'd suggest asking on a proxy server
mailing list rather than Android :)

Which proxy are you using?


Regards,


Antony.

--
Bill Gates has personally assured the Spanish Academy that he will never allow
the upside-down question mark to disappear from Microsoft word-processing
programs, which must be reassuring for millions of Spanish-speaking people,
though just a piddling afterthought as far as he's concerned.

- Lynne Truss, "Eats, Shoots and Leaves"

Verachten Bruno

unread,
Jun 24, 2014, 10:25:15 AM6/24/14
to android-x86
Antony,

I'm using Squid, but it's a corporate proxy, I can't modify its configuration.
Thanks for your help, and sorry for the off topic.

Kind regards,
Bruno Verachten

Computer Plaza

unread,
Jun 27, 2014, 11:55:31 AM6/27/14
to andro...@googlegroups.com
Just download "ethernet droid" app from play store. You can set proxy, static ip etc in the app's setting. Hope this helps.

Verachten Bruno

unread,
Jun 30, 2014, 4:31:12 AM6/30/14
to android-x86
Thanks. It almost worked, as it has the same behaviour as the command line we saw previously.
The problem is all mine, I am behind a corporate proxy that is NOT in transparent mode.

Thanks a lot, that's easier to set up for the user.

Kind regards,

Bruno Verachten

Verachten Bruno

unread,
Jan 6, 2015, 5:52:10 AM1/6/15
to android-x86
Hi,

is there any new way of doing this?
I would like to keep using android-x86 under VirtualBox, but without
the internet, it is kind of difficult.
I managed to get BlueStacks working with ProxyCap; is there anything I
could do to get through the proxy from android-x86 (tried the command
line, the app doing the same job, and so on...).

Thanks,
Bruno Verachten

Harry magar

unread,
Feb 27, 2015, 2:35:08 AM2/27/15
to andro...@googlegroups.com
how can i do this with the proxy having username and password like simple basic authentication in squid. 

Bhanu Prakash

unread,
Nov 18, 2016, 6:39:34 PM11/18/16
to Android-x86

Could any one get Android x86 https requests over ethernet proxied ?
Reply all
Reply to author
Forward
0 new messages