-   Linux - Newbie (
-   -   Use firefox as if I were logged in another computer (

horacioemilio 06-24-2008 05:54 AM

Use firefox as if I were logged in another computer

at work I can use firefox and connect to the local intranet and do things. At home I can not do it, because it recognises that my IP does not belong to work's LAN. But as I need to work from home I usually do:

1) ssh -X work
2) firefox &

this works but is really slow :(

Is there any other method so I use firefox at home but for each information request it sends it to "work" and there this information is in some way processed by firefox "at work" and then the resulting info is sent to me "at home" so I can work with firefox "at home" as if I were "at work" ?

Thanks in advance

tronayne 06-24-2008 06:52 AM

If your work system has VPN installed (and you have the same "brand" VPN installed on your home system) you can usually connect with VPN and then use your local browser "as if you were in the office." Otherwise, what you're doing is about it I think. I've a similar situation and carry around one of those RSA Security fobs that generate keys I use to get me connected to the work network (which happens to be Cisco although there are others).

Might be worth a look-see.

jhuntwork 06-24-2008 07:49 AM

Setting up a proxy server (like squid) inside your work network that accepts an outside connection from your host would probably also do the job. And it should be quicker since the server would just send you the site data you want, not an entire X session. Of course, this obviously wouldn't work for you if you don't have the means or authority to do this on your work's network.

beadyallen 06-24-2008 08:37 AM

Provided you can control the sshd configuration, you could use

ssh -D <localport> username@remotemachine
This'll set up a forwarded SOCKS proxy server on localhost:<localport> that you can configure in firefox. Check 'man sshd' for details.

theNbomr 06-24-2008 09:59 AM

Or, you can set up a tunnel to forward HTTP traffic through a host at your work. This works if you have a small number of hosts on the workplace intranet to which you wish to connect.
Using your example host 'work':

ssh -L 12380:someWorkHost:80 -L 12480:someOtherWorkHost:80 work
This will set up tunnels through the host 'work', to the other hosts on your work intranet: 'someWorkHost' and 'someOtherWorkHost'.
In your browser, you would then connect to the HTTP server 'someWorkHost' using the URL 'http://localhost:12380/...'. The choice of local ports to use (12380 & 12480 in my example) is arbitrary, except they should be greater than the reserved port numbers (1500, IIRC). Use a 5 digit number less than 65535 and you'll be okay. If there is some easy-to-remember number, use that.
This requires, of course, a compatible system named 'work'. If the one you are presently logging into to run Firefox is almost any Linux host, it should work fine.
This method can be used to tunnel any traffic, not just HTTP. The remote port (80, in the case of HTTP) would need to be set appropriately.
This method will tunnel HTTP traffic, as opposed to all X traffic as you were doing previously, and should result in an accordant increase in speed.
--- rod.

All times are GMT -5. The time now is 07:26 PM.