QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 461|回复: 0

Linux4.1怎么做端口映射?请高手指点!

[复制链接]
发表于 2004-12-15 14:37:04 | 显示全部楼层 |阅读模式
我是光纤接入固定公网IP:61.XXX.XXX.XXX在eth0
内网IP:192.168.0.200在eth1我想映射内网里的192.168.0.253端口27015

运行
iptables -A PREROUTING -t nat -p tcp -d 61.XXX.XXX.XXX --dport 27015 -j DNAT --to 192.168.0.253
出现

[root@omain root]# iptables -A PREROUTING -t nat -p tcp -d 61.XXX.XXX.XXX --dport 27015 -j DNAT --to 192.168.0.253 /lib/modules/2.4.26-1/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters. You may find more information in syslog or the output from dmesg /lib/modules/2.4.26-1/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.26-1/kernel/net/ipv4/netfilter/ip_tables.o failed /lib/modules/2.4.26-1/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed iptables v1.2.8: can't initialize iptables table `nat': iptables who? (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.

不知道是怎么回事,请高手指点一下啊!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-14 10:37 , Processed in 0.045009 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表