diff options
author | Carl Byington <carl@five-ten-sg.com> | 2015-05-31 12:51:23 -0700 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-11-09 21:36:28 +0000 |
commit | b1ca6fb8bdadec7554b9f6bb6ade1a9c19be65ea (patch) | |
tree | c651dcb967ee9a4aa5604f7408fcaec7cdceb9b9 | |
parent | 6284929fb9b7714a0da1098575422da56a1519a8 (diff) | |
download | vyatta-cfg-quagga-b1ca6fb8bdadec7554b9f6bb6ade1a9c19be65ea.tar.gz vyatta-cfg-quagga-b1ca6fb8bdadec7554b9f6bb6ade1a9c19be65ea.zip |
allow dhcp-interface for the next-hop on static routes
Signed-off-by: Alex Harpin <development@landsofshadow.co.uk>
-rwxr-xr-x | scripts/vyatta-static-dhcp.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |