QMAIL+MH设计方案(7)_MAIL邮件服务器_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

QMAIL+MH设计方案(7)

作者:黑客防线网安Mail教程网 来源:黑客防线网安Mail教程网 浏览次数:0

本篇关键词:方案设计$DEVICE
黑客防线网安网讯:以下的的rc.config文件装载了初始化的必要组元。 #!/bin/bash # This is adapted Bernhard Hailers old &#115cript LOCAL_NUMBER="91311234" # tel no. 091311234 REMOTE_NUMBER="091112345...
以下的的rc.config文件装载了初始化的必要组元

#!/bin/bash
# This is adapted Bernhard Hailers old script
LOCAL_NUMBER="91311234" # tel no. 091311234
REMOTE_NUMBER="0911123456" # I tel no.
LOCAL_IP="192.168.0.99" # I have dynamic IP so this will do
REMOTE_IP="195.112.123.11" # your I gateway
DEVICE="i0"
SYATH="/in"
ISDNCTRL="$YATH/isdnctrl"
case "$1" in
start)
# turn on isdn
imod /lib/modules/2.0.33/net/slhc.o
imod /lib/modules/2.0.33/misc/isdn.o
sleep 1
# load the hisax module
imod /lib/modules/2.0.33/misc/hisax.o
id=Tel0 type=5 protocol=2 irq=10 io=0x300
echo "starting isdn4linux"
# global
$ISDNCTRL verbose 0
$ISDNCTRL addif $DEVICE # create new interface
$ISDNCTRL addphone $DEVICE in $REMOTE_NUMBER
$ISDNCTRL addphone $DEVICE out $REMOTE_NUMBER
$ISDNCTRL eaz $DEVICE $LOCAL_NUMBER
$ISDNCTRL l2_prot $DEVICE hdlc
$ISDNCTRL l3_prot $DEVICE tra
$ISDNCTRL encap $DEVICE sync
$ISDNCTRL huptimeout $DEVICE 300
$ISDNCTRL chargehup $DEVICE off
$ISDNCTRL secure $DEVICE on
$YATH/ifconfig $DEVICE $LOCAL_IP pointopoint $REMOTE_IP metric 1
$YATH/route add default $DEVICE
$YATH/id /dev/i0 file /etc//optio.id &am
$YATH/route del default
stop)
#turn off isdn
rmmod hisax.o
sleep 1
rmmod isdn.o
rmmod slhc.o
echo "Shutting down isdn4linux"
$ISDNCTRL delif i0

*)
echo "Usage: $0 (start|stop)"
exit 1

esac
    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-19412-1.html
网站维护教程更新时间:2012-12-17 02:13:21  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer