- 论坛徽章:
- 0
|
Hi,
我使用Red Hat 9.0,我想通过iptables设置NAT,具体iptables配置如下:
# Load the NAT module (this pulls in all the others).
/sbin/modprobe iptable_nat
# In the NAT table (-t nat), Append a rule (-A) after routing
# (POSTROUTING) for all packets going out ppp0 (-o ppp0) which says to
# MASQUERADE the connection (-j MASQUERADE).
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
# Turn on IP forwarding
echo 1 >; /proc/sys/net/ipv4/ip_forward
当我运行service iptables restart,则出现以下错误信息:
清除所有当前规则及用户定义的链:[ 确定 ]
清除当前所有规则及用户定义的链:[ 确定 ]
应用 iptables 防火墙规则:Bad argument `/sbin/modprobe'
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
请问各位高手为何会出现上述错误 |
|