Find the answer to your Linux question:
Results 1 to 5 of 5
hello guys i am running ncat (netcat's new version from nmap) on centos . I am listening on different ports. My question is , is it possible that when a ...
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    3

    Netcat question / Port redirection?

    hello guys

    i am running ncat (netcat's new version from nmap) on centos . I am listening on different ports. My question is , is it possible that when a connection is received on a port say 123, i redirect this connection to a different port and use the 123 port again for listening connections.

    ncat has an option -k which u can add with -l , it will force fully listen on the port. It can accept multiple connections on a single port but i want that once a client connects on to 123 port, he is forwarded to some other port and no longer on 123 .

    can any one give a solution to this problem?

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    you something like this?
    Redirecting Ports With Netcat - Forums
    linux user # 503963

  3. #3
    Just Joined!
    Join Date
    Apr 2010
    Posts
    3
    i dont think this will solve my problem.

  4. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    how doesn't it? once someone connects, you pipe that connection to another port.
    linux user # 503963

  5. #5
    Just Joined!
    Join Date
    Apr 2010
    Posts
    3
    Quote Originally Posted by scathefire View Post
    how doesn't it? once someone connects, you pipe that connection to another port.
    because the port 123 will still be occupied.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...