LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-03-2010, 03:09 PM   #1
derzok
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Debian, Slackware
Posts: 58

Rep: Reputation: 15
SSH Tunnel


I have two computers - CompA and CompB. I currently have an ssh tunnel set up from A to B using a command like: "ssh -D 8080 -f -C -q -N user@myserver.com"

Then on CompA, I open firefox and change it to use a socks proxy at 127.0.0.1. This works just fine - when I visit sites like www.whatismyipaddress.com, it shows CompB's ip address.

Here's my problem: CompB has a bunch of external IP addresses. I'd like to be able to change which IP address it uses when I connect to the proxy. This way, I can use any of CompB's IP addresses when browsing the web from CompA. How is this possible?

I hope that makes sense...
 
Old 06-03-2010, 03:11 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well the source address will just be assigned as the interface used according to the routing table on compB
 
Old 06-04-2010, 09:20 AM   #3
SuperJediWombat!
Member
 
Registered: Apr 2009
Location: Perth, Australia
Distribution: Ubuntu/CentOS
Posts: 208

Rep: Reputation: 51
You would need to change the routing path used from the remote computer to reach the site you are connecting from. As acid_kewpie said, the IP of your webtraffic is decided by the routing table on the remote end.
 
  


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
Help with ssh tunnel gms5002 Linux - Networking 7 10-06-2008 04:18 PM
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 03:15 PM
SSH tunnel help ZST Linux - Networking 2 07-05-2006 01:35 PM
Ssh Tunnel tinaa Linux - Software 7 07-29-2003 07:52 PM

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

All times are GMT -5. The time now is 02:33 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