用ipchains可以做端口映射不?

syangnewer 2005-05-17 09:26:59
我现在想把网关的端口211映射到内网的一台机子上
我看网上好多都是
*************
--例子: start
netbuddy - 2004年 11月26日 05:37
发表主题:
--------------------------------------------------------------------------------
再来个21端口映射,呵呵
#iptables -t nat -A PREROUTING -d 外部IP -p tcp --dport 21 -j DNAT --to 内部IP
#iptables -t nat -A POSTROUTING -d 内部IP -p tcp --dport 21 -j SNAT --to 内部网关地址
-- 例子 end
*************

但我的不支持iptables

我问网管他说只支持ipchains
请问怎么设这个,谢谢了,急啊
...全文
63 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
anhy 2005-05-17
  • 打赏
  • 举报
回复
http://fanqiang.chinaunix.net/a3/b3/20010421/183245.html
anhy 2005-05-17
  • 打赏
  • 举报
回复
http://www.lslnet.com/linux/docs/linux-2329.htm
http://www.phpx.com/cma1821.html
http://www.wonder-yj.com/Garagedooropener/1185.htm
syangnewer 2005-05-17
  • 打赏
  • 举报
回复
谢谢各位了,用ipchains还需要编译一些模块

领导让直接换成iptables,现在我又开始找iptables伪IP上网的资料了
找到一个http://www.pptel.net/content/view/328/37/

等会试试看,各位有什么建议跟帮助我先谢谢啦
sharkhuang 2005-05-17
  • 打赏
  • 举报
回复
http://www.lslnet.com/linux/posts/linux-5318.shtml
sharkhuang 2005-05-17
  • 打赏
  • 举报
回复
ipchains比iprable老

http://fanqiang.chinaunix.net/safe/net/2001-04-21/2421.shtml

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧