[index] AT-AR2050V/AT-AR3050S/AT-AR4050S コマンドリファレンス 5.4.7
ISP接続用ユーザー名 | user@isp |
ISP接続用パスワード | isppasswd |
PPPoEサービス名 | 指定なし |
WAN側IPアドレス | 10.0.0.1/32(固定) |
DNSサーバー | 10.1.1.254、10.1.1.253 |
WAN側物理インターフェース | eth1 |
WAN側(ppp0)IPアドレス | 10.0.0.1/32 |
LAN側クライアント用ネットワーク(vlan1)IPアドレス | 192.168.1.1/24 |
LAN側サーバー用ネットワーク(eth2)IPアドレス | 172.16.0.1/24 |
zone dmz network eth2 ip subnet 172.16.0.0/24 host http ip address 172.16.0.80
zone private network lan ip subnet 192.168.1.0/24
zone public network wan ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address 10.0.0.1
firewall rule 10 permit any from private to private rule 20 permit any from private to dmz rule 30 permit any from private to public rule 40 permit any from dmz to dmz rule 50 permit any from dmz to private rule 60 permit any from dmz to public rule 70 permit dns from public.wan.ppp0 to public rule 80 permit http from public to dmz.eth2.http protect
nat rule 10 portfwd http from private to public.wan.ppp0 with dst dmz.eth2.http rule 20 masq http from private to dmz with src public.wan.ppp0 rule 30 portfwd http from public with dst dmz.eth2.http rule 40 masq any from private to public rule 50 masq any from dmz to public enable
no spanning-tree rstp enable
interface eth1 encapsulation ppp 0
interface eth2 ip address 172.16.0.1/24
interface vlan1 ip address 192.168.1.1/24
interface ppp0 ppp ipcp dns request keepalive ppp username user@isp ppp password isppasswd ip address 10.0.0.1/32 ip tcp adjust-mss pmtu
ip route 0.0.0.0/0 ppp0
ip dns forwarding
end
copy running-config startup-config
」の書式で実行します。awplus# copy running-config startup-config ↓ Building configuration... [OK]
awplus# write memory ↓ Building configuration... [OK]
awplus(config)# log buffered level informational facility kern msgtext Firewall ↓
awplus# show log | include Firewall ↓
! zone dmz network eth2 ip subnet 172.16.0.0/24 host http ip address 172.16.0.80 ! zone private network lan ip subnet 192.168.1.0/24 ! zone public network wan ip subnet 0.0.0.0/0 interface ppp0 host ppp0 ip address 10.0.0.1 ! firewall rule 10 permit any from private to private rule 20 permit any from private to dmz rule 30 permit any from private to public rule 40 permit any from dmz to dmz rule 50 permit any from dmz to private rule 60 permit any from dmz to public rule 70 permit dns from public.wan.ppp0 to public rule 80 permit http from public to dmz.eth2.http protect ! nat rule 10 portfwd http from private to public.wan.ppp0 with dst dmz.eth2.http rule 20 masq http from private to dmz with src public.wan.ppp0 rule 30 portfwd http from public with dst dmz.eth2.http rule 40 masq any from private to public rule 50 masq any from dmz to public enable ! no spanning-tree rstp enable ! interface eth1 encapsulation ppp 0 ! interface eth2 ip address 172.16.0.1/24 ! interface vlan1 ip address 192.168.1.1/24 ! interface ppp0 ppp ipcp dns request keepalive ppp username user@isp ppp password isppasswd ip address 10.0.0.1/32 ip tcp adjust-mss pmtu ! ip route 0.0.0.0/0 ppp0 ! ip dns forwarding ! end
(C) 2015 - 2019 アライドテレシスホールディングス株式会社
PN: 613-002765 Rev.A