Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-24-2008, 05:54 AM   #1
Registered: Dec 2007
Posts: 61

Rep: Reputation: 15
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
Old 06-24-2008, 06:52 AM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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.
Old 06-24-2008, 07:49 AM   #3
LQ Newbie
Registered: Mar 2005
Posts: 15

Rep: Reputation: 0
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.
Old 06-24-2008, 08:37 AM   #4
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
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.
Old 06-24-2008, 09:59 AM   #5
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.


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
how can i as the root know what is the last account logged in this computer Muhammed Linux - Software 3 08-17-2007 07:33 AM
computer freezes when logged on internet mcreek Linux - Software 1 04-06-2006 07:26 PM
Computer incorrectly reports number of logged in users phil.d.g Linux - General 5 10-22-2005 04:09 AM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:36 AM.

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
Open Source Consulting | Domain Registration