1 |
7a23e419
|
Scott Ullrich
|
<?xml version="1.0" encoding="utf-8" ?>
|
2 |
e48fc17d
|
Scott Ullrich
|
<pfsensewizard>
|
3 |
6aed3a2e
|
Bill Marquette
|
<copyright>
|
4 |
|
|
/* $Id$ */
|
5 |
|
|
/*
|
6 |
|
|
setup.xml
|
7 |
|
|
part of pfSense (http://www.pfsense.org/)
|
8 |
|
|
|
9 |
|
|
Copyright (C) 2004, 2005 Scott Ullrich
|
10 |
|
|
All rights reserved.
|
11 |
|
|
|
12 |
|
|
Redistribution and use in source and binary forms, with or without
|
13 |
|
|
modification, are permitted provided that the following conditions are met:
|
14 |
|
|
|
15 |
|
|
1. Redistributions of source code must retain the above copyright notice,
|
16 |
|
|
this list of conditions and the following disclaimer.
|
17 |
|
|
|
18 |
|
|
2. Redistributions in binary form must reproduce the above copyright
|
19 |
|
|
notice, this list of conditions and the following disclaimer in the
|
20 |
|
|
documentation and/or other materials provided with the distribution.
|
21 |
|
|
|
22 |
|
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
23 |
|
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
24 |
|
|
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
25 |
|
|
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
26 |
|
|
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
27 |
|
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
28 |
|
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
29 |
|
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
30 |
|
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
31 |
|
|
POSSIBILITY OF SUCH DAMAGE.
|
32 |
|
|
*/
|
33 |
|
|
</copyright>
|
34 |
4de543fa
|
Scott Ullrich
|
<totalsteps>8</totalsteps>
|
35 |
19fd2947
|
Scott Ullrich
|
<step>
|
36 |
|
|
<id>1</id>
|
37 |
|
|
<title>pfSense Setup Wizard</title>
|
38 |
34b5c5a0
|
Scott Ullrich
|
<disableheader>true</disableheader>
|
39 |
2a8143e5
|
Scott Ullrich
|
<description>This wizard will guide you through the initial configuration of pfSense.</description>
|
40 |
19fd2947
|
Scott Ullrich
|
<fields>
|
41 |
e48fc17d
|
Scott Ullrich
|
<field>
|
42 |
|
|
<name>Next</name>
|
43 |
|
|
<type>submit</type>
|
44 |
|
|
</field>
|
45 |
19fd2947
|
Scott Ullrich
|
</fields>
|
46 |
e2c8c1aa
|
Scott Ullrich
|
<stepbeforeformdisplay>
|
47 |
|
|
conf_mount_rw();
|
48 |
0f81906a
|
Scott Ullrich
|
unlink_if_exists('/conf/trigger_initial_wizard');
|
49 |
e2c8c1aa
|
Scott Ullrich
|
conf_mount_ro();
|
50 |
|
|
</stepbeforeformdisplay>
|
51 |
19fd2947
|
Scott Ullrich
|
</step>
|
52 |
|
|
<step>
|
53 |
|
|
<id>2</id>
|
54 |
8773b899
|
Scott Ullrich
|
<title>General Information</title>
|
55 |
5a64b2d5
|
Bill Marquette
|
<description>On this screen you will set the General pfSense parameters.</description>
|
56 |
8773b899
|
Scott Ullrich
|
<fields>
|
57 |
4de543fa
|
Scott Ullrich
|
<field>
|
58 |
|
|
<name>Hostname</name>
|
59 |
|
|
<type>input</type>
|
60 |
|
|
<bindstofield>system->hostname</bindstofield>
|
61 |
|
|
<description>EXAMPLE: myserver</description>
|
62 |
|
|
</field>
|
63 |
|
|
<field>
|
64 |
|
|
<name>Domain</name>
|
65 |
|
|
<type>input</type>
|
66 |
|
|
<bindstofield>system->domain</bindstofield>
|
67 |
|
|
<description>EXAMPLE: mydomain.com</description>
|
68 |
f4da1ccd
|
Scott Ullrich
|
<validate>^[a-z0-9.|-]+$</validate>
|
69 |
6bb5c9aa
|
Bill Marquette
|
<message>Domain name field is invalid</message>
|
70 |
dd627071
|
Scott Ullrich
|
</field>
|
71 |
8773b899
|
Scott Ullrich
|
<field>
|
72 |
|
|
<name>Primary DNS Server</name>
|
73 |
|
|
<type>input</type>
|
74 |
e48fc17d
|
Scott Ullrich
|
<bindstofield>system->dnsserver</bindstofield>
|
75 |
|
|
<!-- we must unset the fields because this is an array. -->
|
76 |
|
|
<unsetfield>yes</unsetfield>
|
77 |
a8df0181
|
Scott Ullrich
|
<arraynum>0</arraynum>
|
78 |
dd627071
|
Scott Ullrich
|
</field>
|
79 |
8773b899
|
Scott Ullrich
|
<field>
|
80 |
|
|
<name>Secondary DNS Server</name>
|
81 |
|
|
<type>input</type>
|
82 |
e48fc17d
|
Scott Ullrich
|
<bindstofield>system->dnsserver</bindstofield>
|
83 |
a8df0181
|
Scott Ullrich
|
<arraynum>1</arraynum>
|
84 |
8773b899
|
Scott Ullrich
|
</field>
|
85 |
|
|
<field>
|
86 |
|
|
<name>Next</name>
|
87 |
|
|
<type>submit</type>
|
88 |
|
|
</field>
|
89 |
|
|
</fields>
|
90 |
dd627071
|
Scott Ullrich
|
</step>
|
91 |
8773b899
|
Scott Ullrich
|
<step>
|
92 |
|
|
<id>3</id>
|
93 |
4de543fa
|
Scott Ullrich
|
<title>Time Server Information</title>
|
94 |
19fd2947
|
Scott Ullrich
|
<description>Please enter the time, date and time zone.</description>
|
95 |
|
|
<fields>
|
96 |
|
|
<field>
|
97 |
4de543fa
|
Scott Ullrich
|
<name>Time server update frequency</name>
|
98 |
|
|
<description>Enter the amount in minutes.</description>
|
99 |
ac60cb51
|
Scott Ullrich
|
<type>input</type>
|
100 |
4de543fa
|
Scott Ullrich
|
<bindstofield>system->time-update-interval</bindstofield>
|
101 |
19fd2947
|
Scott Ullrich
|
</field>
|
102 |
ac60cb51
|
Scott Ullrich
|
<field>
|
103 |
4de543fa
|
Scott Ullrich
|
<name>Time server dns name</name>
|
104 |
|
|
<description>Enter the name of the time server.</description>
|
105 |
ac60cb51
|
Scott Ullrich
|
<type>input</type>
|
106 |
4de543fa
|
Scott Ullrich
|
<bindstofield>system->timeservers</bindstofield>
|
107 |
8773b899
|
Scott Ullrich
|
</field>
|
108 |
|
|
<field>
|
109 |
|
|
<name>Timezone</name>
|
110 |
bd31336e
|
Scott Ullrich
|
<type>timezone_select</type>
|
111 |
|
|
<bindstofield>system->timezone</bindstofield>
|
112 |
8773b899
|
Scott Ullrich
|
</field>
|
113 |
|
|
<field>
|
114 |
|
|
<name>Next</name>
|
115 |
|
|
<type>submit</type>
|
116 |
dd627071
|
Scott Ullrich
|
</field>
|
117 |
19fd2947
|
Scott Ullrich
|
</fields>
|
118 |
|
|
</step>
|
119 |
8773b899
|
Scott Ullrich
|
<step>
|
120 |
|
|
<id>4</id>
|
121 |
34b5c5a0
|
Scott Ullrich
|
<disableallfieldsbydefault>true</disableallfieldsbydefault>
|
122 |
e48fc17d
|
Scott Ullrich
|
<title>Configure WAN Interface</title>
|
123 |
8773b899
|
Scott Ullrich
|
<description>On this screen we will configure the Wide Area Network information.</description>
|
124 |
34b5c5a0
|
Scott Ullrich
|
<javascriptafterformdisplay>
|
125 |
ffe75109
|
Scott Ullrich
|
var selectedItem = 0;
|
126 |
|
|
if(document.forms[0].ipaddress.value == 'dhcp') {
|
127 |
|
|
selectedItem = 1;
|
128 |
|
|
document.forms[0].ipaddress.value = '';
|
129 |
|
|
} else if(document.forms[0].ipaddress.value == 'PPPoE') {
|
130 |
|
|
selectedItem = 2;
|
131 |
|
|
document.forms[0].ipaddress.value = '';
|
132 |
|
|
} else if(document.forms[0].ipaddress.value == 'PPTP') {
|
133 |
|
|
selectedItem = 3;
|
134 |
|
|
document.forms[0].ipaddress.value = '';
|
135 |
|
|
} else if(document.forms[0].ipaddress.value == 'BigPond') {
|
136 |
|
|
selectedItem = 4;
|
137 |
|
|
document.forms[0].ipaddress.value = '';
|
138 |
|
|
} else {
|
139 |
dd627071
|
Scott Ullrich
|
selectedItem = 0;
|
140 |
ffe75109
|
Scott Ullrich
|
}
|
141 |
b1919dd0
|
Scott Ullrich
|
document.forms[0].selectedtype.selectedIndex = selectedItem;
|
142 |
ffe75109
|
Scott Ullrich
|
enableitems(selectedItem);
|
143 |
dd627071
|
Scott Ullrich
|
</javascriptafterformdisplay>
|
144 |
8773b899
|
Scott Ullrich
|
<fields>
|
145 |
dd627071
|
Scott Ullrich
|
<field>
|
146 |
34b5c5a0
|
Scott Ullrich
|
<name>SelectedType</name>
|
147 |
|
|
<type>select</type>
|
148 |
|
|
<donotdisable>true</donotdisable>
|
149 |
|
|
<options>
|
150 |
|
|
<option>
|
151 |
|
|
<name>Static</name>
|
152 |
|
|
<value>Static</value>
|
153 |
|
|
<enablefields>ipaddress,subnetmask,gateway</enablefields>
|
154 |
dd627071
|
Scott Ullrich
|
</option>
|
155 |
34b5c5a0
|
Scott Ullrich
|
<option>
|
156 |
|
|
<name>DHCP</name>
|
157 |
|
|
<value>dhcp</value>
|
158 |
dd627071
|
Scott Ullrich
|
<enablefields>dhcphostname</enablefields>
|
159 |
34b5c5a0
|
Scott Ullrich
|
</option>
|
160 |
|
|
<option>
|
161 |
|
|
<name>PPPoE</name>
|
162 |
9e9a6bd1
|
Scott Ullrich
|
<value>pppoe</value>
|
163 |
dd627071
|
Scott Ullrich
|
<enablefields>pppoeusername,pppoepassword,pppoeservicename,pppoedialondemand,pppoeidletimeout</enablefields>
|
164 |
34b5c5a0
|
Scott Ullrich
|
</option>
|
165 |
|
|
<option>
|
166 |
|
|
<name>PPTP</name>
|
167 |
9e9a6bd1
|
Scott Ullrich
|
<value>pptp</value>
|
168 |
34b5c5a0
|
Scott Ullrich
|
<enablefields>pptpusername,pptppassword,pptplocalipaddress,pptplocalsubnet,pptpremoteipaddress,pptpdialondemand,pptpidletimeout
|
169 |
dd627071
|
Scott Ullrich
|
</enablefields>
|
170 |
|
|
</option>
|
171 |
34b5c5a0
|
Scott Ullrich
|
<option>
|
172 |
|
|
<name>BigPond</name>
|
173 |
9e9a6bd1
|
Scott Ullrich
|
<value>bigpond</value>
|
174 |
34b5c5a0
|
Scott Ullrich
|
<enablefields>bigpondusername,bigpondpassword,bigpondauthenticationserver,bigpondauthenticationdomain,bigpondminheartbeatinterval</enablefields>
|
175 |
dd627071
|
Scott Ullrich
|
</option>
|
176 |
34b5c5a0
|
Scott Ullrich
|
</options>
|
177 |
|
|
</field>
|
178 |
|
|
<field>
|
179 |
|
|
<name>General configuration</name>
|
180 |
|
|
<type>listtopic</type>
|
181 |
|
|
</field>
|
182 |
|
|
<field>
|
183 |
|
|
<donotdisable>true</donotdisable>
|
184 |
|
|
<name>MAC Address</name>
|
185 |
|
|
<bindstofield>interfaces->wan->spoofmac</bindstofield>
|
186 |
|
|
<type>input</type>
|
187 |
|
|
<description> This field can be used to modify ("spoof") the MAC address of the WAN interface (may be required with some cable connections) Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx or leave blank</description>
|
188 |
dd627071
|
Scott Ullrich
|
</field>
|
189 |
8773b899
|
Scott Ullrich
|
<field>
|
190 |
34b5c5a0
|
Scott Ullrich
|
<donotdisable>true</donotdisable>
|
191 |
|
|
<name>MTU</name>
|
192 |
|
|
<type>input</type>
|
193 |
|
|
<bindstofield>interfaces->wan->mtu</bindstofield>
|
194 |
|
|
<description> If you enter a value in this field, then MSS clamping for TCP connections to the value entered above minus 40 (TCP/IP header size) will be in effect. If you leave this field blank, an MTU of 1492 bytes for PPPoE and 1500 bytes for all other connection types will be assumed.</description>
|
195 |
|
|
</field>
|
196 |
|
|
<field>
|
197 |
|
|
<name>Static IP Configuration</name>
|
198 |
|
|
<type>listtopic</type>
|
199 |
|
|
</field>
|
200 |
|
|
<field>
|
201 |
|
|
<name>IP Address</name>
|
202 |
4de543fa
|
Scott Ullrich
|
<bindstofield>interfaces->wan->ipaddr</bindstofield>
|
203 |
8773b899
|
Scott Ullrich
|
<type>input</type>
|
204 |
34b5c5a0
|
Scott Ullrich
|
<typehint> / </typehint>
|
205 |
|
|
<combinefieldsbegin>true</combinefieldsbegin>
|
206 |
8773b899
|
Scott Ullrich
|
</field>
|
207 |
|
|
<field>
|
208 |
34b5c5a0
|
Scott Ullrich
|
<combinefieldsend>true</combinefieldsend>
|
209 |
|
|
<dontdisplayname>true</dontdisplayname>
|
210 |
dd627071
|
Scott Ullrich
|
<dontcombinecells>true</dontcombinecells>
|
211 |
8773b899
|
Scott Ullrich
|
<name>Subnet Mask</name>
|
212 |
4de543fa
|
Scott Ullrich
|
<bindstofield>interfaces->wan->subnet</bindstofield>
|
213 |
bd31336e
|
Scott Ullrich
|
<type>subnet_select</type>
|
214 |
8773b899
|
Scott Ullrich
|
</field>
|
215 |
34b5c5a0
|
Scott Ullrich
|
<field>
|
216 |
|
|
<name>Gateway</name>
|
217 |
938957af
|
Scott Ullrich
|
<bindstofield>interfaces->wan->gateway</bindstofield>
|
218 |
34b5c5a0
|
Scott Ullrich
|
<type>input</type>
|
219 |
dd627071
|
Scott Ullrich
|
</field>
|
220 |
34b5c5a0
|
Scott Ullrich
|
<field>
|
221 |
|
|
<name>DHCP client configuration</name>
|
222 |
|
|
<type>listtopic</type>
|
223 |
dd627071
|
Scott Ullrich
|
</field>
|
224 |
34b5c5a0
|
Scott Ullrich
|
<field>
|
225 |
|
|
<name>DHCP Hostname</name>
|
226 |
|
|
<type>input</type>
|
227 |
|
|
<bindstofield>interfaces->wan->dhcphostname</bindstofield>
|
228 |
|
|
<description> The value in this field is sent as the DHCP client identifier and hostname when requesting a DHCP lease. Some ISPs may require this (for client identification).</description>
|
229 |
|
|
</field>
|
230 |
|
|
<field>
|
231 |
|
|
<name>PPPoE configuration</name>
|
232 |
|
|
<type>listtopic</type>
|
233 |
dd627071
|
Scott Ullrich
|
</field>
|
234 |
34b5c5a0
|
Scott Ullrich
|
<field>
|
235 |
|
|
<name>PPPoE Username</name>
|
236 |
|
|
<type>input</type>
|
237 |
|
|
<bindstofield>pppoe->username</bindstofield>
|
238 |
|
|
</field>
|
239 |
|
|
<field>
|
240 |
|
|
<name>PPPoE Password</name>
|
241 |
|
|
<type>input</type>
|
242 |
|
|
<bindstofield>pppoe->password</bindstofield>
|
243 |
|
|
</field>
|
244 |
|
|
<field>
|
245 |
|
|
<name>PPPoE Service name</name>
|
246 |
|
|
<type>input</type>
|
247 |
|
|
<description>Hint: this field can usually be left empty</description>
|
248 |
|
|
</field>
|
249 |
|
|
<field>
|
250 |
|
|
<name>PPPoE Dial on demand</name>
|
251 |
|
|
<typehint>Enable Dial-On-Demand mode</typehint>
|
252 |
|
|
<type>checkbox</type>
|
253 |
|
|
<description>This option causes the interface to operate in dial-on-demand mode, allowing you to have a virtual full time connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.</description>
|
254 |
dd627071
|
Scott Ullrich
|
</field>
|
255 |
34b5c5a0
|
Scott Ullrich
|
<field>
|
256 |
|
|
<name>PPPoE Idle timeout</name>
|
257 |
|
|
<type>input</type>
|
258 |
|
|
<description>If no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature.</description>
|
259 |
|
|
</field>
|
260 |
|
|
<field>
|
261 |
|
|
<name>PPTP configuration</name>
|
262 |
|
|
<type>listtopic</type>
|
263 |
dd627071
|
Scott Ullrich
|
</field>
|
264 |
34b5c5a0
|
Scott Ullrich
|
<field>
|
265 |
|
|
<name>PPTP Username</name>
|
266 |
|
|
<type>input</type>
|
267 |
|
|
<bindstofield>pptp->username</bindstofield>
|
268 |
|
|
</field>
|
269 |
|
|
<field>
|
270 |
|
|
<name>PPTP Password</name>
|
271 |
|
|
<type>input</type>
|
272 |
|
|
<bindstofield>pptp->password</bindstofield>
|
273 |
|
|
</field>
|
274 |
|
|
<field>
|
275 |
|
|
<combinefieldsbegin>true</combinefieldsbegin>
|
276 |
|
|
<name>PPTP Local IP Address</name>
|
277 |
|
|
<type>input</type>
|
278 |
|
|
<typehint> / </typehint>
|
279 |
|
|
<bindstofield>pptp->local</bindstofield>
|
280 |
|
|
</field>
|
281 |
|
|
<field>
|
282 |
|
|
<combinefieldsend>true</combinefieldsend>
|
283 |
|
|
<dontdisplayname>true</dontdisplayname>
|
284 |
|
|
<dontcombinecells>true</dontcombinecells>
|
285 |
|
|
<name>pptplocalsubnet</name>
|
286 |
|
|
<bindstofield>pptp->subnet</bindstofield>
|
287 |
bd31336e
|
Scott Ullrich
|
<type>subnet_select</type>
|
288 |
34b5c5a0
|
Scott Ullrich
|
</field>
|
289 |
|
|
<field>
|
290 |
|
|
<name>PPTP Remote IP Address</name>
|
291 |
59031a49
|
Scott Ullrich
|
<bindstofield>pptp->remote</bindstofield>
|
292 |
34b5c5a0
|
Scott Ullrich
|
<type>input</type>
|
293 |
|
|
</field>
|
294 |
|
|
<field>
|
295 |
|
|
<name>PPTP Dial on demand</name>
|
296 |
|
|
<typehint>Enable Dial-On-Demand mode</typehint>
|
297 |
|
|
<type>checkbox</type>
|
298 |
|
|
<description>This option causes the interface to operate in dial-on-demand mode, allowing you to have a virtual full time connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.</description>
|
299 |
dd627071
|
Scott Ullrich
|
</field>
|
300 |
34b5c5a0
|
Scott Ullrich
|
<field>
|
301 |
|
|
<name>PPTP Idle timeout</name>
|
302 |
|
|
<type>input</type>
|
303 |
|
|
<description>If no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature.</description>
|
304 |
|
|
</field>
|
305 |
|
|
<field>
|
306 |
|
|
<name>BigPond configuration</name>
|
307 |
|
|
<type>listtopic</type>
|
308 |
dd627071
|
Scott Ullrich
|
</field>
|
309 |
34b5c5a0
|
Scott Ullrich
|
<field>
|
310 |
|
|
<name>BigPond Username</name>
|
311 |
|
|
<type>input</type>
|
312 |
|
|
<bindstofield>bigpond->username</bindstofield>
|
313 |
|
|
</field>
|
314 |
|
|
<field>
|
315 |
|
|
<name>BigPond Password</name>
|
316 |
|
|
<type>input</type>
|
317 |
|
|
<bindstofield>bigpond->password</bindstofield>
|
318 |
|
|
</field>
|
319 |
|
|
<field>
|
320 |
|
|
<name>BigPond Authentication server</name>
|
321 |
|
|
<type>input</type>
|
322 |
|
|
<bindstofield>bigpond->authserver</bindstofield>
|
323 |
|
|
<description>If this field is left empty, the default ("dce-server") is used.</description>
|
324 |
|
|
</field>
|
325 |
|
|
<field>
|
326 |
|
|
<name>BigPond Authentication domain</name>
|
327 |
|
|
<type>input</type>
|
328 |
|
|
<bindstofield>bigpond->authdomain</bindstofield>
|
329 |
|
|
<description>If this field is left empty, the domain name assigned via DHCP will be used. Note: the BigPond client implicitly sets the "Allow DNS server list to be overridden by DHCP/PPP on WAN" on the System: General setup page.</description>
|
330 |
|
|
</field>
|
331 |
|
|
<field>
|
332 |
|
|
<name>BigPond min heartbeat interval</name>
|
333 |
|
|
<type>input</type>
|
334 |
|
|
<typehint>seconds</typehint>
|
335 |
|
|
<bindstofield>bigpond->minheartbeatinterval</bindstofield>
|
336 |
|
|
<description> Setting this to a sensible value (e.g. 60 seconds) can protect against DoS attacks.</description>
|
337 |
|
|
</field>
|
338 |
|
|
<field>
|
339 |
|
|
<name>RFC1918 Networks</name>
|
340 |
|
|
<type>listtopic</type>
|
341 |
|
|
</field>
|
342 |
|
|
<field>
|
343 |
|
|
<donotdisable>true</donotdisable>
|
344 |
|
|
<name>Block RFC1918 Private Networks</name>
|
345 |
|
|
<description> When set, this option blocks traffic from IP addresses that are reserved for private networks as per RFC 1918 (10/8, 172.16/12, 192.168/16) as well as loopback addresses (127/8). You should generally leave this option turned on, unless your WAN network lies in such a private address space, too.</description>
|
346 |
|
|
<type>checkbox</type>
|
347 |
|
|
<bindstofield>interfaces->wan->blockpriv</bindstofield>
|
348 |
|
|
<typehint>Block private networks from entering via WAN</typehint>
|
349 |
|
|
</field>
|
350 |
ca07f232
|
Scott Ullrich
|
<field>
|
351 |
|
|
<name>Block bogon networks</name>
|
352 |
|
|
<type>listtopic</type>
|
353 |
|
|
</field>
|
354 |
|
|
<field>
|
355 |
|
|
<donotdisable>true</donotdisable>
|
356 |
|
|
<name>Block bogon networks</name>
|
357 |
0119fc69
|
Scott Ullrich
|
<description>Block bogon networks when set, this option blocks traffic from IP addresses that are reserved (but not RFC 1918) or not yet assigned by IANA. Bogons are prefixes that should never appear in the Internet routing table, and obviously should not appear as the source address in any packets you receive.</description>
|
358 |
ca07f232
|
Scott Ullrich
|
<type>checkbox</type>
|
359 |
|
|
<bindstofield>interfaces->wan->blockbogons</bindstofield>
|
360 |
0119fc69
|
Scott Ullrich
|
<typehint>Block non-Internet routed networks from entering via WAN</typehint>
|
361 |
ca07f232
|
Scott Ullrich
|
</field>
|
362 |
8773b899
|
Scott Ullrich
|
<field>
|
363 |
|
|
<name>Next</name>
|
364 |
|
|
<type>submit</type>
|
365 |
dd627071
|
Scott Ullrich
|
</field>
|
366 |
8773b899
|
Scott Ullrich
|
</fields>
|
367 |
b1919dd0
|
Scott Ullrich
|
<stepsubmitbeforesave>
|
368 |
|
|
if($_POST['selectedtype'] == "Static") { } else {
|
369 |
|
|
$_POST['ipaddress'] = $_POST['selectedtype'];
|
370 |
|
|
$config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype'];
|
371 |
|
|
write_config();
|
372 |
|
|
}
|
373 |
|
|
</stepsubmitbeforesave>
|
374 |
8773b899
|
Scott Ullrich
|
</step>
|
375 |
|
|
<step>
|
376 |
|
|
<id>5</id>
|
377 |
e48fc17d
|
Scott Ullrich
|
<title>Configure LAN Interface</title>
|
378 |
8773b899
|
Scott Ullrich
|
<description>On this screen we will configure the Local Area Network information.</description>
|
379 |
|
|
<fields>
|
380 |
|
|
<field>
|
381 |
e48fc17d
|
Scott Ullrich
|
<name>LAN IP Address</name>
|
382 |
8773b899
|
Scott Ullrich
|
<type>input</type>
|
383 |
4de543fa
|
Scott Ullrich
|
<bindstofield>interfaces->lan->ipaddr</bindstofield>
|
384 |
|
|
<description>Type dhcp if this interface uses dhcp to obtain its ip address.</description>
|
385 |
8773b899
|
Scott Ullrich
|
</field>
|
386 |
|
|
<field>
|
387 |
|
|
<name>Subnet Mask</name>
|
388 |
4aea0386
|
Scott Ullrich
|
<type>subnet_select</type>
|
389 |
4de543fa
|
Scott Ullrich
|
<bindstofield>interfaces->lan->subnet</bindstofield>
|
390 |
8773b899
|
Scott Ullrich
|
</field>
|
391 |
4de543fa
|
Scott Ullrich
|
<field>
|
392 |
|
|
<name>Next</name>
|
393 |
|
|
<type>submit</type>
|
394 |
dd627071
|
Scott Ullrich
|
</field>
|
395 |
8773b899
|
Scott Ullrich
|
</fields>
|
396 |
4aea0386
|
Scott Ullrich
|
<stepsubmitphpaction>
|
397 |
f63becab
|
Scott Ullrich
|
$ft = split("\.", $_POST['lanipaddress']);
|
398 |
4aea0386
|
Scott Ullrich
|
$ft_ip = $ft[0] . "." . $ft[1] . "." . $ft[2] . ".";
|
399 |
735ab270
|
Seth Mos
|
$config['dhcpd']['lan']['range']['from'] = $ft_ip . "10";
|
400 |
f63becab
|
Scott Ullrich
|
$highestip = gen_subnet_max($_POST['lanipaddress'], $config['interfaces']['lan']['subnet']);
|
401 |
97737adf
|
Scott Ullrich
|
$hi = split("\.", $highestip);
|
402 |
735ab270
|
Seth Mos
|
$highestip = $hi[3]-10;
|
403 |
97737adf
|
Scott Ullrich
|
$config['dhcpd']['lan']['range']['to'] = $ft_ip . $highestip;
|
404 |
4aea0386
|
Scott Ullrich
|
</stepsubmitphpaction>
|
405 |
8773b899
|
Scott Ullrich
|
</step>
|
406 |
|
|
<step>
|
407 |
|
|
<id>6</id>
|
408 |
25a4bcd2
|
Scott Ullrich
|
<title>Set Admin WebGUI Password</title>
|
409 |
e7bce772
|
Scott Ullrich
|
<description>On this screen we will set the Admin password which is used to access the WebGUI and also SSH services if you wish to enable.</description>
|
410 |
8773b899
|
Scott Ullrich
|
<fields>
|
411 |
|
|
<field>
|
412 |
25a4bcd2
|
Scott Ullrich
|
<name>Admin Password</name>
|
413 |
8773b899
|
Scott Ullrich
|
<type>password</type>
|
414 |
|
|
</field>
|
415 |
4de543fa
|
Scott Ullrich
|
<field>
|
416 |
25a4bcd2
|
Scott Ullrich
|
<name>Admin Password AGAIN</name>
|
417 |
4de543fa
|
Scott Ullrich
|
<type>password</type>
|
418 |
|
|
</field>
|
419 |
8773b899
|
Scott Ullrich
|
<field>
|
420 |
|
|
<name>Next</name>
|
421 |
|
|
<type>submit</type>
|
422 |
dd627071
|
Scott Ullrich
|
</field>
|
423 |
8773b899
|
Scott Ullrich
|
</fields>
|
424 |
3ed807e4
|
Scott Ullrich
|
<stepsubmitphpaction>
|
425 |
|
|
if($_POST['adminpassword'] != "") {
|
426 |
|
|
if($_POST['adminpassword'] == $_POST['adminpasswordagain']) {
|
427 |
|
|
$fd = popen("/usr/sbin/pw usermod -n root -H 0", "w");
|
428 |
|
|
$salt = md5(time());
|
429 |
|
|
$crypted_pw = crypt($_POST['adminpassword'],$salt);
|
430 |
|
|
fwrite($fd, $crypted_pw);
|
431 |
|
|
pclose($fd);
|
432 |
|
|
$config['system']['password'] = crypt($_POST['adminpassword']);
|
433 |
|
|
write_config();
|
434 |
|
|
system_password_configure();
|
435 |
|
|
} else {
|
436 |
|
|
print_info_box_np("Passwords do not match! Please press back in your browser window and correct.");
|
437 |
|
|
die;
|
438 |
|
|
}
|
439 |
|
|
}
|
440 |
|
|
</stepsubmitphpaction>
|
441 |
8773b899
|
Scott Ullrich
|
</step>
|
442 |
|
|
<step>
|
443 |
|
|
<id>7</id>
|
444 |
2e1c1991
|
Scott Ullrich
|
<title>Reload configuration</title>
|
445 |
34b5c5a0
|
Scott Ullrich
|
<disableheader>true</disableheader>
|
446 |
7a23e419
|
Scott Ullrich
|
<description>Click 'Reload' to reload pfSense with new changes. If you changed the password, pfSense will ask you to log in again.</description>
|
447 |
8773b899
|
Scott Ullrich
|
<fields>
|
448 |
|
|
<field>
|
449 |
2e1c1991
|
Scott Ullrich
|
<name>Reload</name>
|
450 |
8773b899
|
Scott Ullrich
|
<type>submit</type>
|
451 |
|
|
</field>
|
452 |
|
|
</fields>
|
453 |
4de543fa
|
Scott Ullrich
|
</step>
|
454 |
|
|
<step>
|
455 |
|
|
<id>8</id>
|
456 |
0b1138de
|
Scott Ullrich
|
<title>Reload in progress</title>
|
457 |
|
|
<description>A reload is now in progress. Please wait. <p> The system will automatically try to access $myurl in 120 seconds. <p> You can click on the icon above to access the site more quickly.
|
458 |
7f1e27b3
|
Scott Ullrich
|
<meta http-equiv="refresh" content="60; url=$myurl" ></description>
|
459 |
34b5c5a0
|
Scott Ullrich
|
<stepafterformdisplay>
|
460 |
1444dfef
|
Scott Ullrich
|
reload_all();
|
461 |
dd627071
|
Scott Ullrich
|
</stepafterformdisplay>
|
462 |
8773b899
|
Scott Ullrich
|
</step>
|
463 |
6bb5c9aa
|
Bill Marquette
|
</pfsensewizard>
|