Integrated Ad And Malware Blocking System On Local Network With Raspberry Pi

Research on Raspberry Pi used for ad and malware blocking systems

Integrated Ad And Malware Blocking System On Local Network With Raspberry Pi
Photo by Jainath Ponnala / Unsplash

THE RASPBERRY PI PROJECT

Integrated Ad And Malware Blocking System On Local Network With Raspberry Pi

A network security system is a system that is responsible for preventing and identifying unauthorized users on a computer network. This precaution is used to prevent intruders from entering the computer network. The purpose of a computer network security system is to anticipate physical or logical threats, direct or indirect, that interfere with network security systems.

Cyber ​​security is an important thing in the Internet world, especially in today’s increasingly complex era where many crimes are committed on the Internet that can harm users. We can prevent a very large Internet crime by being more careful in using the available Internet facilities.

Attacks on information system security these days are common, cybercrimes in cyberspace are usually carried out by a group or person who wants to break into a security system. This activity aims to find, retrieve, modify and even delete system information if necessary. However, we can avoid the dangers of crime in the internet world by being more careful and wiser in using the internet.

This article discusses systems that can block malware that can harm our devices from crimes on the internet and block advertisements that can interfere with our activities on the internet such as advertisements that always appear when we are surfing for information on the internet. The system to be built uses a Pi-Hole which we can install on a Raspberry Pi computer and can later be integrated with networks in the education sector such as schools or in the government domain such as the sub-district office.

The hardware used in this study has been described in the needs analysis, at this stage, the author performs hardware design carried out on the Raspberry Pi hardware for the development of an ad and malware blocking system. The relationship of each device in the system can be seen in the picture

In the picture, you can see the relationship between the hardware that has been explained in the needs analysis that is connected to each other in the design of an integrated ad and malware blocking system on the local network for network security and internet convenience. The hardware workflows that are interconnected with each other are as follows:

The router is an internet source for the Raspberry Pi hardware, the router provides internet access for the Raspberry Pi via an RJ45 cable or through the Eth0 interface on the internet configuration on the Raspberry Pi hardware. The router also has a DHCP (Dynamic Host Configuration Protocol) server to provide IP addresses to connected devices.

Raspberry Pi is a server where all processes are carried out in this hardware. The Raspberry Pi model used in this study is the Raspberry Pi model 4 with a Quad-core Cortex-A72 1.5GHz specification and 4GB RAM. Raspberry Pi will perform the process of blocking ads and malware.

Keyboard and Mouse, and Monitor as supporting devices to be able to operate or configure the Raspberry Pi with the Raspbian operating system that was previously installed using BalenaEtcher on a 32GB MicroSD. For hardware, the Switch with eight ports serves to help connect hardware to each other.

Network architecture design is the implementation stage of the network that will be used. At the design stage of this network architecture, the design of the IP address used is built. The design of this stage can be seen in the picture

In the network architecture design drawing, each device has its own IP address. On the Raspberry Pi hardware, there is an IP address of 192.168.1.24/24 which has been configured statically so that the IP address on the Raspberry Pi does not change. The IP address that has been set or assigned to the Raspberry Pi can be used as a DNS server for Router hardware which can later be integrated with the ad and malware blocking system on the Raspberry Pi.

On the router hardware, there is an IP address of 192.168.1.1/24 which is used as a gateway address for the system or for Raspberry Pi hardware and user hardware, namely laptops and smartphones. DNS configured on the router with the same 192.168.1.24/24 DNS address as the Raspberry Pi’s IP address is used to integrate ad and malware blocking systems with the router.

The IP address for the network on the laptop and on the smartphone is a static IP address for connecting to the router hardware. For the IP address on the smartphone is assigned or configured at 192.168.1.125/24 with the same gateway IP 192.168.1.1/24 as the router IP address, and the IP address on the laptop is assigned or configured at 192.168.1.124/24 with the gateway IP address 192.168 1.1/24 which is the same as the router’s IP address.

In software design, it is done by defining the services that run on the system, and how the services can relate to each other and work well where the service is running. The design of the software in the form of a diagram can be seen in the picture

In the figure, the design of the software implemented in the ad and malware blocking system for network security and convenience on the internet. The following describes the software workflow on an ad and malware blocking system:

Cloudflare DNS Over HTTPS on the Raspberry Pi system used for DNS servers which will later be integrated with the installed Pi-Hole system. The Cloudflare DNS Over HTTPS server has a port configuration with port 5053 which can be accessed on the Pi-Hole system.

Pi-Hole is a system function to block advertisements and malware which here uses DNS Over HTTPS provided by Cloudflare which was previously installed with port 5053. For Pi-Hole itself it uses port 53 to respond to incoming DNS to the system and port 80 which is used by the Pi-Hole web server with an admin panel.

When a user connects to an internet connection, a router that has been configured with a DNS server with the same IP address as the Raspberry Pi can be directly integrated with the Pi-Hole system, which functions to block harmful ads and malware for network security and internet convenience. In addition, users can also enter the Pi-Hole admin panel to view statistics on the Pi-Hole system and configure the Pi-Hole system via the Raspberry Pi IP address, namely 192.168.1.24/24 which can be accessed in the browser.

Thank you for reading this article.