K
K
krll-k2016-11-26 14:10:31
Asterisk
krll-k, 2016-11-26 14:10:31

How to wrap all traffic in VPN using Docker?

I have a running docker container:

[email protected]:~# docker ps                                                                                                                             
CONTAINER ID        IMAGE                     COMMAND             CREATED             STATUS              PORTS               NAMES                     
8b9a7444418e        voipnovatos/asterisk-13   "/root/config.sh"   9 hours ago         Up 9 hours                              asterisk
Launched it with this command:
[email protected]:~# docker run --name=asterisk -v /root/asterisk:/etc/asterisk -d -t --net=host voipnovatos/asterisk-13
Now, apparently, I can run another container on which there will be a separate openvpn server. How?
I haven't started vpn yet. My asterisk is being attacked, fail2ban can’t cope, and I don’t want to watch tcpdump and manually add rules to all iptables. I decided to hide asterisk behind vpn. Of course, I could set up vpn on the host itself, but I thought, because it can probably be made into a separate container

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mureevms, 2016-11-28
@mureevms

I dashed off in the evening, here is the link , there is also a brief instruction in the readme. If necessary, I will describe in Russian, but not today.

K
krll-k, 2016-11-28
@krll-k

Use docker compose!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question