Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-10-2005, 03:46 AM   #1
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 86

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 (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 (so that the communication will go through the tunnel)? I tried to modify my /etc/hosts, but I couldn't do something good.


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

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

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


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 02:52 PM.

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