LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-10-2005, 03:46 AM   #1
benjalien
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 85

Rep: Reputation: 15
SSH port redirect (private ip problem)


Hi everyone,

I have some trouble to access my router's configuration page from the outside. I can easily connect to localhost by doing (as root) ssh mydomain -L80:router:80 -l user (root isn't allowed to connect). This works fine, the true problem is that the router's login page redirects me (when I remember my password ) to 192.168.2.1 (the router's private ip), that my machine cann't absolutely not connect to from outside the network.

So that's it, how can I tell my machine that it has it's dhcp'ed address AND 192.168.2.1 (so that the communication will go through the tunnel)? I tried to modify my /etc/hosts, but I couldn't do something good.

Thanks!

Benja
 
Old 03-10-2005, 05:17 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Probably the easiest way is to add an alias to your own (outside computer's) loopback device with the router address:
ifconfig lo add 192.168.2.1

I haven't actually tried it but the theory sounds good.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SSH public / private keys problem guideweb Linux - Software 7 08-27-2005 09:49 PM
ssh from private ip jkmartha Linux - Networking 1 05-31-2005 12:57 AM
Outside FTP Port 21 redirect to different port inside LAN??? hendrixx Linux - Security 5 06-05-2004 06:42 PM
Problem with iptables port redirect and rh9 zkn Linux - Networking 0 05-05-2004 04:34 PM
anonymous private redirect fatman Linux - General 1 02-27-2004 09:03 AM


All times are GMT -5. The time now is 08:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration