## CentreCOM AR550S 設定例集 2.9
##  164 PPPoE ACによるRADIUS認証と公平制御
##  ルーターAのコンフィグ

CREATE PPP=9 OVER=eth0-ANY 
SET PPP=9 OVER=eth0-ANY BAP=OFF IPREQUEST=ON USER=user1 PASS=passwd1 LQR=off ECHO=ON  
CREATE PPP TEMPLATE=1
SET PPP TEMPLATE=1 IDLE=OFF BAP=OFF AUTHENTICATION=CHAP
ADD PPP ACSERVICE=PPPoE1 TEMPLATE=1 MAXSESSIONS=8 ACINTERFACE=vlan1
ENABLE PPP ACCESSCONCENTRATOR
ENABLE IP
ENABLE IP REMOTE
ADD IP INT=ppp9 IP=0.0.0.0 MASK=0.0.0.0
ADD IP ROUTE=0.0.0.0 INT=PPP9 NEXTHOP=0.0.0.0
ENABLE FIREWALL
CREATE FIREWALL POLICY=net
ENABLE FIREWALL POLICY=net ICMP_F=PING,UNREACH
DISABLE FIREWALL POLICY=net IDENTPROXY
CREATE FIREWALL POLICY=net DYNAMIC=alluser
ADD FIREWALL POLICY=net DYNAMIC=alluser USER=ANY
ADD FIREWALL POLICY=net INT=DYN-alluser TYPE=PRIVATE 
ADD FIREWALL POLICY=net INT=ppp9 TYPE=PUBLIC 
ADD FIREWALL POLICY=net NAT=ENHANCED INT=DYN-alluser GBLINT=ppp9
ENABLE SQOS
CREATE CLASS=1 IPSA=192.168.100.1
CREATE CLASS=2 IPSA=192.168.100.2
CREATE CLASS=3 IPSA=192.168.100.3
CREATE CLASS=4 IPSA=192.168.100.4
CREATE CLASS=5 IPSA=192.168.100.5
CREATE CLASS=6 IPSA=192.168.100.6
CREATE CLASS=7 IPSA=192.168.100.7
CREATE CLASS=8 IPSA=192.168.100.8
CREATE SQOS TRAFFICCLASS=1 WEIGHT=1
CREATE SQOS TRAFFICCLASS=2 WEIGHT=1
CREATE SQOS TRAFFICCLASS=3 WEIGHT=1
CREATE SQOS TRAFFICCLASS=4 WEIGHT=1
CREATE SQOS TRAFFICCLASS=5 WEIGHT=1
CREATE SQOS TRAFFICCLASS=6 WEIGHT=1
CREATE SQOS TRAFFICCLASS=7 WEIGHT=1
CREATE SQOS TRAFFICCLASS=8 WEIGHT=1
CREATE SQOS POLICY=1 WEIGHTSCHEDULER=DWRR
ADD SQOS POLICY=1 TRAFFICCLASS=1-8
ADD SQOS TRAFFICCLASS=1 CLASS=1
ADD SQOS TRAFFICCLASS=2 CLASS=2
ADD SQOS TRAFFICCLASS=3 CLASS=3
ADD SQOS TRAFFICCLASS=4 CLASS=4
ADD SQOS TRAFFICCLASS=5 CLASS=5
ADD SQOS TRAFFICCLASS=6 CLASS=6
ADD SQOS TRAFFICCLASS=7 CLASS=7
ADD SQOS TRAFFICCLASS=8 CLASS=8
SET SQOS INT=ppp9 OUT=1
ADD RAD SERVER=192.168.150.10 SECRET=radius PO=1812 ACCP=1813
