社区
Linux/Unix社区
帖子详情
iptables 转发多个端口
BruceLin2008
2011-10-12 02:31:36
sudo iptables -t nat -A PREROUTING -p tcp --dport 6000 -j DNAT --to-destination 192.168.1.2:5900
该命令确实能把6000tcp端口的数据转发到5900,但是我想转发多个端口,如到5900,,5901或者更多,我要怎么写规则呢?
iptables里面有提到-m multiport,但是我怎么加要么出错语法错误,要么没有实际转发过去。
分数不够再加,谢谢了
...全文
668
1
打赏
收藏
iptables 转发多个端口
sudo iptables -t nat -A PREROUTING -p tcp --dport 6000 -j DNAT --to-destination 192.168.1.2:5900 该命令确实能把6000tcp端口的数据转发到5900,但是我想转发多个端口,如到5900,,5901或者更多,我要怎么写规则呢? iptables里面有提到-m multiport,但是我怎么加要么出错语法错误,要么没有实际转发过去。 分数不够再加,谢谢了
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
BruceLin2008
2011-10-12
打赏
举报
回复
也试过
DNAT: 改写封包目的地 IP 为某特定 IP 或 IP 范围,可以指定 port 对应的范围,进行完此处理动作后,将会直接跳往下一个规则链(filter:input 或 filter:forward)。范例如下:
iptables -t nat -A PREROUTING -p tcp -d 15.45.23.67 --dport 80 -j DNAT --to-destination 192.168.1.1-192.168.1.10:80-100
不行
iptables
端口
转发
这次实验通过
iptables
实现本地22
端口
转发
和远程3389
端口
转发
,同样从黑客视角只能看到跳板机到黑客IP的流量,但是在跳板机上可以看到双向流量,不管是本地
转发
还是远程
转发
,都是在跳板机上操作的,这一点和
端口
...
利用
iptables
实现
端口
转发
1 、本地
端口
转发
将外网访问本地的4444
端口
的流量
转发
到本地的22
端口
:
iptables
-t nat -A PREROUTING -p tcp --dport 4444 -j REDIRECT --to-ports 22 将本地访问本地的4444
端口
的流量
转发
到本地的22
端口
:...
iptables
转发
mysql_使用
iptables
进行
端口
转发
,支持
端口
段
转发
端口
转发
自然已经介绍过了rinetd和socat这两个简单易用的工具,今天来介绍一下系统自带的
iptables
防火墙
转发
方案。
iptables
防火墙
转发
方案适用于拥有
iptables
工具的系统,其最大特色就是拥有强盗的
转发
性能和支持...
【让云服务器更灵活】
iptables
转发
tcp/udp
端口
请求
路由
转发
是计算机网络...12本机
端口
转发
到本机其它
端口
本机
端口
转发
到其它机器本地服务器搭建samba共享文件夹,挂载到云服务器本地服务器搭建gitlab服务器,挂载到云服务器本地搭建的其它服务器挂载到云服务指定
端口
。
iptables
端口
转发
_使用
iptables
转发
端口
iptables
端口
转发
Port forwarding is simple to do with
iptables
in a Linux box which may probably already being used as the firewall or part of the gateway operation. In Linux kernels, port forwarding ...
Linux/Unix社区
23,217
社区成员
74,540
社区内容
发帖
与我相关
我的任务
Linux/Unix社区
Linux/Unix社区 应用程序开发区
复制链接
扫一扫
分享
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章