How Can I use Raspberry Pi 4 as a antivirus or a security device in a Network?

I am trying to make the raspberry pi become a security device example below.

---(Internet)----(PI 4)-----(Local-PC)

That PI 4 needs to be a security for the internet.

  • Search Google for "PiHole".
    – Dougie
    Feb 18, 2020 at 18:00
  • @Dougie As far as I know "PiHole" is for outbound traffic, manly to block DNS traffic so obscure programs cannot call home.
    – Ingo
    Feb 18, 2020 at 19:18
  • Is your PC really connected straight to the internet? It's possible, but unusual. People usually have a router between the Internet and the PC, which will give some security. Your question is a bit backwards - you don't state what security you're trying to gain - but it's likely the router will do much the same as the Pi.
    – Mark Smith
    Feb 18, 2020 at 20:39

1 Answer 1


OpenWrt is a OS/tools that you can write on the SD-Card and run on your raspberry pi. In this link, you can find the image file and some explanation.

It's easy to configure the OpenWrt. All you need is configure the eth0 or br0 (by default) as the WAN port and connect your modem port (internet) then share it by wlan0.

It can be your simple firewall that is easy to use. More information is here.

On the other hand, you can configure you Raspbian/Archlinux/etc as a network firewall that is a bit complicated. Check this link out to get some information about configuration.

  • Cool, I didn't know there was OpenWRT for RasPi (although, I should've guessed, it was only a matter of time...)
    – nurchi
    May 19, 2020 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.