Reverse tethering in Debian with proxy autentication

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












This is a question more for Android (feel free to move the question to the respective site) but it is mostly from the way Unix works.



I'm trying to do the reverse tethering to my Samsung J1 (Android 5.1.1) rooted in a PC with Debian Jessie connected to the internet through a proxy and I'm standing in (I think) in the last step. I comment what I have done so far:



On the phone:
Active Developer Options >> Active USB Debugging >> I am going to Anchorage to network and Portable and active zone Anchorage (sorry for the translation, I'm from Cuba) to USB network >> When I do this I open the Virtual Terminal emulator (an apk) and I access as root (su) and I check the network interfaces with ifconfig , which returns a "new" interface called rndis0 and with IP 192.168.42.129



On the PC with Debian:
I open the terminal and I access as root (only to not have to be putting sudo every time) >> ifconfig and it returns a "new" interface called usb0 with IP 192.168.42.111



I ping from the phone to the PC and vice versa and everything is ok (I get answers in the two sides), now it's time to give the phone a gateway, I do it from the same phone (the adb package commands do not work properly when I try to manage the phone networks) with the command:
route add default gw 192.168.42.111 dev rndis0 >> putting here the IP of the PC



At this point I am able to ping the google DNS (both by IP and by name) from the terminal emulator, but now I need to make the applications go through the proxy with my username and password.



Then the question would be: how to tell my Android phone that all the traffic of the applications (principally Whatsapp) go through the proxy (of which, obviously, I have the address, port, username and password)? Any illuminating idea?



Thanks



PS: No way of use WiFi here!!!







share|improve this question




















  • I install WireShark and I start to listen in the usb0 interface...the only way that I sniff packages from this interfaces when I do the ping ... is this normal?
    – k.Cyborg
    Jan 4 at 18:04














up vote
0
down vote

favorite












This is a question more for Android (feel free to move the question to the respective site) but it is mostly from the way Unix works.



I'm trying to do the reverse tethering to my Samsung J1 (Android 5.1.1) rooted in a PC with Debian Jessie connected to the internet through a proxy and I'm standing in (I think) in the last step. I comment what I have done so far:



On the phone:
Active Developer Options >> Active USB Debugging >> I am going to Anchorage to network and Portable and active zone Anchorage (sorry for the translation, I'm from Cuba) to USB network >> When I do this I open the Virtual Terminal emulator (an apk) and I access as root (su) and I check the network interfaces with ifconfig , which returns a "new" interface called rndis0 and with IP 192.168.42.129



On the PC with Debian:
I open the terminal and I access as root (only to not have to be putting sudo every time) >> ifconfig and it returns a "new" interface called usb0 with IP 192.168.42.111



I ping from the phone to the PC and vice versa and everything is ok (I get answers in the two sides), now it's time to give the phone a gateway, I do it from the same phone (the adb package commands do not work properly when I try to manage the phone networks) with the command:
route add default gw 192.168.42.111 dev rndis0 >> putting here the IP of the PC



At this point I am able to ping the google DNS (both by IP and by name) from the terminal emulator, but now I need to make the applications go through the proxy with my username and password.



Then the question would be: how to tell my Android phone that all the traffic of the applications (principally Whatsapp) go through the proxy (of which, obviously, I have the address, port, username and password)? Any illuminating idea?



Thanks



PS: No way of use WiFi here!!!







share|improve this question




















  • I install WireShark and I start to listen in the usb0 interface...the only way that I sniff packages from this interfaces when I do the ping ... is this normal?
    – k.Cyborg
    Jan 4 at 18:04












up vote
0
down vote

favorite









up vote
0
down vote

favorite











This is a question more for Android (feel free to move the question to the respective site) but it is mostly from the way Unix works.



I'm trying to do the reverse tethering to my Samsung J1 (Android 5.1.1) rooted in a PC with Debian Jessie connected to the internet through a proxy and I'm standing in (I think) in the last step. I comment what I have done so far:



On the phone:
Active Developer Options >> Active USB Debugging >> I am going to Anchorage to network and Portable and active zone Anchorage (sorry for the translation, I'm from Cuba) to USB network >> When I do this I open the Virtual Terminal emulator (an apk) and I access as root (su) and I check the network interfaces with ifconfig , which returns a "new" interface called rndis0 and with IP 192.168.42.129



On the PC with Debian:
I open the terminal and I access as root (only to not have to be putting sudo every time) >> ifconfig and it returns a "new" interface called usb0 with IP 192.168.42.111



I ping from the phone to the PC and vice versa and everything is ok (I get answers in the two sides), now it's time to give the phone a gateway, I do it from the same phone (the adb package commands do not work properly when I try to manage the phone networks) with the command:
route add default gw 192.168.42.111 dev rndis0 >> putting here the IP of the PC



At this point I am able to ping the google DNS (both by IP and by name) from the terminal emulator, but now I need to make the applications go through the proxy with my username and password.



Then the question would be: how to tell my Android phone that all the traffic of the applications (principally Whatsapp) go through the proxy (of which, obviously, I have the address, port, username and password)? Any illuminating idea?



Thanks



PS: No way of use WiFi here!!!







share|improve this question












This is a question more for Android (feel free to move the question to the respective site) but it is mostly from the way Unix works.



I'm trying to do the reverse tethering to my Samsung J1 (Android 5.1.1) rooted in a PC with Debian Jessie connected to the internet through a proxy and I'm standing in (I think) in the last step. I comment what I have done so far:



On the phone:
Active Developer Options >> Active USB Debugging >> I am going to Anchorage to network and Portable and active zone Anchorage (sorry for the translation, I'm from Cuba) to USB network >> When I do this I open the Virtual Terminal emulator (an apk) and I access as root (su) and I check the network interfaces with ifconfig , which returns a "new" interface called rndis0 and with IP 192.168.42.129



On the PC with Debian:
I open the terminal and I access as root (only to not have to be putting sudo every time) >> ifconfig and it returns a "new" interface called usb0 with IP 192.168.42.111



I ping from the phone to the PC and vice versa and everything is ok (I get answers in the two sides), now it's time to give the phone a gateway, I do it from the same phone (the adb package commands do not work properly when I try to manage the phone networks) with the command:
route add default gw 192.168.42.111 dev rndis0 >> putting here the IP of the PC



At this point I am able to ping the google DNS (both by IP and by name) from the terminal emulator, but now I need to make the applications go through the proxy with my username and password.



Then the question would be: how to tell my Android phone that all the traffic of the applications (principally Whatsapp) go through the proxy (of which, obviously, I have the address, port, username and password)? Any illuminating idea?



Thanks



PS: No way of use WiFi here!!!









share|improve this question











share|improve this question




share|improve this question










asked Jan 4 at 16:29









k.Cyborg

124111




124111











  • I install WireShark and I start to listen in the usb0 interface...the only way that I sniff packages from this interfaces when I do the ping ... is this normal?
    – k.Cyborg
    Jan 4 at 18:04
















  • I install WireShark and I start to listen in the usb0 interface...the only way that I sniff packages from this interfaces when I do the ping ... is this normal?
    – k.Cyborg
    Jan 4 at 18:04















I install WireShark and I start to listen in the usb0 interface...the only way that I sniff packages from this interfaces when I do the ping ... is this normal?
– k.Cyborg
Jan 4 at 18:04




I install WireShark and I start to listen in the usb0 interface...the only way that I sniff packages from this interfaces when I do the ping ... is this normal?
– k.Cyborg
Jan 4 at 18:04















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414802%2freverse-tethering-in-debian-with-proxy-autentication%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414802%2freverse-tethering-in-debian-with-proxy-autentication%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay