Logo

dev-resources.site

for different kinds of informations.

Liguard - The Linode Guard

Published at
2/20/2023
Categories
linodehackathon
javascript
showdev
firewall
Author
darthbenro008
Author
13 person written this
darthbenro008
open
Liguard - The Linode Guard

What I built

Imagine you wanted to block people using iPhone to access your server, or people using Chrome or people accessing from IPs of specific location to your server, but you don't want to write all this on serverside. You can do that all on edge (before request hits your server) with Liguard!

Liguard is an Edge cloud firewall reverse proxy with an inbuilt ddos prevention solution. Does that sound complex? Let's break it down.

  • Cloud: A system/server that is sitting on the cloud
  • Firewall: A system that denies/allows a packet based on some instruction and conditional logic
  • Reverse Proxy: A system that sits in-front of your actual server and forward the request to your actual server safely
  • DDoS Protection: A system that detects DDoS and contains the attack Liguard is a combination of all these! Yes, you read that right.

Category Submission:

EdgeWorker Experts

Screenshots

Liguard Edge Worker Service Hosted

Description

One can simply define custom security policies in JSON like the following:

{
  "siteConfigs": [
    {
      "siteData": {
        "siteName": "google",
        "forwardingUrl": "https://google.com",
        "blockedOs": ["iPhone"],
        "blockedBrowser": ["Chrome"],
        "blockedDevice": ["iPhone"],
        "blockedOSVersion": ["15.1"],
        "blockedLocations": [""],
        "blockedIPs": ["0.0.0.0", "8.8.8.8"]
      }
    },
    {
      "siteData": {
        "siteName": "github",
        "forwardingUrl": "https://github.com",
        "blockedOs": ["Mac"],
        "blockedBrowser": ["Chrome"],
        "blockedDevice": ["iPhone"],
        "blockedOSVersion": ["15.1"],
        "blockedLocations": ["India"],
        "blockedIPs": ["0.0.0.0", "8.8.8.8"]
      }
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

This will implement all these security policies in the Edge using Linode's EdgeWorker service! A truly customisable and configurable firewall guard.

Source Code

GitHub logo DarthBenro008 / liguard

A very simple customizable and configurable firewall deployable on Linode Edgeworker

Banner

Liguard

A very simple customizable and configurable firewall deployable on Linode Edgeworker

๐Ÿค” What is Liguard?

Liguard is an Edge cloud firewall reverse proxy with an inbuilt ddos prevention solution. Does that sound complex? Let's break it down.

  • Cloud: A system/server that is sitting on the cloud
  • Firewall: A system that denies/allows a packet based on some instruction and conditional logic
  • Reverse Proxy: A system that sits in-front of your actual server and forward the request to your actual server safely
  • DDoS Protection: A system that detects DDoS and contains the attack

Liguard is a combination of all these! Yes, you read that right.

Imagine you wanted to block people using iPhone to access your server, or people using Chrome or accessing from IPs of specific location. You can do that all with Liguard!

What are the major advantages of using Liguard?

  • Declarative security policies using JSON
  • Runs on Edgeโ€ฆ

Permissive License

This project is backed under MIT License, special shout out to project UA-Parser, as liguard uses a piece of its source-code.

Background

As a backend developer, i always was very concerned about security issues. Adding security features on server levels are always hectic, i always wondered if i could somehow block people who use safari to visit my website (because a lot of CSS frameworks break in safari), hence this motivated me to make a firewall/guard that could be applied in a whole domain, and is not at server level, but at edge-level.

How I built it

Thanks to Linode's Edgeworker service and their amazing tutorials!

This project is written in Javascript, and deployed via akamai CLI

The resources and relevant info on how to develop/test and deploy can be found here!

linodehackathon Article's
30 articles in total
Favicon
A Promising Vision For Redefining The Way People Build...
Favicon
Hosting multiple Websites on a single Nginx Server
Favicon
Linode + DEV Hackathon
Favicon
TrackMyEvents - An event tracking platform
Favicon
File Manager - A free file sharing platform for all
Favicon
Linode + DEV Hackathon Winners, Announced!
Favicon
Linode + DEV Hackathon
Favicon
Linode + DEV Hackathon
Favicon
Linode + DEV Hackathon
Favicon
Linode + DEV Hackathon ( The Cyber Painter)
Favicon
Lowm
Favicon
่‹นๆžœไผไธš็ญพๅใ€iosไผไธš็ญพๅใ€ๅฎ‰ๅ“ๆŠฅๆฏ’ๅค„็†ใ€ไนฐๅ–ไผไธš่ฏไนฆใ€ๆทปๅŠ QQ๏ผš1553207692 ใ€้ฃžๆœบ@ios616
Favicon
Geo Assist - A Spatial Engine
Favicon
CostGPT - A cost estimator for Linode resource cost based on GPT model
Favicon
Linode + DEV Hackathon
Favicon
WanderXP โ€” Organize your travel with ease
Favicon
Stonks - Realtime Trading Simulator [Linode DEV Hackathon]
Favicon
StaticStorm - Unleash the power of simple, fast and secure websites. Linode + DEV Hackathon
Favicon
DevHub - Twitter for developer (Dev + Linode Hackathon)
Favicon
YouTube Geeks - One-stop platform to make learning from YouTube more productive [Linode + DEV Hackathon Project]
Favicon
Meet Casper, the Astral Librarian โœจ, A Discord Bot for Searching the Web
Favicon
HealthifAI โ€” ๐˜š๐˜ฆ๐˜ข๐˜ฎ๐˜ญ๐˜ฆ๐˜ด๐˜ด ๐˜๐˜ฆ๐˜ข๐˜ญ๐˜ต๐˜ฉ๐˜ค๐˜ข๐˜ณ๐˜ฆ ๐˜ด๐˜ฐ๐˜ญ๐˜ถ๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ด ๐˜ง๐˜ฐ๐˜ณ ๐˜—๐˜ณ๐˜ฐ๐˜ท๐˜ช๐˜ฅ๐˜ฆ๐˜ณ๐˜ด ๐Ÿฅโš•๏ธ
Favicon
Linode + DEV Hackathon
Favicon
Liguard - The Linode Guard
Favicon
Recurrer: Conquer your repeat expenses
Favicon
Linode + DEV Hackathon WavScribe
Favicon
Introducing Unified Health System - It's time to live More #LinodeHackathon
Favicon
MylinkUp - Single place to store all your social media links (Linode + DEV Hackathon)
Favicon
DevEmbed: Embed your dev.to profile anywhere using widgets - Linode Hacakathon
Favicon
Ml Model Consume on Linode migrated from Azure Functions - Sandy Inspires

Featured ones: