summaryrefslogtreecommitdiffstats
path: root/net/pfSense-pkg-freeradius2/files/usr/local/pkg/freeradiusinterfaces.xml
blob: 75b1e8ddf4223fec18285f0a4f1b8992ddab4bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd">
<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?>
<packagegui>
	<copyright>
<![CDATA[
/*
 * freeradiusinterfaces.xml
 *
 * part of pfSense (https://www.pfsense.org)
 * Copyright (c) 2015-2017 Rubicon Communications, LLC (Netgate)
 * Copyright (c) 2013 Alexander Wilke <nachtfalkeaw@web.de>
 * All rights reserved.
 *
 * Originally based on m0n0wall (http://m0n0.ch/wall)
 * Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
]]>	</copyright>
	<name>freeradiusinterfaces</name>
	<title>FreeRADIUS: Interfaces</title>
	<include_file>/usr/local/pkg/freeradius.inc</include_file>
	<tabs>
		<tab>
			<text>Users</text>
			<url>/pkg.php?xml=freeradius.xml</url>
		</tab>
		<tab>
			<text>MACs</text>
			<url>/pkg.php?xml=freeradiusauthorizedmacs.xml</url>
		</tab>
		<tab>
			<text>NAS / Clients</text>
			<url>/pkg.php?xml=freeradiusclients.xml</url>
		</tab>
		<tab>
			<text>Interfaces</text>
			<url>/pkg.php?xml=freeradiusinterfaces.xml</url>
			<active/>
		</tab>
		<tab>
			<text>Settings</text>
			<url>/pkg_edit.php?xml=freeradiussettings.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>EAP</text>
			<url>/pkg_edit.php?xml=freeradiuseapconf.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>SQL</text>
			<url>/pkg_edit.php?xml=freeradiussqlconf.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>Certificates</text>
			<url>/pkg_edit.php?xml=freeradiuscerts.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>LDAP</text>
			<url>/pkg_edit.php?xml=freeradiusmodulesldap.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>View config</text>
			<url>/freeradius_view_config.php</url>
		</tab>
		<tab>
			<text>XMLRPC Sync</text>
			<url>/pkg_edit.php?xml=freeradiussync.xml&amp;id=0</url>
		</tab>
	</tabs>
	<adddeleteeditpagefields>
		<columnitem>
			<fielddescr>Interface IP Address</fielddescr>
			<fieldname>varinterfaceip</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Port</fielddescr>
			<fieldname>varinterfaceport</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Interface Type</fielddescr>
			<fieldname>varinterfacetype</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>IP Version</fielddescr>
			<fieldname>varinterfaceipversion</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Description</fielddescr>
			<fieldname>description</fieldname>
		</columnitem>
		<movable>text</movable>
	</adddeleteeditpagefields>
	<fields>
		<field>
			<name>General Configuration</name>
			<type>listtopic</type>
		</field>
		<field>
			<fielddescr>Interface IP Address</fielddescr>
			<fieldname>varinterfaceip</fieldname>
			<description>
				<![CDATA[
				Enter the IP address (e.g. 192.168.100.1) of the listening interface.
				If you choose <b>*</b> then it means all interfaces.
				<span class="text-info">(Default: *)</span>
				]]>
			</description>
			<type>input</type>
			<default_value>*</default_value>
			<required/>
		</field>
		<field>
			<fielddescr>Port</fielddescr>
			<fieldname>varinterfaceport</fieldname>
			<description>
				<![CDATA[
				Enter the port number of the listening interface. Different interface types need different ports.
				Click Info for details.
				<div class="infoblock">
				You could use this as an example:
				<dl class="dl-horizontal responsive">
				<dt>Authentication</dt><dd>Using port 1812</dd>
				<dt>Accounting</dt><dd>Using port 1813</dd>
				<dt>Status</dt><dd>Using port 1816</dd>
				</dl>
				<strong><span class="text-danger">IMPORTANT: </span></strong>
				For <b>every interface type</b> listening on the <b>same IP address</b> you need <b>different ports</b>.
				</div>
				]]>
			</description>
			<type>input</type>
			<default_value>1812</default_value>
			<required/>
		</field>
		<field>
			<fielddescr>Interface Type</fielddescr>
			<fieldname>varinterfacetype</fieldname>
			<description>
				<![CDATA[
				Enter the type of the listening interface.
				<span class="text-info">(Default: Authentication)</span>
				]]>
			</description>
			<type>select</type>
			<default_value>auth</default_value>
			<options>
				<option><name>Authentication</name><value>auth</value></option>
				<option><name>Accounting</name><value>acct</value></option>
				<option><name>Proxy</name><value>proxy</value></option>
				<option><name>Detail</name><value>detail</value></option>
				<option><name>Status</name><value>status</value></option>
				<option><name>CoA</name><value>coa</value></option>
			</options>
			<required/>
		</field>
		<field>
			<fielddescr>IP Version</fielddescr>
			<fieldname>varinterfaceipversion</fieldname>
			<description>
				<![CDATA[
				Enter the IP version of the listening interface.
				<span class="text-info">(Default: IPv4)</span>
				]]>
			</description>
			<type>select</type>
			<default_value>ipaddr</default_value>
			<options>
				<option><name>IPv4</name><value>ipaddr</value></option>
				<option><name>IPv6</name><value>ipv6addr</value></option>
			</options>
			<required/>
		</field>
		<field>
			<fielddescr>Description</fielddescr>
			<fieldname>description</fieldname>
			<description>
				<![CDATA[
				Optionally enter a description here for your reference.
				]]>
			</description>
			<type>input</type>
		</field>
	</fields>
	<custom_delete_php_command>
		freeradius_settings_resync();
	</custom_delete_php_command>
	<custom_php_resync_config_command>
		freeradius_settings_resync();
	</custom_php_resync_config_command>
	<custom_php_validation_command>
		freeradius_validate_interfaces($_POST, $input_errors);
	</custom_php_validation_command>
</packagegui>
OpenPOWER on IntegriCloud