VPN-ish mode
Starting with NoRouter v0.5.0, NoRouter can be also used as a HTTP/SOCKS proxy that draws traffics into a specific host.
This mode can be used like a virtual VPN.
Virtual VPN connection into Docker networks
This example shows steps to use NoRouter for creating an HTTP proxy that works like a VPN router
that connects clients into docker network create
networks.
This technique also works with remote Docker, rootless Docker, Docker for Mac, and even with Podman.
Read docker
as podman
for the usage with Podman.
First, create a Docker network named “foo”, and create an nginx container named “nginx” there:
Then, create a “bastion” container in the same network, and install NoRouter into it:
Launch norouter <FILE>
with the following YAML:
The “nginx” container can be connected from the host as follows:
If you are using Podman, try curl http://nginx.dns.podman
rather than curl http://nginx
.
Virtual VPN connection into Kubernetes networks
The Docker example can be also applied to Kubernetes clusters, just by replacing docker exec
with kubectl exec
.
Aggregate VPCs of AWS, Azure, and GCP
The following example provides an HTTP proxy that virtually aggregates VPCs of AWS, Azure, and GCP:
The localhost can access all remote hosts in these networks:
To allow accessing Azure and GCP networks from AWS hosts, set .http.listen
of aws_bastion
to XXX.XXX.XXX.XXX:18080
, where XXX.XXX.XXX.XXX
is a private IP of the AWS VPC.
Never use 0.0.0.0:18080
unless you have an appropriate firewall config: