128.30.14.233为私网IP
128.30.14.221为公网IP, 尝试目标:在221上开一个端口88映射到233的Ftp端口21上 在221上运行script: service iptables stopiptables -Xecho 1 /proc/sys/net/ipv4/ip_forward/sbin/modprobe iptable_natiptables -t nat -A PREROUTING -d 128.30.14.221 -p tcp -m tcp --dport 88 -j DNAT --to-destination 128.30.14.233:21iptables -t nat -A POSTROUTING -d 128.30.14.233 -p tcp --dport 21 -j MASQUERADEservice iptables saveservice iptables start ftp或CuteFtp毗连 128.30.14.221:88时, ,128.30.14.233为私网IP,这时候需要在233处事器上运行剧本: /sbin/modprobe ip_conntrack_ftp /sbin/modprobe ip_nat_ftp 再重试,一切正常, --------映射Ftp port ------- 128.30.14.221为公网IP,但照旧会碰到425 Security错误,记得用PASV被动模式。
尝试目标:在221上开一个WEB端口88映射到233的80上 -------映射Web port------ service iptables stopiptables -Xecho 1 /proc/sys/net/ipv4/ip_forward/sbin/modprobe iptable_natiptables -t nat -A PREROUTING -d 128.30.14.221 -p tcp -m tcp --dport 88 -j DNAT --to-destination 128.30.14.233:80iptables -t nat -A POSTROUTING -d 128.30.14.233 -p tcp --dport 80 -j MASQUERADEservice iptables saveservice iptables start 打开欣赏器输入 :88 网页显示正常,128.30.14.233为私网IP,正常的Ftp务器架设在233上,正常的Web处事器架设在233上,。
相关热词:
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/server/xunihua/12940.shtml
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
这里就不在阐述
时间:2021-01-20
-
win7下设置FTP处事
时间:2021-01-20
-
可以再前面加help rmdirrem
时间:2021-01-20
-
方案二:在vsftpd的配置文
时间:2021-01-16
-
ICMP协议(Internet互联网控
时间:2021-01-16
-
先挂载ISO到某个目录下(如
时间:2021-01-16
热门文章
-
方案二:在vsftpd的配置文件中增加下列两
时间:2021-01-16
-
ICMP协议(Internet互联网控制报文协议)
时间:2021-01-16
-
先挂载ISO到某个目录下(如我的:/media/r
时间:2021-01-16
-
可以再前面加help rmdirremove directory on the
时间:2021-01-20
-
win7下设置FTP处事
时间:2021-01-20
-
这里就不在阐述
时间:2021-01-20
