论坛风格切换切换到宽版
  • 554阅读
  • 1回复

[问题求助]iptables设置疑惑 [复制链接]

上一主题 下一主题
离线皮子.
 
发帖
2090
C币
-60295
威望
420
贡献值
1
银元
-1
铜钱
4797
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
Hi,
我使用Red Hat 9.0,我想通过i.ptables设置NAT.,具体iptables配置如下:教育

# Load the NAT module (this pul.ls in all th.e others).          婚庆

/sbi.n/modprobe ipta.ble_nat    健康


# In the NAT table .(-t nat), Append a rule (-A) after r.outing           建材
# (POSTROUTING) for all packets goi.ng out ppp0 (-.o ppp0) which says to--------------彩票
# MASQ.UERADE. the connection (-j MASQUERADE).(        游戏          )
iptables -t nat -A. POSTROUTING -o ppp0. -j MASQUERADE外贸

# Turn on IP fo.rwarding             电子
echo 1 >; /proc/.sys./net/ipv4/ip_forward.



当我运行service ipt.ables restart,.则出现以下错误信息:    美容
清除所有当前规则及.用户定义的链:[  确定  ]    健康
清除当前所有规则及用户定义的链:[.  确定  ]电影
应用 iptables 防火墙规则:Bad argument `/sbin./modprobe.'电影
Try `iptables.-restore -h' or 'iptables-restore .--help' for more i.nformation.虚拟主机

请问各位高手为.何会出现上述错误--- 印刷

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线eyes7790.
发帖
2083
C币
-60413
威望
403
贡献值
1
银元
-2
铜钱
4626
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
modprobe iptable_nat不能在IPTABLE的脚本中加载,可以单独方到RC。LOCAL中。
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个