Commit 5f47cf70 authored by nanahira's avatar nanahira

ocserv-single

parent a781a2fe
#!/bin/bash
echo -e "$PASSWORD" | ocpasswd -c /etc/ocserv/ocpasswd "$USERNAME"
if [[ -n "$MASQ_INTERFACE" ]]; then
"$IPTABLES_EXEC" -t nat -A POSTROUTING -o "$MASQ_INTERFACE" -j MASQUERADE
fi
"$@"
......@@ -7,5 +7,12 @@ services:
restart: always
volumes:
- ./templates/ocserv.conf:/etc/ocserv/ocserv.conf:ro
- {{certs_path}}:/etc/ssl/railgun/certs:ro
- '{{certs_path}}:/etc/ssl/railgun/certs:ro'
- ./data/dhparam.pem:/etc/ssl/railgun/dhparam.pem:ro
- ./data/entrypoint.sh:/entrypoint.sh:ro
environment:
IPTABLES_EXEC: '{{iptables_exec}}'
MASQ_INTERFACE: '{{masq_interface}}'
USERNAME: '{{username}}'
PASSWORD: '{{password}}'
entrypoint: /entrypoint.sh
{% for user in users %}
{{ }}
{% endfor %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment