redhad enterprise 5 iptables 端口映射
来源:互联网 发布:mac qq可以同时登陆 编辑:程序博客网 时间:2024/05/12 10:35
1、linux 服务器 eth0 202.113.25.3 (公网ip)eth1 10.93.121.1 (内网ip),端口映射的机器ip 10.93.121.253 端口:8080
2、进入sbin目录,然后用下面的语句
./iptables -t nat -A PREROUTING -d 202.113.25.3 -p tcp -m tcp --dport 8080 -j DNAT --to-destination 10.93.121.253:8080
./iptables -t nat -A POSTROUTING -d 10.93.121.253 -p tcp -m tcp --dport 8080 -j SNAT --to-source 10.93.121.1
./iptables -A FORWARD -o eth0 -d 10.93.121.253 -p tcp --dport 8080 -j ACCEPT
./iptables -A FORWARD -i eth0 -s 10.93.121.253 -p tcp --sport 8080 -j ACCEPT
3、让10.93.121.253 的8080端口开始监听 ,然后在外网上用 telnet 202.113.25.3 8080 如果成功 说明端口映射已经开启。
- redhad enterprise 5 iptables 端口映射
- iptables 端口映射
- iptables端口映射
- iptables端口映射
- iptables 端口映射
- RedHad 7 关闭 firewall 安装 iptables 配置
- iptables+NAT+端口映射
- iptables 端口映射脚本
- iptables nat及端口映射
- iptables 配置端口映射例子
- 【转】iptables+NAT+端口映射
- iptables 端口映射设置
- iptables端口映射详解
- iptables端口映射设置
- Iptables 完成端口映射
- iptables端口映射详解
- linux iptables端口映射设置
- iptables 端口映射设置
- 命令行管理系统服务工具 sc.exe
- 路由器后面的内网计算机如何向外网提供网络服务
- 浅析C++中的this指针
- ZOJ Problem Set - 2972
- UNIX/LINUX 平台可执行文件格式分析
- redhad enterprise 5 iptables 端口映射
- 获得两个字符串中间的字符串
- CentOS中安装subversion,并使用svn+ssh访问
- 1028: Dividing Up
- 写文件UNICODE相关
- C程序的编译过程
- PHP 多维数组删除某字段或某几个字段
- 自下而上的开发流程
- JAVA的字符串拼接与性能