質問するログイン新規登録

質問編集履歴

1

ソースコードをあげました。

2016/10/20 13:41

投稿

kudomasa
kudomasa

スコア13

title CHANGED
File without changes
body CHANGED
@@ -9,7 +9,94 @@
9
9
 
10
10
  ###該当のソースコード
11
11
 
12
+ ip route default gateway pp 1 filter 100000 gateway pp 2 filter 100001 gateway pp 2 filter 100002
13
+ ip lan1 address 192.168.0.2/24
14
+
15
+ ip lan1 secure filter in 100010 100011 100012 100013 100014 100015 100016 100017 100018 100019 100121 100020 500000
16
+
17
+ switch control use lan1 on
18
+ switch control use lan2 on
19
+ pp select 1
20
+ description pp プロバイダ1
21
+ pp keepalive interval 30 retry-interval=30 count=12
22
+ pp always-on on
23
+ pppoe use lan2
24
+ pppoe auto disconnect off
25
+ pp auth accept pap chap
26
+ pp auth myname プロバイダ情報
27
+ ppp lcp mru on 1454
28
+ ppp ipcp ipaddress on
29
+ ppp ipcp msext on
30
+ ppp ccp type none
31
+ ip pp secure filter in 200100 200200 500000
32
+ ip pp nat descriptor 1000
33
+ pp enable 1
34
+ pp select 2
35
+ description pp プロバイダ2
36
+ pp keepalive interval 30 retry-interval=30 count=12
37
+ pp always-on on
38
+ pppoe use lan2
39
+ pppoe auto disconnect off
40
+ pp auth accept pap chap
41
+ pp auth myname プロバイダ情報
42
+ ppp lcp mru on 1454
43
+ ppp ipcp ipaddress on
44
+ ppp ipcp msext on
45
+ ppp ccp type none
46
+ ip pp address 固定IP
47
+ ip pp nat descriptor 2000
48
+ pp enable 2
49
+ ip filter 100000 pass 192.168.0.11-192.168.0.49 * * *
50
+ ip filter 100001 pass 192.168.0.50-192.168.0.59 * * *
51
+ ip filter 100002 pass 192.168.0.60-192.168.0.99 * * *
52
+ ip filter 100010 reject * * udp,tcp 135 *
53
+ ip filter 100011 reject * * udp,tcp * 135
54
+ ip filter 100012 reject * * udp,tcp netbios_ns-netbios_dgm *
55
+ ip filter 100013 reject * * udp,tcp * netbios_ns-netbios_dgm
56
+ ip filter 100014 reject * * udp,tcp netbios_ssn *
57
+ ip filter 100015 reject * * udp,tcp * netbios_ssn
58
+ ip filter 100016 reject * * udp,tcp 445 *
59
+ ip filter 100017 reject * * udp,tcp * 445
60
+ ip filter 100018 pass * * tcp * www
61
+ ip filter 100019 pass * * udp,tcp 46100-46122 *
62
+ ip filter 100020 pass * * udp,tcp * 1547
63
+ ip filter 100121 pass * 192.168.0.63 udp * 46100-46122
64
+ ip filter 200100 pass * 192.168.0.63 udp 46100-46122 46100-46122
65
+ ip filter 201100 pass * * udp * 1547,46100-46122
66
+ ip filter 201101 pass 固定IP * * 1547,46100-46122 *
67
+ ip filter 201102 pass * * udp * 1547,46100-46122
68
+ ip filter 500000 restrict * * * * *
69
+ ip filter dynamic 100100 * 192.168.0.63 udp
70
+ nat descriptor type 1000 masquerade
71
+ nat descriptor address outer 1000 ipcp
72
+ nat descriptor address inner 1000 auto
73
+ nat descriptor masquerade incoming 1000 reject
74
+ nat descriptor type 2000 masquerade
75
+ nat descriptor address outer 2000 固定IP
76
+ nat descriptor address inner 2000 auto
77
+ nat descriptor masquerade incoming 2000 discard
78
+ nat descriptor type 3000 nat
79
+ nat descriptor address outer 3000 ipcp
80
+ nat descriptor address inner 3000 auto
81
+ nat descriptor static 3000 500010 固定IP=192.168.0.60/28
82
+ nat descriptor masquerade incoming 3000 through
83
+ dhcp service server
84
+ dhcp server rfc2131 compliant except remain-silent
85
+ dhcp scope 1 192.168.0.11-192.168.0.125/24 expire 3:00
86
+ dhcp scope bind 1 IP ethernet MAC
87
+ dns host lan1
88
+ dns server pp 1
89
+ dns server select 500001 pp 1 any . restrict pp 1
90
+ dns server select 500002 pp 2 any . restrict pp 2
91
+ dns private address spoof on
92
+ upnp use on
93
+ upnp external address refer lan2
94
+ dashboard accumulate traffic on
95
+ dashboard accumulate nat on
96
+
12
97
  ###試したこと
13
98
  IPマスカレードで固定IPを設定して、その他の設定をしないで稼働すると端末ではWebを見る事ができました。
14
99
 
15
- ###補足情報(言語/FW/ツール等のバージョンなど)
100
+ ###補足情報(言語/FW/ツール等のバージョンなど)
101
+
102
+ 記述後、コマンドで流し込んだ後パネルから変更をかけたりして汚くなってまってます、すいません。