Bridge is a NAT64 gateway implementation that enables communication between IPv6-only networks and IPv4-only resources. It translates IPv6 packets to IPv4 and vice versa, allowing IPv6 clients to access IPv4 services without requiring dual-stack support. This lightweight, Go-based solution offers efficient packet handling, customizable configurations, and easy deployment in various network environments. Bridge aims to ease the transition to IPv6 while maintaining compatibility with the existing IPv4 infrastructure.
To run Bridge, follow these steps:
-
Ensure you have Go installed (version 1.19 or later) The latest version of GoLang can be installed from here. https://go.dev/doc/install
-
Clone the repository
git clone https://github.com/mdxabu/bridge.git cd bridge
-
Build the project
go build -o bridge go install
-
Bridge Initialization
bridge init
This initializes the
bridgeconfig.yaml
file for Bridge CLI. -
Bridge run
bridge run
This command runs the bridge CLI. The source IP, the destination IP, RTT, the number of sent and received packets, and results are listed in a tabular column.
-
Bridge DNS
bridge dns
By using bridge DNS, the DNS64 resolving starts
-
Bridge Metrics
bridge metrics --nat64
This command will show the live metrics of translation in the web dashboard.