免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1518 | 回复: 1
打印 上一主题 下一主题

adsl 动态ip,可以用ppp自带的重定向。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-07-14 00:35 |只看该作者 |倒序浏览
用ipnat不好解决动态ip的重定向到内网的问题,如果要求不高可以ppp自带的重定向功能。不废话了,其余的参见man ppp。
nat port proto targetIP:targetPort[-targetPort] aliasPort[-aliasPort]
             [remoteIP:remotePort[-remotePort]]
             This command causes incoming proto connections to aliasPort to be
             redirected to targetPort on targetIP.  proto is either ``tcp'' or
             ``udp''.

             A range of port numbers may be specified as shown above.  The
             ranges must be of the same size.

             If remoteIP is specified, only data coming from that IP number is
             redirected.  remotePort must either be ``0'' (indicating any
             source port) or a range of ports the same size as the other
             ranges.

             This option is useful if you wish to run things like Internet
             phone on machines behind your gateway, but is limited in that
             connections to only one interior machine per source machine and
             target port are possible.

例:重定向ftp到192.168.1.10。编辑/etc/ppp.conf加上
     nat enable yes
       nat port tcp 192.168.1.10:20-21 20-21
注意要打开net.inet.ip.forwarding: 1

论坛徽章:
0
2 [报告]
发表于 2003-10-11 20:39 |只看该作者

adsl 动态ip,可以用ppp自带的重定向。

我没有试验成功,真的不知道该怎么办了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP