use new dhcp

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-04-06 18:23:27 +02:00
commit dca0819fac
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 1 additions and 92 deletions

View file

@ -82,9 +82,7 @@ function create_subnet {
ebtables -A FORWARD --out-interface "br-${subnet_id}" -p arp --arp-op Request --arp-ip-dst "${gateway_ip}" -j DROP
ebtables -A FORWARD --out-interface "br-${subnet_id}" -p IPv4 --ip-protocol udp --ip-source-port 67:68 --ip-destination-port 67:68 -j DROP
#generate_dhcp_file "${subnet}" "${vpc_name}_br-${subnet_id}" "${gateway_ip}"
systemctl start "dnsmasq@${vpc_name}_br-${subnet_id}.service"
/opt/two/bin/dhcp -name "${vpc_name}_br-${subnet_id}" -subnet "${subnet}" -gateway "${gateway_ip}"
}
return 0
}