summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Byington <carl@five-ten-sg.com>2015-02-24 11:35:16 -0800
committerDaniil Baturin <daniil@baturin.org>2015-05-03 19:16:23 +0200
commita6fa2832d278e9cbcce22436061464f883df1922 (patch)
tree7bf5077c9905b5ba9c2586b96871fe83c5fee7ac
parentc1305c8d47fc58bef15c77210501ef59114434c6 (diff)
downloadvyatta-cfg-quagga-a6fa2832d278e9cbcce22436061464f883df1922.tar.gz
vyatta-cfg-quagga-a6fa2832d278e9cbcce22436061464f883df1922.zip
allow dhcp-interface for the next-hop on static routes
Signed-off-by: Daniil Baturin <daniil@baturin.org>
-rwxr-xr-xscripts/vyatta-static-dhcp.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-static-dhcp.pl b/scripts/vyatta-static-dhcp.pl
index 91a4696d..cf72930c 100755
--- a/scripts/vyatta-static-dhcp.pl
+++ b/scripts/vyatta-static-dhcp.pl
@@ -27,7 +27,7 @@ if ($orouters ne $nrouters) {
system("vtysh -c 'configure terminal' -c 'ip route $route $nrouters $tab' ");
}
if (($oip ne $nip) && ($table ne "main") && ($route eq "0.0.0.0/0")) {
- my $mark = 0x7ffffff + $table;
+ my $mark = 0x7fffffff + $table;
system("sudo /sbin/iptables -t mangle -D OUTPUT -s $oip/32 -j MARK --set-mark $mark");
system("sudo /sbin/iptables -t mangle -A OUTPUT -s $nip/32 -j MARK --set-mark $mark");
}