docker
docker copied to clipboard
Making a network gateway with a transparent proxy in v2ray docker image
I tried to implement the transparent proxy in the docker image without breaking the standard routine.
The image's default behavior is not affected by this update. And if the user wants to use a docker container as a network gateway should activate it by setting an environment variable (TPROXY=true).
I will use this image inside a Mikrotik router (RouterOS) and I'll test it carefully.
Because of the lack of kernel modules, we can't use iptables in the RouterOS container. But we can use the gateway mode feature in other Linux distributions without any problem.