Skip to content

Virtual Private Network (VPN) enables secure communication over public or untrusted networks by encrypting traffic and routing it through a secure tunnel exploring VPN implementations, IP tunneling techniques, and routing mechanisms, demonstrating how VPNs establish secure connections and how traffic is managed across different network environments

Notifications You must be signed in to change notification settings

Priyabug/Virtual-Private-Network---IP-Tunneling-and-Routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Private Network - IP Tunneling and Routing

Description

A private network constructed on top of a public network, typically the Internet, is called a virtual private network, or VPN. Even though their communication may pass through a public network, computers inside a VPN can connect securely, exactly like if they were on a true private network that is physically isolated from the outside world. With the use of a VPN, staff members may safely access their company's intranet while on the go. Businesses can also use VPNs to extend their private networks domestically and internationally.

The goal of this lab implementation is to understand how a VPN operates. We concentrate on a particular kind of VPN (the most popular one), which is constructed on top of the transport layer. We are going to construct a basic VPN from the ground up.

image

Lab topics covered

  • Network Setup.
  • Create and Configure TUN Interface
    2.a: Name of the Interface
    2.b: Set up the TUN Interface
    2.c: Read from the TUN Interface
    2.d: Write to the TUN Interface
  • Send the IP Packet to VPN Server Through a Tunnel

Shell scripts commands

  • ./dc-build.sh - Build the docker images, it can take one additional parameter to be used in the build process.
  • ./dc-up.sh - Start the docker containers in the foreground.
  • ./dc-up-d.sh - Start the docker containers in the background.
  • ./dc-stop.sh - Stop the docker containers, it can take one additional parameter to be used in the stop process.
  • ./dc-down.sh - Stop and remove the docker containers, it can take one additional parameter to be used in the stop and remove process.
  • ./dc-unittest.sh - Utility script to aid in running a specific unit test class.

Program walk-through:

This lab provides hands-on experience with the foundational concepts of VPNs, including TUN/TAP interfaces, tunneling, and routing. By implementing both unidirectional and bidirectional tunnels,
  • Virtual Private Network:

    • The TUN/TAP virtual interface
    • IP tunneling
    • Routing

About

Virtual Private Network (VPN) enables secure communication over public or untrusted networks by encrypting traffic and routing it through a secure tunnel exploring VPN implementations, IP tunneling techniques, and routing mechanisms, demonstrating how VPNs establish secure connections and how traffic is managed across different network environments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published