Results 1 to 4 of 4
i use this command:
ssh -L 9999:localhost:80 user(at)domain.com
to connect, everything works fine but when i set firefox to use the proxy i just get a blank white page. firefox ...
- 05-09-2010 #1Just Joined!
- Join Date
- May 2010
- Posts
- 5
SSH forwarding HTTP problem
i use this command:
ssh -L 9999:localhost:80 user(at)domain.com
to connect, everything works fine but when i set firefox to use the proxy i just get a blank white page. firefox doesnt say proxy refusing connections, just a blank white page.
however in the ssh terminal i get:
channel 3: open failed: connect failed: Connection refused
i dont know what the problem could be. in SELinux firewall config ive checked sshd and tried allowing port 80 in the firewall but still didnt work.
anyone have any insight on how to get this to work?
- 05-13-2010 #2Just Joined!
- Join Date
- May 2010
- Posts
- 5
really no one can help me out here?
- 05-14-2010 #3
You've said what you did, but not what you are trying to accomplish. What you did was set up a tunnel on port 9999, that will connect to a web server running on 'domain.com', port 80. If you set firefox to use some proxy, it will probably not use anything related to the tunnel you've described.
My instinct is that you're confused about the purpose of the tunnal and/or how to use it. Most often, at least in my experience, a tunnel is set up to allow access to web servers that are otherwise obscured. The tunnel host is used as an intermediary between your browser host and the concealed HTTP server host. For example, three hosts named 'browserhost.your.localdomain', 'tunnelhost.some.remotedomain', and 'wwwhost.some.remotedomain'.
The above builds the tunnel from localhost:12345 to wwwhost.some.remotedomain:80.Code:# # From a shell on 'browserhost'... ssh -L 12345:wwwhost:80 tunnelhost.some.remotedomain
Now, in your browser, go to the URL:
The tunnel will magically transport the request for the localhost address to the rmote address specified when the tunnel was built.Code:http://localhost:12345/some/web/page.html
If this is differnt from what you are trying to accomplish, please add some more information to describe your goal.
--- rod.Stuff happens. Then stays happened.
- 05-14-2010 #4Just Joined!
- Join Date
- May 2010
- Posts
- 5
Thanks for the reply.
I am trying to encrypt all of my web traffic when I am out at a public computer setting like a library and at the same time be able to bypass their firewall.
After some more reading I think I need to take it a step further on my end and set up an actual http proxy (Squid) on my linux pc at home. After that is setup correctly, using the ssh command i posted above should then work, right?
Thanks again.


Reply With Quote