Project

General

Profile

Bug #1629 » states-bug.patch

Daniel Haid, 05/02/2015 10:09 PM

View differences:

etc/rc.newwanip
204 204
 * could be failing back in which case we need to switch IPs back anyhow.
205 205
 */
206 206
if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interfaces'][$interface]['ipaddr'])) {
207
	/*
208
	 * Some services (e.g. dyndns, see ticket #4066) depend on
209
	 * filter_configure() to be called before, otherwise pass out
210
	 * route-to rules have the old ip set in 'from' and connection
211
	 * do not go through correct link
212
	 */
213
	filter_configure_sync();
214

  
207 215
	/* IP changed, kill states accordingly */
208 216
	if ($curwanip != $oldip) {
209 217
		log_error("IP has changed, killing states on former IP $oldip.");
......
215 223
		}
216 224
	}
217 225

  
218
	/*
219
	 * Some services (e.g. dyndns, see ticket #4066) depend on
220
	 * filter_configure() to be called before, otherwise pass out
221
	 * route-to rules have the old ip set in 'from' and connection
222
	 * do not go through correct link
223
	 */
224
	filter_configure_sync();
225

  
226 226
	/* reconfigure static routes (kernel may have deleted them) */
227 227
	system_routing_configure($interface);
228 228

  
(3-3/3)