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.