Author Topic: Share internet connection with remote PC  (Read 476 times)

0 Members and 1 Guest are viewing this topic.

Offline jorge12745

  • NULL
  • Posts: 3
  • Cookies: -1
    • View Profile
Share internet connection with remote PC
« on: 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

Offline Architect

  • Sir
  • ***
  • Posts: 428
  • Cookies: 56
  • STFU
    • View Profile
    • Rootd IRC
Re: Share internet connection with remote PC
« Reply #1 on: 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.

Offline jorge12745

  • NULL
  • Posts: 3
  • Cookies: -1
    • View Profile
Re: Share internet connection with remote PC
« Reply #2 on: 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?
« Last Edit: October 19, 2014, 08:19:01 pm by jorge12745 »

Offline Architect

  • Sir
  • ***
  • Posts: 428
  • Cookies: 56
  • STFU
    • View Profile
    • Rootd IRC
Re: Share internet connection with remote PC
« Reply #3 on: 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.

Offline jorge12745

  • NULL
  • Posts: 3
  • Cookies: -1
    • View Profile
Re: Share internet connection with remote PC
« Reply #4 on: October 19, 2014, 11:18:00 pm »
Ok, thanks, i'll find a way out :)