summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-02-09 04:10:31 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-02-09 04:10:31 -0500
commitbbd5b2a113cb64c872142b236b35c650804271eb (patch)
treebecba06e817935d65365d66f7f61e0ee570bbd1c
parentd6bb593aa88a8ffbd4eeb46e1e96b4a6dcb3fb16 (diff)
downloadvyatta-cfg-vpn-bbd5b2a113cb64c872142b236b35c650804271eb.tar.gz
vyatta-cfg-vpn-bbd5b2a113cb64c872142b236b35c650804271eb.zip
Use dhcp instead of dhcp3.
-rw-r--r--Makefile.am4
-rwxr-xr-xscripts/vpn-config.pl2
-rw-r--r--templates/vpn/ipsec/site-to-site/peer/node.tag/dhcp-interface/node.def2
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 7ae1717..ff81363 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,9 +31,9 @@ install-exec-hook:
cd templates; $(cpiop) $(DESTDIR)$(cfgdir)
mkdir -p $(DESTDIR)/etc/ppp/ip-up.d
mkdir -p $(DESTDIR)/etc/ppp/ip-down.d
- mkdir -p $(DESTDIR)/etc/dhcp3/dhclient-exit-hooks.d/
+ mkdir -p $(DESTDIR)/etc/dhcp/dhclient-exit-hooks.d/
mkdir -p $(DESTDIR)/usr/lib/ipsec/
cp scripts/vpn-ppp-up $(DESTDIR)/etc/ppp/ip-up.d/
cp scripts/vpn-ppp-down $(DESTDIR)/etc/ppp/ip-down.d/
- cp scripts/ipsecd-dhclient-hook $(DESTDIR)/etc/dhcp3/dhclient-exit-hooks.d/ipsecd
+ cp scripts/ipsecd-dhclient-hook $(DESTDIR)/etc/dhcp/dhclient-exit-hooks.d/ipsecd
cp scripts/vti-up-down $(DESTDIR)/usr/lib/ipsec/
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index 7d0289c..635c416 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -1567,7 +1567,7 @@ sub dhcp_hook {
/opt/vyatta/bin/sudo-users/vyatta-ipsec-dhcp.pl --interface=\"\$interface\" --new_ip=\"\$new_ip_address\" --reason=\"\$reason\" --old_ip=\"\$old_ip_address\"
EOS
}
- my $hook = "/etc/dhcp3/dhclient-exit-hooks.d/ipsecd";
+ my $hook = "/etc/dhcp/dhclient-exit-hooks.d/ipsecd";
open my $dhcp_hook, '>', $hook
or die "cannot open $hook";
print ${dhcp_hook} $str;
diff --git a/templates/vpn/ipsec/site-to-site/peer/node.tag/dhcp-interface/node.def b/templates/vpn/ipsec/site-to-site/peer/node.tag/dhcp-interface/node.def
index a25e076..026b175 100644
--- a/templates/vpn/ipsec/site-to-site/peer/node.tag/dhcp-interface/node.def
+++ b/templates/vpn/ipsec/site-to-site/peer/node.tag/dhcp-interface/node.def
@@ -2,6 +2,6 @@ type: txt
help: DHCP interface to listen on
allowed:
local -a array ;
- array=( /var/lib/dhcp3/eth* /var/lib/dhcp3/br* /var/lib/dhcp3/bond* ) ;
+ array=( /var/lib/dhcp/eth* /var/lib/dhcp/br* /var/lib/dhcp/bond* ) ;
echo -n ${array[@]##*/}