Home > windows server 2003 > Port forwarding (portmap) works only locally

Port forwarding (portmap) works only locally

September 4Hits:4

There are four hosts

hostA winXP

hostB Win2003

hostC Linux RHEL

hostD Linux RHEL

hostA cannot connect to C and D directly, but B can

hostA connects to hostB using VPN

hostB and hostC belong to the same subnet1

hostD is in subnet2

From hostA I need to connect to hostC and hostD by SSH.

Now I can do it as follows:

1.connecting from hostA to hostB by RDP logon and there:

2.start putty client.

I'd like to omit step 1 and connect from A to C and D directly

On hostB I have admin acoount and configure port forwarding as follows:

netsh interface portproxy add v4tov4 listenport=N1 connectaddress=hostC_IP connectport=N2

netsh interface portproxy add v4tov4 listenport=N3 connectaddress=hostD_IP connectport=N2

netsh interface portproxy show all:

 Listen on IPv4:             Connect to IPv4: Address         Port        Address         Port --------------- ----------  --------------- ----------  *               N1          hostC_IP        N2  *               N3          hostD_IP        N2

Now from hostB I can connect to either C and D:

ssh localhost:N1

ssh localhost:N3

from hostA ssh hostB:N1 works too, but ssh hostB:N3 DON'T

I guess the reason might be different subnets, still have no idea how to fix it. What should I do?


[I never heard of portproxy before so this may be nonsense]

It looks like portproxy was written to enable IPv6 access (http://www.sixxs.net/wiki/PortProxy) (http://technet.microsoft.com/en-us/library/cc776297%28WS.10%29.aspx)

This article http://support.microsoft.com/kb/555744 says:

Symtpons: "Rules for port redirection are set by using command but are not working."

Cause: "The command is sent to the IPV6MON.DLL helper, and because of that it will work only if IPv6 protocol is installed."

Resolution: "Install IPv6 protocol."

Since the local one works and the other doesn't this is possibly irrelevant, but should be checked.

[have you considered installing an ssh server instead ?]

Related Articles

  • Port forwarding (portmap) works only locallySeptember 4

    There are four hosts hostA winXP hostB Win2003 hostC Linux RHEL hostD Linux RHEL hostA cannot connect to C and D directly, but B can hostA connects to hostB using VPN hostB and hostC belong to the same subnet1 hostD is in subnet2 From hostA I need to

  • ssh port forwarding is not available (locally) for IP rather localhost onlyMay 15

    I have a remote machine at example.com with sshd listening to port 1234 and a web service at port 5678. For some reasons, I want to 'localize' the http requests to that web service. When I execute ssh -L 4321:example.com:5678 [email protected] -p 1234

  • Port forwarding issue while accessing local webserver from internet

    Port forwarding issue while accessing local webserver from internetJune 22

    I have hosted a webserver on my laptop. (XAMPP) I have installed wordpress and the website developed is working fine with http://localhost as well as (I have made the IP static) I have also port forwarded as shown in t

  • Port Forward Flask Server in local networkJuly 29

    I have a Flask app from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'Hello, world!' if __name__ == '__main__': app.run(host='', port=7777, debug=True) I tried to port forward to by doing this: ssh

  • Port Forwarding: Why do my local sites on 80 work but not those on 8080?

    Port Forwarding: Why do my local sites on 80 work but not those on 8080?May 23

    I setup my router to forward port 80 to the PC hosting my web site. As a result, I am able to access this url (Don't bother clicking on it, it's just an example): http://my.url.com/ When i click on this link while running on the web sever, it works:

  • SSH remote port forwardingNovember 20

    I want to connect to my computer(local) behind NAT through public accessible server(public). On local: ssh -g -R 8000:localhost:22 [email protected] Then on public: ssh -p 8000 [email protected] But I am getting error: Connection refused. When I login to public

  • Port forwarding through OpenVPN

    Port forwarding through OpenVPNApril 18

    Here's my scenario. I have three hosts. 1) GATEWAY running OpenVPN Server. It has 1 LAN IP ( and 1 OpenVPN IP ( 2) LOCAL-CLIENT, a machine within the same LAN as GATEWAY, with 1 LAN IP ( 3) REMOTE-SERVER, a MySQL s

  • Does my wireless router lack port forwarding or am I missing something that should be obvious?

    Does my wireless router lack port forwarding or am I missing something that should be obvious?December 9

    I am a computer science student with a black, 150mbps Trendnet N150 Wireless Home Router (model TEW-711BR, see: http://www.trendnet.com/products/proddetail.asp?prod=225_TEW-711BR ). My dad gave it to me, and I would like to try out some computer prog

  • Port forwarding with micromax mmx219w plug and play WiFi modemJuly 10

    I'm using a micromax auto plug n play wi fi modem with router functionality, it provides 8 WiFi connections. Model: micromax mmx219w WiFi router. When connected to a USB port, it gets a external IP address, for example from the ISP, an

  • What does port forwarding mean in "SSH port forwarding"?

    What does port forwarding mean in "SSH port forwarding"?October 22

    Wikipedia says In computer networking, port forwarding or port mapping is an application of network address translation (NAT) that redirects a communication request from one address and port number combination to another while the packets are travers

  • IP-dependent local port-forwarding on LinuxJune 2

    I have configured my server's sshd to listen on a non-standard port 42. However, at work I am behind a firewall/proxy, which only allow outgoing connections to ports 21, 22, 80 and 443. Consequently, I cannot ssh to my server from work, which is bad.

  • Local port forwarding on a macNovember 30

    I need to have the mac take traffic coming into it on one port send the traffic to a different but still local port. I.e. Traffic comes in on port 1234 and transfers to port 5900 (vnc) This is because the router wont allow me to set up portforward wh

  • Howto disable SSH local port forwarding?January 6

    I have a server running Ubuntu and the OpenSSH daemon. Let's call it S1. I use this server from client machines (let's call one of them C1) to do an SSH reverse tunnel by using remote port forwarding, eg : ssh -R 1234:localhost:23 [email protected] On S1, I u

  • fwbuilder: port forwarding incoming 222 port requests to a local machine 22 portJanuary 19

    I am using fwbuilder to setup my iptables rules for a public server. The idea is to forward external requests from the 222 port to a local machine's ssh port. The settings i used are: NAT section Original Src: Any Original Dst: public ip (internet) O

  • SOCKS vs. SSH local port forwardingApril 16

    What's the difference between using SOCKS (SSH -D) and local port forwarding (SSH -L) --------------Solutions------------- With -L, SSH forwards all connections to a fixed destination. When you connect to the local port, all data you send goes straig

  • Port forwarding to webserver - still redirects to local IP addressMay 5

    I'm extremely new at unix/linux so please bear that in mind in your answer. I am running an apache server on a Fedora box. I have a static IP and have set up port forwarding through my router/modem - I have opened up port 80, among others, to forward

  • Port Forwarding not working locallyJuly 6

    I have a new Comcast Business Gateway that just replaced my old, perfectly-functional residential modem. I noticed the router I had only had a 10/100 ethernet WAN port but I have a 100mbit connection, so I took the router off and my speeds jumped fro

  • SSH Port Forward a local IRC server to my remote serverJuly 13

    So, I have this slight dilemma: I am not allowed to host an IRC server on my VPS, but I am allowed to use tunneling of some sort to let users connect to an IRC server I have set up locally on my Mac Mini. Basically - how would I go about tunneling co

  • How to make a local web server visible from the internet *without* setting up port forwarding on the router?September 20

    I develop websites on my (high-end) laptop, and I work from a variety of physical locations. I would like to save the hassle of constantly synchronizing with an externally visible web server in order for clients to test progress of the site (or for r

  • How to cancel local port forward from ssh consoleJanuary 13

    I can forward local ports using the command below ssh> help Commands: -L[bind_address:]port:host:hostport Request local forward -R[bind_address:]port:host:hostport Request remote forward -KR[bind_address:]port Cancel remote forward ssh> -L 8080:loca

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.460 s.