Solved

How to do port forwarding using nc (netcat) ?

Posted on 2009-04-03
3
1,221 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 61

Accepted Solution

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

Author Closing Comment

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

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now