Bridge46 is simple bridge between IPv4 and IPv6 it's works by listen on IPv4 well known services and forward the traffic to IPv6 services
- HTTP
- HTTPS
- Websocket (ws) and Secure Websocket (wss)
- Minecraft (TCP)
- Clone the repository
- Run the following command to build and run the project
cargo run
- Add A record of IPv4 of the server to your DNS records (make sure you have IPv6 AAAA record too)
- Now you can access your IPv6 services using IPv4
- Pull the image from docker hub (optional because the image will be pulled automatically when you run the container)
docker pull xlmnxp/bridge46:latest
- Run the image
docker run -d -p 80:80 -p 443:443 -p 25565:25565 --name bridge46 xlmnxp/bridge46:latest
Optionally you can pass the following environment variables to the container
Environment Variable | Description | Default Value |
---|---|---|
DNS_SERVER | specify the DNS server to use | 1.1.1.1:53 |
BIND_ADDRESS | specify the address to bind to | :: |
BRIDGE46_IPV4 | specify the IPv4 address for service validation of A Records point to the service (see #1) | empty |
BRIDGE46_IPV6 | specify the IPv4 address for service validation of AAAA Records point to the service (see #1) | empty |
- Add A record of IPv4 of the server to your DNS records (make sure you have IPv6 AAAA record too)
This project is licensed under the MIT License - see the LICENSE file for details