kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.62k stars 2.37k forks source link

How to deny outgoing traffic? #642

Open MartinTerp opened 3 years ago

MartinTerp commented 3 years ago

Hi

This is maybe not so much related to this project, than maybe iptables/openvpn, but since I use this image, I thought I would give it a go here.

I use this openvpn server, as a form of reverse proxy. My clients has a webserver running, and when they connect to the vpn server, I than then access the webserver on the client via the IP giving by openvpn server. All that is good, it works fine.

What im hoping to do, is denying clients from accessing the internet via this tunnel, but only allow traffic TO the client, and the response back, I have been trying to figure it out via iptables but no luck.

Ideas on how this can be done?

Thanks in advance.