Solved

How to do port forwarding using nc (netcat) ?

Posted on 2009-04-03
3
1,223 Views
Last Modified: 2012-05-06
How can I do port forwarding using the nc command, so that a host can't act as web server ?
I am looking for configuration something like this..

Client open test.com on his web browser

test.com forward port 80 to example.com [example.com is running as a web server]

so client would get all the web service of example.com while typing test.com on his web browser.

Is there any workaround on this using netcat (nc) ?
0
Comment
Question by:beer9
  • 2
3 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 125 total points
ID: 24059716
inetd+nc
0
 

Author Closing Comment

by:beer9
ID: 31566228
Thanks! :-)
0
 
LVL 62

Expert Comment

by:gheist
ID: 24124834
There is another way to use mkfifo and two instances of nc per connection.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question