|
[ language.ini ]
config language=en
[ script.ini ]
add name=autopvc_add_qos index=0 command="qosbook add name _auto_$1_$2 class $3 tx_peakrate $4 tx_sustrate $5 tx_maxburst $6 rx_peakrate $4 rx_sustrate $5 rx_maxburst $6 dynamic yes"
add name=autopvc_delete_qos index=0 command="qosbook delete name _auto_$1_$2"
add name=autopvc_add_bridge index=0 command="qosbook add name _auto_$1_$2 class $3 tx_peakrate $4 tx_sustrate $5 tx_maxburst $6 rx_peakrate $4 rx_sustrate $5 rx_maxburst $6 dynamic yes"
add name=autopvc_add_bridge index=1 command="phonebook add name _auto_$1_$2 addr $1.$2 type any dynamic yes"
add name=autopvc_add_bridge index=2 command="bridge ifadd intf _auto_$1_$2 dest _auto_$1_$2"
add name=autopvc_add_bridge index=3 command="bridge ifconfig intf _auto_$1_$2 qos _auto_$1_$2"
add name=autopvc_add_bridge index=4 command="bridge ifattach intf _auto_$1_$2"
add name=autopvc_delete_bridge index=0 command="bridge ifdetach intf _auto_$1_$2"
add name=autopvc_delete_bridge index=1 command="bridge ifdelete intf _auto_$1_$2"
add name=autopvc_delete_bridge index=2 command="phonebook delete name _auto_$1_$2"
add name=autopvc_delete_bridge index=3 command="qosbook delete name _auto_$1_$2"
add name=autopvc_add_pppoerelay index=0 command="qosbook add name _auto_$1_$2 class $3 tx_peakrate $4 tx_sustrate $5 tx_maxburst $6 rx_peakrate $4 rx_sustrate $5 rx_maxburst $6 dynamic yes"
add name=autopvc_add_pppoerelay index=1 command="phonebook add name _auto_$1_$2 addr $1.$2 type any dynamic yes"
add name=autopvc_add_pppoerelay index=2 command="ethoa ifadd intf _auto_$1_$2 dest _auto_$1_$2"
add name=autopvc_add_pppoerelay index=3 command="ethoa ifconfig intf _auto_$1_$2 qos _auto_$1_$2"
add name=autopvc_add_pppoerelay index=4 command="ethoa ifattach intf _auto_$1_$2"
add name=autopvc_add_pppoerelay index=5 command="ip ifwait intf _auto_$1_$2 timeout 15 adminstatus up"
add name=autopvc_add_pppoerelay index=6 command="pppoe relay add port _auto_$1_$2"
add name=autopvc_delete_pppoerelay index=0 command="pppoe relay delete port _auto_$1_$2"
add name=autopvc_delete_pppoerelay index=1 command="ethoa ifdetach intf _auto_$1_$2"
add name=autopvc_delete_pppoerelay index=2 command="ethoa ifdelete intf _auto_$1_$2"
add name=autopvc_delete_pppoerelay index=3 command="phonebook delete name _auto_$1_$2"
add name=autopvc_delete_pppoerelay index=4 command="qosbook delete name _auto_$1_$2"
add name=autopvc_change_qos index=0 command="$$1 ifdetach intf $2"
add name=autopvc_change_qos index=1 command="$$1 ifconfig intf $2 qos $3"
add name=autopvc_change_qos index=2 command="$$1 ifattach intf $2"
add name=autopvc_change_qos_pppoerelay index=0 command="ethoa ifdetach intf $1"
add name=autopvc_change_qos_pppoerelay index=1 command="ethoa ifconfig intf $1 qos $2"
add name=autopvc_change_qos_pppoerelay index=2 command="ethoa ifattach intf $1"
add name=autopvc_change_qos_pppoerelay index=3 command="pppoe relay add port $1"
add name=autopvc_change_qos_pppoeethoa index=0 command="ethoa ifdetach intf $1"
add name=autopvc_change_qos_pppoeethoa index=1 command="ethoa ifconfig intf $1 qos $2"
add name=autopvc_change_qos_pppoeethoa index=2 command="ethoa ifattach intf $1"
add name=autopvc_change_qos_pppoeethoa index=3 command="pppoe ifattach intf $3"
add name=autopvc_change_qos_pppoa index=0 command="pppoa ifdetach intf $1"
add name=autopvc_change_qos_pppoa index=1 command="ip ifwait intf $1 timeout 5 adminstatus down"
add name=autopvc_change_qos_pppoa index=2 command="pppoa ifconfig intf $1 qos $2"
add name=autopvc_change_qos_pppoa index=3 command="pppoa ifattach intf $1"
[ env.ini ]
set var=CONF_REGION value=World
set var=CONF_PROVIDER value=Basic
set var=CONF_DESCRIPTION value="Routed PPPoE Packet Service configuration using always-on session connectivity."
set var=CONF_SERVICE value="Routed PPPoE - DHCP - NAPT"
set var=CONF_DATE value="Configuration modified manually"
set var=CONF_TPVERSION value=1.2.0
set var=HOST_SETUP value=auto
set var=UPGRADE_URL value=http://www.speedtouch.com/upgrade600.htm
set var=ATM_addr value=8.35
set var=ATM_auto value=active
set var=SNMP_public value=public
set var=SNMP_private value=private
set var=SNMP_contact value="Service Provider"
set var=SNMP_location value="Customer Premises"
set var=PPP_user [email=value=xz4620915@adsl]value=********[/email]
set var=CONF_TEMPLATE value=pppoe.tpl
set var=CONF_USR_COMMENT value="Configuration created by Embedded Wizard (profile:active/pppoe.tpl)"
[ wizard.ini ]
def var=ATM type=grp desc="Specify the details of the PPP Routed Packet Service. All information should be provided by your ISP." alias="Routed PPP Service"
def var=ATM_addr type=combo grp=ATM desc="Choose a VPI/VCI from the list" alias=VPI/VCI default=0.32 data=0.32,0.33,0.34,0.35,0.36,0.37,0.38,0.100,1.32,1.33,1.100,8.35,8.36,8.37,8.48,8.81
def var=ATM_auto type=bool grp=ATM alias=Auto-configured default=passive data=passive,active
def var=PPP type=grp desc="Specify the details of the Routed PPP Account. All information should be provided by your ISP." alias="PPP Account Settings"
def var=PPP_user type=string grp=PPP desc="Enter your Internet connection user name." alias="User Name" req=yes
def var=%PPP_pwd type=passw grp=PPP desc="Enter your Internet connection password." alias=Password req=yes max=32
def var=PPP_ac type=string grp=PPP desc="Enter the PPPoE Access Concentrator Name." alias="Access Concentrator"
def var=PPP_service type=string grp=PPP desc="Enter the PPPoE Service Name." alias="Service Name"
def var=SNMP type=grp desc="Specify SNMP community strings to restrict SNMP access." alias="SNMP Settings"
def var=SNMP_public type=string grp=SNMP desc="Enter the read-only SNMP community string." alias="Read-Only Community"
def var=SNMP_private type=string grp=SNMP desc="Enter the read/write SNMP community string." alias="R/W Community"
def var=ST type=grp desc="Specify user name and password to protect SpeedTouch administrative access." alias="SpeedTouch Security"
def var=%ST_SYS_USERNAME type=string grp=ST desc="Enter user name." alias="User Name"
def var=%ST_SYS_PASSWORD type=passw grp=ST desc="Enter your password." alias=Password max=32
def var=%dummy type=passwcheck grp=ST desc="Re-enter your password" alias="Confirm Password"
[ snmp.ini ]
config RWCommunity=_DEV_18C6137DE97ED4FE ROCommunity=_DEV_CCFF64D36BFF0937 sysC sysName="SpeedTouch 610" sysLocation="Customer Premises" traps=no firstTrapDelay=90 atmmib=no
[ phone.ini ]
add name=PVC_1 addr=8*35 type=any
[ ipqos.ini ]
config dest=PVC_1 state=enabled
queue config dest=PVC_1 queue=0
queue config dest=PVC_1 queue=1
queue config dest=PVC_1 queue=2
queue config dest=PVC_1 queue=3
queue config dest=PVC_1 queue=4
queue config dest=PVC_1 queue=5
[ qos.ini ]
config format=bytes
add name=default class=ubr
[ oam.ini ]
config clp=1 loopbackid=6a6a6a6a6a6a6a6a6a6a6a6a6a6a6a6a
mode port=dsl0 blocking=enabled
mode port=dsl1 blocking=enabled
mode port=atm2 blocking=enabled
mode port=atm3 blocking=enabled
mode port=aal5 blocking=enabled
mode port=atm5 blocking=enabled
[ pfirewall.ini ]
chain create chain=allow_ipsec_sink
chain create chain=allow_ipsec_source
chain create chain=forward
chain create chain=sink
chain create chain=source
rule create chain=allow_ipsec_sink index=0 prot=udp dstport=ike action=accept
rule create chain=allow_ipsec_sink index=1 prot=ah action=accept
rule create chain=allow_ipsec_sink index=2 prot=esp action=accept
rule create chain=allow_ipsec_sink index=3 srcintfgrp=wan prot=tcp ack=yes action=accept
rule create chain=allow_ipsec_source index=0 prot=udp dstport=ike action=accept
rule create chain=allow_ipsec_source index=1 prot=tcp action=accept
rule create chain=forward index=0 srcintfgrp=wan dstintfgrp=wan action=drop
rule create chain=sink index=0 srcintfgrp=!wan action=accept
rule create chain=sink index=1 prot=udp dstport=dns action=accept
rule create chain=sink index=2 prot=udp dstport=bootpc action=accept
rule create chain=sink index=3 prot=udp dstport=sntp action=accept
rule create chain=sink index=4 prot=icmp icmptype=echo-reply action=accept
rule create chain=sink index=5 prot=icmp icmptype=destination-unreachable action=accept
rule create chain=sink index=6 prot=icmp icmptype=time-exceeded action=accept
rule create chain=sink index=7 prot=udp dstport=snmp log=yes action=count
rule create chain=sink index=8 prot=udp dstport=rip log=yes action=count
rule create chain=sink index=9 action=drop
rule create chain=source index=0 dstintfgrp=!wan action=accept
rule create chain=source index=1 prot=udp dstport=dns action=accept
rule create chain=source index=2 prot=udp dstport=bootps action=accept
rule create chain=source index=3 prot=udp dstport=sntp action=accept
rule create chain=source index=4 prot=udp dstport=syslog action=accept
rule create chain=source index=5 prot=icmp icmptype=echo-request action=accept
rule create chain=source index=6 prot=udp dstport=33434 dstportend=33523 action=accept
rule create chain=source index=7 prot=udp dstport=rip log=yes action=count
rule create chain=source index=8 prot=udp dstport=snmptrap log=yes action=count
rule create chain=source index=9 prot=udp srcport=snmp log=yes action=count
rule create chain=source index=10 action=drop
assign hook=sink chain=sink
assign hook=forward chain=forward
assign hook=source chain=source
[ 本帖最后由 pxjyj 于 2008-4-28 22:49 编辑 ] |
|