LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2006, 09:26 PM   #1
maxsthecat
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
Putty and Port Forwarding


Hi All!

I'm a relative linux noob, and am in need of a bit of help.

I'm trying to set up port forwarding using SSH and Putty (for a windows machine on the work network).

I'm running Fedora 4 with an Apache server and SSH (set up to listen on ports 443 and 22). I've disabled Apache from binding to port 443, and have used iptables to make sure the connection gets through.

Putty is configured to tunnel source port 80 to [linux ip] port 80.

So far, Putty will connect fine to the linux box. After I log in, though, I set IE to use localhost for the proxy on port 80, and I get nothing. No webpages will display at all... Any ideas? The help would be greatly appreciated, as my eyes are getting a bit crossed from reading man pages all day

thanks!!

-Max
 
Old 08-01-2006, 12:10 AM   #2
pddm
Member
 
Registered: Sep 2005
Distribution: Mint 19.2
Posts: 112

Rep: Reputation: 15
PuTTY does not offer tunneling for other applications as far as I know.
It is a SSH Client. You might have to look for another solution.

Port forwarding is usually used if you have a firewall in between you and your destination machine.

IE: You access port 123 on the firewall and get forwarded to port 456 on the destination machine.

It might be helpful to know what you are trying to acheive.
 
Old 08-01-2006, 12:39 AM   #3
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
apache isn't a hypertext proxy. if ssh is forwarding your port 80 of your apache to your workstation and you want to see what apache is serving, point your broswer to localhost but don't play with your proxy settings. if you want to forward a proxy to 'browse' from the server IP, use squid instead of apache.

hth,
-b

Last edited by bdp; 08-01-2006 at 12:40 AM.
 
Old 08-01-2006, 12:42 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You can set up putty for tunneling/port forwarding. I use it here for tunneling VNC. For example, I connect my VNC viewer to 127.0.0.1:1 on my Windows box and putty forwards the connection to port 22 on the Linux box and it gets handed over to the VNC server running there.

What are your settings on the Tunnels tab of putty? I just added a local port number to the Source Port text box (for example 5901) and the server address to the Destination text box (for example ahost.adomain.com.au:5901). I left everything else at default settings.

As others here have already pointed out - it's not for proxying though...
 
Old 08-01-2006, 12:55 AM   #5
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
for diagnostic purposes you can try to telnet into your forwarded port on your workstation-- that's how to find out what is actually there, for instance to decouple your problem into two cases: either the forwarding doesn't work or you have a browser or browser config problem.

if you see anything (text) you can try GET and POST commands to talk to apache directly.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
X11 forwarding to putty client - Slackware lievendp Linux - Software 2 01-13-2006 09:40 AM
ssh with putty and x11 forwarding provkitir Debian 4 06-10-2005 09:58 PM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:32 PM.

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