先在/etc./init.d目录中查.一个脚本为forward 美容
#cat /etc/.init.d/forward 婚庆
# !/bin/sh
#forward: .forward. IP packets[成人用品]
#description:f.orward IP packets from one network adapter to a.nother--------------彩票
#this script is only .used by host with 2 adapter.s.
#
[-f /sbin./ipchain] .|| exit 0 建材
case "$1" in
start)
#start. IP f.orwarding 乙肝
. echo -n ".starting IP forwarding..."( 游戏 )
echo "1" .>; /proc/sys/net/ipv4./ip_forward(广告)
ipchains. -F 汽车
ipchai.n -A forward -j MASQ -s .192.168.1.* -d 0.0.0.0;;.
stop)
. #stop IP forwarding虚拟主机
echo -n "St.arting IP f.orwarding..." 鲜花
. echo "0" >; /proc/sys/net/ipv4/ip_forward. 乙肝
ipchains -D forward -j MASQ -s 192.1.68.1.* -d 0.0.0.0. 外汇
;;
restart)
$0 stop
$0 start
;;
)*
echo "Usage: $0 {star.t | stop | re.start}"虚拟主机
exit 1;
esac
exit 0