## CentreCOM AR415S 設定例集 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 CREATE VLAN=vlan10 VID=10 ADD VLAN=10 PORT=1-2 CREATE VLAN=vlan20 VID=20 ADD VLAN=20 PORT=3-4 ENABLE IP ADD IP INT=vlan10 IP=192.168.1.1 MASK=255.255.255.0 ADD IP INT=vlan20 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=vlan10 TYPE=PRIVATE ADD FIREWALL POLICY=lan INT=vlan20 TYPE=PUBLIC ADD FIREWALL POLICY=lan INT=ppp0 TYPE=PUBLIC ADD FIREWALL POLICY=lan NAT=ENHANCED INT=vlan10 GBLINT=ppp0 CREATE FIREWALL POLICY=server ENABLE FIREWALL POLICY=server ICMP_F=PING,UNREACH DISABLE FIREWALL POLICY=server IDENTPROXY ADD FIREWALL POLICY=server INT=vlan10 TYPE=PUBLIC ADD FIREWALL POLICY=server INT=vlan20 TYPE=PRIVATE ADD FIREWALL POLICY=server INT=ppp0 TYPE=PUBLIC ADD FIREWALL POLICY=server NAT=ENHANCED INT=vlan20 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