LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2013, 12:20 PM   #1
kaiyoti
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
Routing question (to a client)


Code:
(Openwrt Router)-----------+
   |     |                 |
   |     +-----------+     +-----(client c)
   |                 |
(client a)       (client b)
Question about routing? I've recently started learning about routing and iptables, but it's still a huge black hole for me.

Here's my goal: to have all clients behind router be behind a US network (I'm from Canada) through ssh tunneling. (SSH tunnel is the only option as I don't have root access on remote server)

Router - Openwrt Linux (32mb ram)

What I've tried: Through a combination of autossh and sshuttle, I managed to be able to keep an active tunneled network on the router in my openwrt router. It works great while it lasts, however, I've noticed that the process gets killed due to the 32mb ram limit. SSHUTTLE relies on python and it seems like that's the bottle neck.

What I want to try: My plan is to offload that SSHUTTLE tunneling to one of the clients (say client c, this device has 1gb ram, and quad core cpu), I will force static ip on this client, outside the dhcp range on the openwrt router. Client A and Client B will both be within the dhcp issued range. I will run sshuttle on client C, then I want to be able to forward ALL requests from the dhcp range to client C. I'm talking every requests... including DNS, HTTPS, etc.

Appreciate if I can get some tip, guide, direction on how I can achieve this.

Last edited by kaiyoti; 07-27-2013 at 12:24 PM.
 
Old 07-27-2013, 01:27 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,376

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
It depends on what's possible on the router. If you have only begun learning the routing stuff, beware that they show you the simple, kludgy, & old stuff first and the more sophisticated stuff later. Ideally the router will have simple processes - python is a hog.

Why not some form of https:// proxy? The only value in what you outline seems to be to make doing something dubious more difficult to detect. Is the us/canada border that perilous a place to network traffic?
 
Old 07-27-2013, 01:38 PM   #3
kaiyoti
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Routing question (to a client)

The openwrt is flexible. I've cross compiled applications for it before, let's assume it's capable of almost anything bound by the limited processor and ram.

I've compiled redsocks for it but have yet tried it because I'm still reading through iptables.

Are there alternatives to my methods that doesn't require root on remote server (starting a tun adapter is out of the question)

You'd think being so close to US, would be easy, but US treats us like any other country.

Last edited by kaiyoti; 07-27-2013 at 01:39 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Openvpn client to client routing question soup Linux - Networking 0 02-16-2006 11:13 AM
Routing issue with VPN Client into PPP/Poptop loopy69 Linux - Networking 1 10-07-2004 08:48 AM
[ROUTING] VPN client networking/firewall loopy69 Linux - Security 0 10-05-2004 08:13 PM
rh9 Routing Prob. using Linux between router and Win Client blish_blash Linux - Networking 17 12-10-2003 08:09 AM
client side routing? heiseltc Linux - Networking 1 03-06-2003 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration