Hello,
I have a problem, I want to forward ports trough a SSH tunnel because I cannot open ports. So my idea was to setup a SSH tunnel from my Windows server to a remote location (a linux server of a friend of my) on the remote location I forward some ports in the modem/router to the linux server.
I have al this working. The problem I have is that when the traffic from the internet arrives at the linux server the server isn't sending it to the ssh tunnel (same port number).
Nmap is telling me that the port is forwarded through the modem:
Quote:
Starting Nmap 4.53 ( http://insecure.org ) at 2009-03-17 06:57 CET
Interesting ports on *****:
PORT STATE SERVICE
10422/tcp filtered unknown
Nmap done: 1 IP address (1 host up) scanned in 0.315 seconds
|
But when i run a nmap to the localhost it reports that the port isn't open
Quote:
Starting Nmap 4.53 ( http://insecure.org ) at 2009-03-17 06:57 CET
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
10422/tcp closed unknown
Nmap done: 1 IP address (1 host up) scanned in 0.084 seconds
|
netstat -tunelp | grep 10422 is telling me that the Linux server is listing to port 10422 (configured by me)
Quote:
tcp 0 0 127.0.0.1:10422 0.0.0.0:* LISTEN 1002 19230 6896/1
tcp6 0 0 ::1:10422 :::* LISTEN 1002 19231 6896/1
|
When I run Links2 127.0.0.1:10422 the index of the webserver on the Windows server is shown, so the tunnel is working.
On the Windows server I use putty to make the tunnel (R10422 to localhost:80)
I there anyone who can tell me how to forward the traffic from port 10422 to the tunnel (127.0.0.1:10422).
Below is a graphic with the situation.
http://gerritjanfaber.nl/afbeeldingen/tweakers/idee.jpg
Gerrit jan