Project

General

Profile

« Previous | Next » 

Revision 9f1e3b2b

Added by Erik Fonnesbeck over 14 years ago

Add backend support for aliases on source and destination address of outbound NAT rules.

View differences:

etc/inc/filter.inc
1231 1231
		if(is_array($config['nat']['advancedoutbound']['rule'])) {
1232 1232
			foreach ($config['nat']['advancedoutbound']['rule'] as $obent) {
1233 1233
				update_filter_reload_status("Creating advanced outbound rule {$obent['descr']}");
1234
				$src = $obent['source']['network'];
1235
				if(isset($obent['destination']['not']) && !isset($obent['destination']['any']))
1236
					$dst = "!" . $obent['destination']['address'];
1237
				else
1234
				$src = alias_expand($obent['source']['network']);
1235
				if(!$src)
1236
					$src = $obent['source']['network'];
1237
				$dst = alias_expand($obent['destination']['address']);
1238
				if(!$dst)
1238 1239
					$dst = $obent['destination']['address'];
1240
				if(isset($obent['destination']['not']) && !isset($obent['destination']['any']))
1241
					$dst = "!" . $dst;
1239 1242
				if(!$obent['interface'])
1240 1243
					$natif = "wan";
1241 1244
				else

Also available in: Unified diff