Redirecting port requests

2009-05-13 13:17:15来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

This example shows you how to redirect incoming http requests to a machine on your internal LAN.  You could also use this method to redirect telnet, ftp, etc.
The www uses the
http
protocol.  I run MS FrontPage 98 on NT1.  I wanted to redirect http requests from the gateway machine to the web server on NT1.  It was pretty easy, but a few hurdles along the way.
Please note, that this was for my testing and education only.  I don't intend to continue to redirect such requests.  But I wanted to try it.  Just to see.   Eventually, I plan to add http to my gateway machine as yet another place to publish my webpage.
Looking at the
natd manual
, it shows that redirect_port is the command line option to use.  I added the following line to my natd.conf file.  Please note, the IP address has been changed for security reasons.
redirect_port tcp 111.222.333.444:80
redirect_port ucp 111.222.333.444:80
And I tried to access the page from my own subnet.  But I couldn't.  So I jumped on efnet #freebsd to verify my solution.  I received confirmation that what I was doing was correct.  And to as a test, it was suggested that I get an external shell and try that.  External shell?  What's that?
In the end, my helper asked for the URL and they tried it.  No luck.
Brain wave!
Filter rules.... kill the filter rules.  I cleared out the filter rules and asked him to try again.  This time, success!


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_523242.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Firewalls, filtering, ipfw, and FTP clients

下一篇:Reading my mail from NT1 (qpopper)