Projet

Général

Profil

« Précédent | Suivant » 

Révision 565908d2

Ajouté par Renato Botelho il y a plus de 9 ans

Do not create automatic outbound NAT rule for disabled openvpn servers and clients

Voir les différences:

etc/inc/filter.inc
1405 1405
	/* add openvpn interfaces */
1406 1406
	if(is_array($config['openvpn']['openvpn-server']))
1407 1407
		foreach ($config['openvpn']['openvpn-server'] as $ovpnsrv)
1408
			if (!empty($ovpnsrv['tunnel_network'])) {
1408
			if (!isset($ovpnsrv['disable']) && !empty($ovpnsrv['tunnel_network'])) {
1409 1409
				$tonathosts[] = $ovpnsrv['tunnel_network'];
1410 1410
				$descriptions[] = gettext("OpenVPN server");
1411 1411
			}
1412 1412

  
1413 1413
	if(is_array($config['openvpn']['openvpn-client']))
1414 1414
		foreach ($config['openvpn']['openvpn-client'] as $ovpncli)
1415
			if (!empty($ovpncli['tunnel_network'])) {
1415
			if (!isset($ovpncli['disable']) && !empty($ovpncli['tunnel_network'])) {
1416 1416
				$tonathosts[] = $ovpncli['tunnel_network'];
1417 1417
				$descriptions[] = gettext("OpenVPN client");
1418 1418
			}

Formats disponibles : Unified diff