6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RTX1200買った話

Last updated at Posted at 2016-10-06

#届きました
まぁ届いたというよりも業者まで引き取りに行ったんですけどね
送料ケチるんじゃなかった

#とりあえずネットに繋ぐ
最初コンソールから設定してましたがどうにもうまくイカなかったのでGUIからウィザードでちゃちゃっと
管理者パスいれてLAN1アドレスとDHCPスコープ設定してPPPoEのID/Pass入れて終わりですね
#L2TP/IPSec設定
VPNをやるのに設定
こちらも何故かGUIじゃないとうまく行かず、暗号化だけデフォルトのからmschap-v2へ変更
IP-Poolは192.168.0.128-191/24

#VLAN
せっかく業務用ルーターを買ったのでセグメント分けてみました
ついでに無線LANクライアントセグメントから有線LANセグメントへの通信を禁止
セグメントは以下の通り

VLAN 区域 IP DHCP Pool
VLAN1 有線LANClient 192.168.0.0/24 192.168.0.16-127
VLAN2 無線LANClient 192.168.1.0/24 192.168.1.1-191
VLAN3 サーバー系 192.168.10.0/24 none

と言った感じ、有線LANの頭と尻をpool外にしてるのは固定IP割当のためです
それぞれの通信可否は

有線 無線 サーバー
有線 1 0 1
無線 0 0 1
サーバー 1 1 1

となってます
AP側で無線LANセパレート入れて無線同士の通信も禁止してます

ポートの振り分けは
LAN1 po1-4=VLAN1
po5=VLAN2
po7-8=VLAN3

#Config
以下にログイン設定やら、sshとか入れたコンフィグをそのままはっつけます
まぁ重要なとこは抜きますが


# # RTX1200 Rev.10.01.65 (Tue Oct 13 12:23:48 2015)
# # MAC Address : 
# # Memory 128Mbytes, 3LAN, 1BRI
# # main:  RTX1200 ver=c0 serial= MAC-Address= MAC-Address= MAC-Address=
# # Reporting Date: Oct 6 15:10:34 2016
#10 1 65 0
#パスワードとか
login password encrypted
administrator password encrypted
login timer 600
ip routing process fast
ip route default gateway pp 1
#VLAN割当
vlan port mapping lan1.1 vlan1
vlan port mapping lan1.2 vlan1
vlan port mapping lan1.3 vlan1
vlan port mapping lan1.5 vlan2
vlan port mapping lan1.7 vlan3
vlan port mapping lan1.8 vlan3
lan type lan1 port-based-option=divide-network
#VLANのIP割当とフィルター割当
ip vlan1 address 192.168.0.254/24
ip vlan1 proxyarp on
ip vlan1 secure filter in 100099
ip vlan1 wol relay broadcast
ip vlan2 address 192.168.1.254/24
ip vlan2 secure filter in 300001 100099
ip vlan3 address 192.168.10.254/24
ip vlan3 secure filter in 100099
pp disable all
#PPPoE
pp select 1
 description pp PRV/PPPoE/0:OCN
 pp keepalive interval 30 retry-interval=30 count=12
 pp always-on on
 pppoe use lan2
 pppoe auto disconnect off
 pp auth accept pap chap
 pp auth myname id pass
 ppp lcp mru on 1454
 ppp ipcp ipaddress on
 ppp ipcp msext on
 ppp ccp type none
 ip pp secure filter in 200003 200004 200005 200020 200021 200022 200023 200024 200025 200030 200038 200039 200032 1 200080 200081 200082
 ip pp secure filter out 200013 200014 200015 200020 200021 200022 200023 200024 200025 200026 200027 200099 dynamic 200080 200081 200082 200083 200084 200085 200098 200099
 ip pp nat descriptor 1000
 netvolante-dns use pp server=1 auto
 pp enable 1
#L2TP/IPSec
pp select anonymous
 pp name vpn
 pp bind tunnel1-tunnel2
 pp auth request mschap-v2
 pp auth username user1 pass1
 pp auth username user2 pass2
 ppp ipcp ipaddress on
 ppp ipcp msext on
 ip pp remote address pool 192.168.0.128-192.168.0.191
 ip pp mtu 1258
 pp enable anonymous
no tunnel enable all
tunnel select 1
 tunnel encapsulation l2tp
 ipsec tunnel 1
  ipsec sa policy 1 1 esp aes-cbc sha-hmac
  ipsec ike keepalive log 1 off
  ipsec ike keepalive use 1 off
  ipsec ike nat-traversal 1 on
  ipsec ike pre-shared-key 1 text 共通キー
  ipsec ike remote address 1 any
 l2tp tunnel auth off 
 l2tp keepalive use on
 ip tunnel tcp mss limit auto
 tunnel enable 1
tunnel select 2
 tunnel encapsulation l2tp
 ipsec tunnel 2
  ipsec sa policy 2 2 esp aes-cbc sha-hmac
  ipsec ike keepalive log 2 off
  ipsec ike keepalive use 2 off
  ipsec ike nat-traversal 2 on
  ipsec ike pre-shared-key 2 text 共通キー
  ipsec ike remote address 2 any
 l2tp tunnel auth off 
 l2tp keepalive use on
 ip tunnel tcp mss limit auto
 tunnel enable 2

#WAN側フィルター
ip filter 1 pass * 192.168.10.1 tcp * www,https
ip filter 101 pass * 192.168.0.255 udp * discard
ip filter 100099 pass * * * * *
ip filter 200000 reject 10.0.0.0/8 * * * *
ip filter 200001 reject 172.16.0.0/12 * * * *
ip filter 200002 reject 192.168.0.0/16 * * * *
ip filter 200003 reject 192.168.0.0/24 * * * *
ip filter 200004 reject 192.168.1.0/24 * * * *
ip filter 200005 reject 192.168.10.0/24 * * * *
ip filter 200010 reject * 10.0.0.0/8 * * *
ip filter 200011 reject * 172.16.0.0/12 * * *
ip filter 200012 reject * 192.168.0.0/16 * * *
ip filter 200013 reject * 192.168.0.0/24 * * *
ip filter 200014 reject * 192.168.10.0/24 * * *
ip filter 200015 reject * 192.168.10.0/24 * * *
ip filter 200020 reject * * udp,tcp 135 *
ip filter 200021 reject * * udp,tcp * 135
ip filter 200022 reject * * udp,tcp netbios_ns-netbios_ssn *
ip filter 200023 reject * * udp,tcp * netbios_ns-netbios_ssn
ip filter 200024 reject * * udp,tcp 445 *
ip filter 200025 reject * * udp,tcp * 445
ip filter 200026 restrict * * tcpfin * www,21,nntp
ip filter 200027 restrict * * tcprst * www,21,nntp
ip filter 200030 pass * 192.168.0.0/24 icmp * *
ip filter 200031 pass * 192.168.0.0/24 established * *
ip filter 200032 pass * 192.168.0.0/24 tcp * ident
ip filter 200033 pass * 192.168.0.0/24 tcp ftpdata *
ip filter 200034 pass * 192.168.0.0/24 tcp,udp * domain
ip filter 200035 pass * 192.168.0.0/24 udp domain *
ip filter 200036 pass * 192.168.0.0/24 udp * ntp
ip filter 200037 pass * 192.168.0.0/24 udp ntp *
ip filter 200038 pass * 192.168.1.0/24 icmp * *
ip filter 200039 pass * 192.168.10.0/24 icmp * *
ip filter 200080 pass * 192.168.0.254 esp * *
ip filter 200081 pass * 192.168.0.254 udp * 500
ip filter 200082 pass * 192.168.0.254 udp * 4500
ip filter 200099 pass * * * * *
#VLAN2用
ip filter 300001 reject * 192.168.0.0/24 * * *
ip filter 500000 restrict * * * * *
#動的フィルタ
ip filter dynamic 200080 * * ftp
ip filter dynamic 200081 * * domain
ip filter dynamic 200082 * * www
ip filter dynamic 200083 * * smtp
ip filter dynamic 200084 * * pop3
ip filter dynamic 200085 * * submission
ip filter dynamic 200098 * * tcp
ip filter dynamic 200099 * * udp
#NAPT設定
nat descriptor type 1000 masquerade
nat descriptor masquerade static 1000 1 192.168.10.1 tcp www
nat descriptor masquerade static 1000 2 192.168.10.1 tcp https
nat descriptor masquerade static 1000 3 192.168.10.1 tcp 2222=22
nat descriptor masquerade static 1000 101 192.168.0.255 udp discard
nat descriptor masquerade static 1000 102 192.168.0.254 udp 500
nat descriptor masquerade static 1000 104 192.168.0.254 udp 4500
#IPSec
ipsec auto refresh on
ipsec transport 1 1 udp 1701
ipsec transport 2 2 udp 1701
#SysLog
syslog notice on
syslog debug on
#DHCP
dhcp service server
dhcp server rfc2131 compliant except remain-silent
dhcp scope 1 192.168.0.16-192.168.0.127/24
dhcp scope 2 192.168.1.1-192.168.1.127/24
#DNS設定
dns server pp 1
dns server select 500001 pp 1 any . restrict pp 1
dns private address spoof on
#その他設定
snmp sysname yamaha-rtx1200
schedule at 1 */* 01:56:00 * ntpdate ntp.nict.jp syslog
l2tp service on
upnp use on
sshd service on
sshd host vlan1
sshd host key generate
statistics cpu on
statistics memory on

と言った感じ
使用感は次ので

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?