Subversion Repositories ALCASAR

Rev

Rev 3049 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3049 Rev 3051
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: network.php 3049 2022-07-31 22:15:30Z rexy $
2
# $Id: network.php 3051 2022-08-04 22:49:19Z rexy $
3
// written by steweb57, Rexy, Tom HOUDAYER & Pierre RIVAULT
3
// written by steweb57, Rexy, Tom HOUDAYER & Pierre RIVAULT
4
 
4
 
5
/********************
5
/********************
6
*  READ CONF FILES  *
6
*  READ CONF FILES  *
7
*********************/
7
*********************/
Line 78... Line 78...
78
	$l_no			= "Non";
78
	$l_no			= "Non";
79
	$l_ssl_title		= "Chiffrer les flux d'authentification entre les utilisateurs et ALCASAR";
79
	$l_ssl_title		= "Chiffrer les flux d'authentification entre les utilisateurs et ALCASAR";
80
	$l_ssh_title		= "SSH";
80
	$l_ssh_title		= "SSH";
81
	$l_ssh_port			= "Port";
81
	$l_ssh_port			= "Port";
82
	$l_ssh_from			= "IP autorisée";
82
	$l_ssh_from			= "IP autorisée";
83
	$l_ssh_wan_activate	= "Activer SSH sur WAN";
83
	$l_ssh_wan_activate	= "Activer SSH côté WAN";
84
	$l_ssh_lan_activate	= "Activer SSH sur LAN";
84
	$l_ssh_lan_activate	= "Activer SSH côté LAN";
-
 
85
	$l_all_ip			= "Pour autoriser toutes les @IP sources: 0.0.0.0";
85
	$l_interlan_title = "Autoriser l'accès au réseau situé entre ALCASAR et le routeur d'accès à Internet";
86
	$l_interlan_title	= "Autoriser l'accès au réseau situé entre ALCASAR et le routeur d'accès à Internet";
86
	$l_cert_expiration	= "Date d'expiration :";
87
	$l_cert_expiration	= "Date d'expiration :";
87
	$l_cert_commonname	= "Nom commun :";
88
	$l_cert_commonname	= "Nom commun :";
88
	$l_cert_organization	= "Organisation :";
89
	$l_cert_organization	= "Organisation :";
89
	$l_upload_certificate	= "Importer un certificat officiel";
90
	$l_upload_certificate	= "Importer un certificat officiel";
90
	$l_le_integration	= "Intégrer un certificat Let's Encrypt";
91
	$l_le_integration	= "Intégrer un certificat Let's Encrypt";
Line 147... Line 148...
147
	$l_no			= "No";
148
	$l_no			= "No";
148
	$l_ssl_title		= "La autenticación de cifrado fluye entre usuarios y ALCASAR";
149
	$l_ssl_title		= "La autenticación de cifrado fluye entre usuarios y ALCASAR";
149
	$l_ssh_title		= "SSH";
150
	$l_ssh_title		= "SSH";
150
	$l_ssh_port			= "Puerto";
151
	$l_ssh_port			= "Puerto";
151
	$l_ssh_from			= "IP autorizada";
152
	$l_ssh_from			= "IP autorizada";
152
	$l_ssh_wan_activate	= "Activar SSH on WAN";
153
	$l_ssh_wan_activate	= "Activar SSH en el lado WAN";
153
	$l_ssh_lan_activate	= "Activar SSH on LAN";
154
	$l_ssh_lan_activate	= "Activar SSH en el lado LAN";
-
 
155
	$l_all_ip			= "Para permitir todas las @IP de origen : 0.0.0.0";
154
	$l_interlan_title = "Permitir el acceso a la red entre ALCASAR y el router de acceso a Internet";
156
	$l_interlan_title = "Permitir el acceso a la red entre ALCASAR y el router de acceso a Internet";
155
	$l_cert_expiration	= "Fecha de vencimiento:";
157
	$l_cert_expiration	= "Fecha de vencimiento:";
156
	$l_cert_commonname	= "Common name:";
158
	$l_cert_commonname	= "Common name:";
157
	$l_cert_organization	= "Organización:";
159
	$l_cert_organization	= "Organización:";
158
	$l_upload_certificate	= "Importar un certificado";
160
	$l_upload_certificate	= "Importar un certificado";
Line 215... Line 217...
215
	$l_no			= "No";
217
	$l_no			= "No";
216
	$l_ssl_title		= "Cipher authentication flows between users and ALCASAR";
218
	$l_ssl_title		= "Cipher authentication flows between users and ALCASAR";
217
	$l_ssh_title		= "SSH";
219
	$l_ssh_title		= "SSH";
218
	$l_ssh_port			= "Port";
220
	$l_ssh_port			= "Port";
219
	$l_ssh_from			= "Authorized IP";
221
	$l_ssh_from			= "Authorized IP";
220
	$l_ssh_wan_activate	= "Activate SSH on WAN";
222
	$l_ssh_wan_activate	= "Activate SSH on WAN side";
221
	$l_ssh_lan_activate	= "Activate SSH on LAN";
223
	$l_ssh_lan_activate	= "Activate SSH on LAN side";
-
 
224
	$l_all_ip			= "To allow all source IP addresses: 0.0.0.0";
222
	$l_interlan_title = "Authorize access to the network located between ALCASAR and Internet broadband router";
225
	$l_interlan_title = "Authorize access to the network located between ALCASAR and Internet broadband router";
223
	$l_cert_expiration	= "Expiration date:";
226
	$l_cert_expiration	= "Expiration date:";
224
	$l_cert_commonname	= "Common name:";
227
	$l_cert_commonname	= "Common name:";
225
	$l_cert_organization	= "Organization:";
228
	$l_cert_organization	= "Organization:";
226
	$l_upload_certificate	= "Import an officlal certificate";
229
	$l_upload_certificate	= "Import an officlal certificate";
Line 1237... Line 1240...
1237
						<tr>
1240
						<tr>
1238
							<td><input style="width:120px" type="text" id="ssh_port" name="ssh_port" value="<?= $conf['SSH_LAN'] !== '0' ? $conf['SSH_LAN']:22 ?>" /></td>
1241
							<td><input style="width:120px" type="text" id="ssh_port" name="ssh_port" value="<?= $conf['SSH_LAN'] !== '0' ? $conf['SSH_LAN']:22 ?>" /></td>
1239
							<td><input style="width:120px" type="text" id="ssh_from" name="ssh_from" value="<?= explode('/',$conf['SSH_ADMIN_FROM'])[0] ?>" /></td>		
1242
							<td><input style="width:120px" type="text" id="ssh_from" name="ssh_from" value="<?= explode('/',$conf['SSH_ADMIN_FROM'])[0] ?>" /></td>		
1240
						</tr>
1243
						</tr>
1241
					</table>
1244
					</table>
1242
					<p>Activer sur tout le LAN : 0.0.0.0</p>
1245
					<p><?= $l_all_ip ?></p>
1243
				</div>
1246
				</div>
1244
					<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"><br>
1247
					<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"><br>
1245
				</form>
1248
				</form>
1246
			</div>
1249
			</div>
1247
		</td>
1250
		</td>
Line 1258... Line 1261...
1258
						<tr>
1261
						<tr>
1259
							<td><input style="width:120px" type="text" id="ssh_port" name="ssh_port" value="<?= $conf['SSH_WAN'] !== '0' ? $conf['SSH_WAN']:22 ?>" /></td>
1262
							<td><input style="width:120px" type="text" id="ssh_port" name="ssh_port" value="<?= $conf['SSH_WAN'] !== '0' ? $conf['SSH_WAN']:22 ?>" /></td>
1260
							<td><input style="width:120px" type="text" id="ssh_from" name="ssh_from" value="<?= explode('/',$conf['SSH_ADMIN_FROM'])[1] ?>" /></td>		
1263
							<td><input style="width:120px" type="text" id="ssh_from" name="ssh_from" value="<?= explode('/',$conf['SSH_ADMIN_FROM'])[1] ?>" /></td>		
1261
						</tr>
1264
						</tr>
1262
					</table>
1265
					</table>
1263
					<p>Activer sur tout réseau : 0.0.0.0</p>
1266
					<p><?= $l_all_ip ?></p>
1264
				</div>
1267
				</div>
1265
				<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"><br>
1268
				<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"><br>
1266
				</form>
1269
				</form>
1267
			</div>
1270
			</div>
1268
		</td>
1271
		</td>