From b1ca6fb8bdadec7554b9f6bb6ade1a9c19be65ea Mon Sep 17 00:00:00 2001 From: Carl Byington Date: Sun, 31 May 2015 12:51:23 -0700 Subject: allow dhcp-interface for the next-hop on static routes Signed-off-by: Alex Harpin --- scripts/vyatta-static-dhcp.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vyatta-static-dhcp.pl b/scripts/vyatta-static-dhcp.pl index fa4a7f62..2b9ed9c4 100755 --- a/scripts/vyatta-static-dhcp.pl +++ b/scripts/vyatta-static-dhcp.pl @@ -38,7 +38,7 @@ if (($oip ne $nip) && ($table ne "main") && ($route eq "0.0.0.0/0")) { } if (($nip ne "") && ($nip ne "127.0.0.1")) { system("sudo /sbin/iptables -t mangle -D OUTPUT -s $nip/32 -j MARK --set-mark $mark"); - system("sudo /sbin/iptables -t mangle -A OUTPUT -s $nip/32 -j MARK --set-mark $mark"); + system("sudo /sbin/iptables -t mangle -I OUTPUT -s $nip/32 -j MARK --set-mark $mark"); } } -- cgit v1.2.3