\chapter{Project Proposal} \ChapterLabel{ProjectProposal} \index{project proposal} \index{VPN} \index{DNS filtering} \index{SWOT} \section{Title and Project Description} \textbf{Proposed title: Resource-Constrained Personal VPN and DNS Gateway.} Our group proposes to build a small, self-hosted network gateway for our own laptops and phones. An authorized device will connect to a \gls{vpn} on our DigitalOcean droplet. The tunnel will carry the device's traffic to the droplet, where an optional \gls{dns} filtering service will block selected ad and tracker domains. A dashboard will show whether the gateway is operating and how much of its limited capacity it uses. This is a proposed future project, not a claim that the gateway or dashboard is deployed today. The distinctive question is whether a useful, observable gateway can run reliably on the group's existing droplet with one vCPU, 512\,MB of RAM, and 10\,GB of storage. The group reports that memory use currently hovers around 52\% before the proposed VPN and DNS services are added. That observation is a starting point, not a capacity test. We will record the measurement method, available memory, peak memory, and disk use during each experiment rather than assume that a published minimum or an estimate predicts our actual workload. \section{Working Application and Environment} The minimum working application is a VPN gateway that accepts a group member's client connection, routes a test request through the tunnel, and can revoke that client's access. DNS filtering and the operations dashboard extend that application. A client should be able to resolve a normal domain, observe a known test domain being blocked when filtering is enabled, and remain connected through a controlled period of heavier use without an unexpected drop. We will use only group-controlled test devices and domains, and will document the observed result of each test. The existing DigitalOcean droplet is the intended host. We plan to test one VPN implementation at a time on Ubuntu. If resources permit, we will test one DNS filter at a time, either installed directly on Ubuntu or run in a container.\footnote{\url{https://github.com/AdguardTeam/AdGuardHome} and \url{https://docs.pi-hole.net/main/basic-install/}.} We will choose between those methods after checking memory, port conflicts, and how cleanly each candidate can be removed or replaced. Configuration files, installation scripts, optional Compose files, test scripts, and documentation will be versioned in GitHub. Client private keys, deployment credentials, and live DNS query logs will stay out of the repository. We do not propose a separate application database on the droplet; configuration will be stored in files, and the droplet's host graphs will be viewed in DigitalOcean Insights. \section{Tools and DevSecOps Workflow} \small \begin{longtable}{@{}L{3.0cm}L{4.0cm}L{6.0cm}@{}} \caption{Proposed tools and roles\label{Table:ProposalTools}}\\ \toprule \textbf{Area} & \textbf{Candidate tools} & \textbf{Planned use}\\ \midrule \endfirsthead \multicolumn{3}{l}{\small\itshape Proposed tools and roles (continued)}\\ \toprule \textbf{Area} & \textbf{Candidate tools} & \textbf{Planned use}\\ \midrule \endhead \bottomrule \endlastfoot Source control & Git and GitHub & Review changes to configuration, scripts, tests, and documentation.\\ Build and deployment & GitHub Actions, shell scripts; Docker Compose if selected & Validate configuration, deploy a reviewed version, and keep a rollback procedure.\\ VPN & WireGuard and OpenVPN Community Edition & Provide two implementations of the same secure-tunnel task, tested in separate windows.\\ DNS filtering & AdGuard Home and Pi-hole & Compare blocking behavior and resource cost, one at a time if the droplet can support them.\\ Testing & Shell scripts, \texttt{dig}, \texttt{iperf3} & Check connection, DNS behavior, latency, throughput, resource use, and public exposure.\\ Security & DigitalOcean Cloud Firewall, host firewall, SSH keys, image scanning & Restrict network entry, review container port mappings, and scan dependencies or images before deployment.\\ Monitoring & DigitalOcean Insights and recorded service checks & Review host graphs and pair them with VPN stability and DNS-blocking test results without adding a metrics database to the small droplet.\\ \end{longtable} \normalsize The pipeline will first check syntax and configuration, run tests that need no production credentials, and scan any container image we choose to use. A deployment will follow human review. Tests that require a live VPN client or a public-network probe will run in an authorized environment and will be reported separately from CI checks that cannot exercise the droplet. \section{Comparison and Measurement Plan} \subsection{VPN: WireGuard Versus OpenVPN} We will use the same droplet, client device, route, and test destination for both VPN implementations. Each will run alone during its measurement window. We plan to compare successful connection setup, latency, throughput, CPU and memory use, unexpected connection drops during a bounded sustained transfer, configuration effort, key or certificate rotation, and recovery after a service restart. Results will include the test conditions and repeated measurements; a product will not be called faster or safer based on a single run. WireGuard and OpenVPN both have official configuration guides. \footnote{\url{https://www.wireguard.com/quickstart/} and \url{https://openvpn.net/community-docs/how-to.html}.} \subsection{DNS Filtering: AdGuard Home Versus Pi-hole} We will begin with one DNS filter and a small, documented test list. If resource measurements allow, we will replace it with the other filter and repeat the same normal-domain, blocked-domain, and allow-list tests. We will compare DNS response time, correct blocking, false positives, RAM, CPU, disk use, configuration effort, and recovery after restart. We will not run both filters simultaneously on the droplet for the comparison. Pi-hole lists 512\,MB RAM and at least 2\,GB of free space in its hardware prerequisites.\footnote{\url{https://docs.pi-hole.net/main/prerequisites/}.} Those figures describe a supported host, not Pi-hole's measured process footprint. Since 512\,MB is the droplet's total RAM, Pi-hole on this host is an explicit feasibility experiment. If it cannot run reliably beside the operating system and VPN, we will document that result and test it in a separate local environment, clearly labeling the different environment. The VPN-only gateway remains the minimum working application. \section{Sample Tasks and Acceptance Checks} \begin{enumerate}[label=\arabic*.] \item Inventory the droplet's current services, memory, disk, and public ports; record a baseline before installing anything new. \item Define a least-privilege access plan, recoverable firewall changes, separate client credentials, and a way to revoke one client. \item Deploy WireGuard; connect a group-controlled laptop or phone; verify the expected route and DNS resolver. During a bounded period of heavier normal traffic, periodically check that the client remains connected and record any unexpected drop or reconnection. Repeat with OpenVPN in a separate window. \item If capacity permits, deploy one DNS blocker and verify ordinary resolution and an ad domain included in the test blocklist; check that the filter reports the block without recording a person's browsing history. Test allow-list behavior and recovery, then repeat with the alternative under comparable conditions. \item Run scripted performance and security checks, including an external probe that DNS and any project-specific status interface do not answer on the public IP. \item Capture DigitalOcean Insights before and during each test, place the host graphs beside a concise VPN and DNS results panel, compare the observed outcomes, and update the SWOT charts with evidence. \item Demonstrate a reviewed redeployment and rollback, then document how the group will stop services and remove billable resources when the course activity ends. \end{enumerate} The proposed acceptance checks are a working authorized client connection, stable connectivity during a bounded load test, correct routing and DNS behavior, successful client revocation, a dashboard showing current resource use, and no unintended public DNS or project-status endpoint. Each claim in the final report will need a command result, test record, or screenshot from an actual run. \section{Operational Dashboard and Resource Limits} \textbf{The dashboard approach is provisional and subject to change after the group discusses the assignment with the professor.} DigitalOcean Insights and the service checks below are possible ways to present operational evidence; the group has not chosen a final dashboard design or claimed that this plan fulfills the final dashboard rubric. DigitalOcean's Droplet Insights page already presents host graphs. Its metrics agent adds CPU, load average, and memory usage to the default resource views; the group will verify which graphs are enabled on this droplet.\footnote{\url{https://docs.digitalocean.com/products/droplets/how-to/track-performance/}.} We plan to use Insights as the resource part of the dashboard, recording a baseline and the same time window during each VPN and DNS test. This avoids running Prometheus or Grafana on the 512\,MB, 10\,GB host. We will also check available RAM and swap on the droplet before choosing a final service combination. Insights does not establish whether a VPN connection stays up under load or an ad domain is blocked. A possible service-check summary would record whether the client stays connected during a bounded sustained transfer, the time of any unexpected drop or reconnection, and the client's route or exit address. We will compare those timestamps with CPU and memory changes in Insights and stop the test if it threatens the existing website or droplet stability. If DNS filtering fits, we will compare a normal lookup with a domain on the selected ad blocklist and check the filter's aggregate block count. These are planned tests, not observed results. The final report will pair their timestamped outputs with Insights captures, without publishing client identities or individual DNS histories. \section{Security, Privacy, and Operations} Only group members will receive client credentials, with separate identities so access can be revoked individually. SSH and VPN access will be restricted through reviewed firewall rules. DNS administration, DNS service, and any project-specific status endpoint must be private to the tunnel or another approved management path. We will verify this from outside the droplet: Docker's published ports can bypass UFW filtering, so a UFW rule alone is insufficient evidence that a container port is private.\footnote{\url{https://docs.docker.com/engine/network/packet-filtering-firewalls/}.} DNS queries can reveal browsing activity. We propose short retention or disabled per-client query logging, aggregate-only dashboard panels, and no query logs in GitHub or the course report. The group will check applicable network policies before testing on a campus network. The droplet owner will monitor actual charges; any larger droplet or paid monitoring service is a separate group decision. After the project, the group will revoke client credentials, stop the services, retain only sanitized course evidence, and delete unneeded billable resources with the owner's approval. \section{Modified SWOT Charts} The following modified \gls{swot} charts are planning hypotheses. ``Opportunity'' describes what the tool could enable for this project, while ``Threat'' names an external or operational condition that could defeat it. We will revise the charts after the comparison tests rather than present them as measured conclusions. \subsection{WireGuard} \begin{table}[H] \centering\small \begin{tabular}{@{}L{0.47\linewidth}L{0.47\linewidth}@{}} \toprule \textbf{Strength:} Direct peer configuration and a compact host-side setup make a small gateway plausible. & \textbf{Weakness:} Every authorized device still needs secure key distribution and route configuration.\\ \midrule \textbf{Opportunity:} Establish a low-overhead baseline on the 512\,MB droplet and test per-peer revocation. & \textbf{Threat:} A network that blocks the selected UDP port could prevent a client connection.\\ \bottomrule \end{tabular} \caption{Proposed modified SWOT for WireGuard}\label{Table:SWOTWireGuard} \end{table} \subsection{OpenVPN Community Edition} \begin{table}[H] \centering\small \begin{tabular}{@{}L{0.47\linewidth}L{0.47\linewidth}@{}} \toprule \textbf{Strength:} Mature client and server configuration offers a meaningful alternative VPN design. & \textbf{Weakness:} Certificate and configuration management adds work for a small group.\\ \midrule \textbf{Opportunity:} Compare connection behavior and resource cost against WireGuard under one test plan. & \textbf{Threat:} A configuration mistake or certificate-expiry event could interrupt access.\\ \bottomrule \end{tabular} \caption{Proposed modified SWOT for OpenVPN}\label{Table:SWOTOpenVPN} \end{table} \subsection{AdGuard Home} \begin{table}[H] \centering\small \begin{tabular}{@{}L{0.47\linewidth}L{0.47\linewidth}@{}} \toprule \textbf{Strength:} DNS filtering can be tested as a native service or a container. & \textbf{Weakness:} Its web administration and query data add services and privacy decisions.\\ \midrule \textbf{Opportunity:} Measure whether a useful blocker fits beside the VPN and compare its filtering controls. & \textbf{Threat:} Incorrect listener or port settings could expose DNS or administration publicly.\\ \bottomrule \end{tabular} \caption{Proposed modified SWOT for AdGuard Home}\label{Table:SWOTAdGuard} \end{table} \subsection{Pi-hole} \begin{table}[H] \centering\small \begin{tabular}{@{}L{0.47\linewidth}L{0.47\linewidth}@{}} \toprule \textbf{Strength:} A second DNS blocker enables a direct feature and resource comparison. & \textbf{Weakness:} Its published 512\,MB host requirement leaves feasibility uncertain on this droplet.\\ \midrule \textbf{Opportunity:} Test whether careful service selection and configuration can fit a constrained host. & \textbf{Threat:} Memory or disk pressure, or a conflict on DNS and web ports, could make the combined gateway unstable.\\ \bottomrule \end{tabular} \caption{Proposed modified SWOT for Pi-hole}\label{Table:SWOTPiHole} \end{table} \section{Proposed Deliverables and Open Decisions} We intend to deliver versioned, sanitized configuration; a working VPN demonstration; automated checks; reproducible comparison records; a dashboard capture; revised SWOT charts; and a runbook for deployment, revocation, rollback, and cleanup. The group still must choose the first VPN and DNS candidate, the dashboard host, acceptable resource headroom and test duration, and whether any paid upgrade is justified. These are project decisions and future results, not established facts of the current deployment.