EvilZone

Hacking and Security => Hacking and Security => : jorge12745 October 19, 2014, 06:20:44 PM

: Share internet connection with remote PC
: jorge12745 October 19, 2014, 06:20:44 PM
Hey there! I was wondering if it was possible to share internet to a remote PC with ssh. I have acces to an PC remotely but it seems to have no internet... maybe beacause of the proxy. And I was wondering if I could share my internet connection to this computer remotely. The only thing that has came to my mind is to create a ssh tunnel to my local pc with a proxy configured and configure the remote computer to access throw it. Any ideas?

Thanks in advance
: Re: Share internet connection with remote PC
: Architect October 19, 2014, 06:48:44 PM
You need to check out IP tables and forwarding packets. Google will be your friend or you could look on EZ for relevant posts. Happy hunting.
: Re: Share internet connection with remote PC
: jorge12745 October 19, 2014, 08:17:43 PM
Ok, got no idea there... my idea was to work with a vpn over ssh and hope that works to configure a local proxy that does the job, but it's too much way around i guess... can you give me any hint about packet forwarding? I guess that i'd have to configure that (remote) PC to forward all packets through the ssh tunnel? That would get the packets to my local machine? And then? Let the proxy do the rest?
: Re: Share internet connection with remote PC
: Architect October 19, 2014, 08:51:32 PM
The rerouting PC would effectively become your proxy.

When you forward using IP tables you are sending data through a proxy. The remote PC receiving these wouldn't have any idea where they were from except the proxy server that was relaying the packets.

It's kind of like how you can use a VPN and your cellular device to have a hotspot that simply forwards information through the extra hop(s). Very little research is required to learn IP tables and proxying.
: Re: Share internet connection with remote PC
: jorge12745 October 19, 2014, 11:18:00 PM
Ok, thanks, i'll find a way out :)