## CentreCOM AR550S 設定例集 2.9
##  190 NATループバック
##  ルーターのコンフィグ

CREATE PPP=0 OVER=eth0-ANY
SET PPP=0 OVER=eth0-ANY BAP=OFF IPREQUEST=ON USER=user@isp PASSWORD=isppasswd LQR=OFF ECHO=ON
ENABLE IP
ADD IP INT=vlan1 IP=192.168.1.1 MASK=255.255.255.0
ADD IP INT=eth1 IP=172.16.0.1 MASK=255.255.255.0
ADD IP INT=ppp0 IP=1.1.1.1 MASK=255.255.255.255
ADD IP ROUTE=0.0.0.0 INT=ppp0 NEXTHOP=0.0.0.0
ADD IP DNS PRIMARY=1.1.1.254 SECONDARY=1.1.1.253
ENABLE IP DNSRELAY
ENABLE FIREWALL
CREATE FIREWALL POLICY=lan
ENABLE FIREWALL POLICY=lan ICMP_F=PING,UNREACH
DISABLE FIREWALL POLICY=lan IDENTPROXY
ADD FIREWALL POLICY=lan INT=vlan1 TYPE=PRIVATE
ADD FIREWALL POLICY=lan INT=eth1 TYPE=PUBLIC
ADD FIREWALL POLICY=lan INT=ppp0 TYPE=PUBLIC
ADD FIREWALL POLICY=lan NAT=ENHANCED INT=vlan1 GBLINT=ppp0
CREATE FIREWALL POLICY=server
ENABLE FIREWALL POLICY=server ICMP_F=PING,UNREACH
DISABLE FIREWALL POLICY=server IDENTPROXY
ADD FIREWALL POLICY=server INT=vlan1 TYPE=PUBLIC
ADD FIREWALL POLICY=server INT=eth1 TYPE=PRIVATE
ADD FIREWALL POLICY=server INT=ppp0 TYPE=PUBLIC
ADD FIREWALL POLICY=server NAT=ENHANCED INT=eth1 GBLINT=ppp0
ADD FIREWALL POLICY=server RULE=1 AC=ALLOW INT=ppp0 PROTO=TCP GBLIP=1.1.1.1 GBLPORT=80 IP=172.16.0.10 PORT=80
