A new barrier between the Gaza Strip and Israeli communities will be completed within the next two years, the IDF announced on Tuesday.

The barrier, which was first proposed following 2014’s Operation Protective Edge, is designed to include both aboveground and underground protections against infiltrations from the coastal enclave.

Construction on the border protection system will take place “on a threat assessment basis,” meaning in the populated areas most vulnerable to attack, an Israel Defense Forces spokesperson said.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

The army would not say which towns and IDF bases in southern Israel would first get the new system, but noted “communities closer to the border area are generally at a greater risk.”

The system is set to include both physical barriers and improved technological detection.

This announcement came a day after security forces revealed they had discovered a Hamas attack tunnel extending dozens of meters inside Israeli territory from the Gaza Strip.

The army proposed the NIS 1.5-2.5 billion ($400-670 million) program to protect the areas surrounding the coastal enclave right after the 50-day war with Hamas in 2014.

However, the project initially progressed slowly. More than a year after the war, the project had yet to received funding, which prompted the local government’s outrage at the time.

During a Knesset meeting in November 2015, the former head of the Eshkol Regional Council, Gadi Yarkoni, slammed Prime Minister Benjamin Netanyahu, Defense Minister Ya’alon and IDF Chief of Staff Lt. Gen. Gadi Eisenkot for failing to deliver the system.

“[They] personally promised us that this barrier would be built. The current fence is a joke and a scandal that does not provide security for our residents,” Yarkoni said.

The tunnel discovered last week and announced Monday was dug approximately 100 feet (30-40 meters) below ground and was reportedly found using a secretive detection system that Netanyahu touted as a “world breakthrough.”

However, the army downplayed the technological breakthrough and instead stressed the role of intelligence and the “boots on the ground” approach in the tunnel detection mission.

The tunnel discovered inside Israeli territory was the first since the end of the war in August 2014. During that operation, at least 34 tunnels were discovered and destroyed by Israeli forces.

Following the operation, Hamas vowed to continue using tunnels and rockets to attack the Jewish state.

Speaking at a rally in the Gaza Strip last week, Hamas leader Ismail Haniyeh again told residents: “Our message to the prisoners is a message inked in blood. The rifle and the tunnel are our commitment.”