We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi i have problem ovpn can not authenticate can help me freeradius is work openvpn not connect to radius for authenticate AR@system:~/docker-ovpn$ docker run -it --rm -v ./configs/ovpn/client.conf:/etc/openvpn/client.conf --device /dev/net/tun:/dev/net/tun --net=docker-ovpn_backend --cap-add=NET_ADMIN 2stacks/ovpn-client client.conf Tue Apr 18 17:43:14 2023 OpenVPN 2.4.6 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jul 8 2018 Tue Apr 18 17:43:14 2023 library versions: LibreSSL 2.7.4, LZO 2.10 Enter Auth Username:testing Enter Auth Password: Tue Apr 18 17:43:18 2023 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Tue Apr 18 17:43:18 2023 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Tue Apr 18 17:43:18 2023 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Tue Apr 18 17:43:18 2023 TCP/UDP: Preserving recently used remote address: [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:18 2023 Socket Buffers: R=[212992->200000] S=[212992->200000] Tue Apr 18 17:43:18 2023 UDP link local: (not bound) Tue Apr 18 17:43:18 2023 UDP link remote: [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:18 2023 TLS: Initial packet from [AF_INET]10.0.0.3:1194, sid=4f976d33 665f4310 Tue Apr 18 17:43:18 2023 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=nopass, name=EasyRSA, [email protected] Tue Apr 18 17:43:18 2023 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=site, name=EasyRSA, [email protected] Tue Apr 18 17:43:18 2023 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES128-SHA256, 2048 bit RSA Tue Apr 18 17:43:18 2023 [site] Peer Connection Initiated with [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:19 2023 SENT CONTROL [site]: 'PUSH_REQUEST' (status=1) Tue Apr 18 17:43:19 2023 AUTH: Received control message: AUTH_FAILED Tue Apr 18 17:43:19 2023 SIGTERM[soft,auth-failure] received, process exiting
AR@system:~/docker-ovpn$ docker run -it --rm -v ./configs/ovpn/client.conf:/etc/openvpn/client.conf --device /dev/net/tun:/dev/net/tun --net=docker-ovpn_backend --cap-add=NET_ADMIN 2stacks/ovpn-client client.conf Tue Apr 18 17:43:14 2023 OpenVPN 2.4.6 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jul 8 2018 Tue Apr 18 17:43:14 2023 library versions: LibreSSL 2.7.4, LZO 2.10 Enter Auth Username:testing Enter Auth Password: Tue Apr 18 17:43:18 2023 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Tue Apr 18 17:43:18 2023 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Tue Apr 18 17:43:18 2023 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Tue Apr 18 17:43:18 2023 TCP/UDP: Preserving recently used remote address: [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:18 2023 Socket Buffers: R=[212992->200000] S=[212992->200000] Tue Apr 18 17:43:18 2023 UDP link local: (not bound) Tue Apr 18 17:43:18 2023 UDP link remote: [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:18 2023 TLS: Initial packet from [AF_INET]10.0.0.3:1194, sid=4f976d33 665f4310 Tue Apr 18 17:43:18 2023 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=nopass, name=EasyRSA, [email protected] Tue Apr 18 17:43:18 2023 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=site, name=EasyRSA, [email protected] Tue Apr 18 17:43:18 2023 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES128-SHA256, 2048 bit RSA Tue Apr 18 17:43:18 2023 [site] Peer Connection Initiated with [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:19 2023 SENT CONTROL [site]: 'PUSH_REQUEST' (status=1) Tue Apr 18 17:43:19 2023 AUTH: Received control message: AUTH_FAILED Tue Apr 18 17:43:19 2023 SIGTERM[soft,auth-failure] received, process exiting
My compose
` ovpn: image: "2stacks/docker-ovpn:latest" ports: - "443:443" - "1194:1194/udp" volumes: - "${PWD}/configs/ovpn:/etc/openvpn" environment: - RADIUS_HOST=freeradius - RADIUS_KEY=testing123 - DNS_HOST1=1.1.1.1 - DNS_HOST2=1.0.0.1 - OVPN_DEBUG=yes cap_add: - NET_ADMIN restart: always networks: - backend
freeradius: image: "2stacks/freeradius" ports: - "1812/udp" - "1813/udp" #volumes: #- "./configs/radius/users:/etc/raddb/users" environment: - DB_NAME=radius - DB_HOST=mysql - DB_USER=radius - DB_PASS=radpass - DB_PORT=3306 - RADIUS_KEY=testing123 - RAD_CLIENTS=10.0.0.0/24 - RAD_DEBUG=yes depends_on: - mysql links: - mysql restart: always networks: - backend
mysql: image: "mysql:5.7" command: mysqld ports: - "3306:3306" volumes: - "${PWD}/configs/mysql/master/data:/var/lib/mysql" - "${PWD}/configs/mysql/master/conf.d:/etc/mysql/conf.d" - "${PWD}/configs/mysql/radius.sql:/docker-entrypoint-initdb.d/radius.sql" environment: - MYSQL_ROOT_PASSWORD=radius - MYSQL_USER=radius - MYSQL_PASSWORD=radpass - MYSQL_DATABASE=radius restart: always networks: - backend
networks: backend: ipam: config: - subnet: 10.0.0.0/24 - `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi i have problem ovpn can not authenticate can help me
freeradius is work openvpn not connect to radius for authenticate
AR@system:~/docker-ovpn$ docker run -it --rm -v ./configs/ovpn/client.conf:/etc/openvpn/client.conf --device /dev/net/tun:/dev/net/tun --net=docker-ovpn_backend --cap-add=NET_ADMIN 2stacks/ovpn-client client.conf Tue Apr 18 17:43:14 2023 OpenVPN 2.4.6 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jul 8 2018 Tue Apr 18 17:43:14 2023 library versions: LibreSSL 2.7.4, LZO 2.10 Enter Auth Username:testing Enter Auth Password: Tue Apr 18 17:43:18 2023 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Tue Apr 18 17:43:18 2023 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Tue Apr 18 17:43:18 2023 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Tue Apr 18 17:43:18 2023 TCP/UDP: Preserving recently used remote address: [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:18 2023 Socket Buffers: R=[212992->200000] S=[212992->200000] Tue Apr 18 17:43:18 2023 UDP link local: (not bound) Tue Apr 18 17:43:18 2023 UDP link remote: [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:18 2023 TLS: Initial packet from [AF_INET]10.0.0.3:1194, sid=4f976d33 665f4310 Tue Apr 18 17:43:18 2023 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=nopass, name=EasyRSA, [email protected] Tue Apr 18 17:43:18 2023 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=site, name=EasyRSA, [email protected] Tue Apr 18 17:43:18 2023 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES128-SHA256, 2048 bit RSA Tue Apr 18 17:43:18 2023 [site] Peer Connection Initiated with [AF_INET]10.0.0.3:1194 Tue Apr 18 17:43:19 2023 SENT CONTROL [site]: 'PUSH_REQUEST' (status=1) Tue Apr 18 17:43:19 2023 AUTH: Received control message: AUTH_FAILED Tue Apr 18 17:43:19 2023 SIGTERM[soft,auth-failure] received, process exiting
My compose
`
ovpn:
image: "2stacks/docker-ovpn:latest"
ports:
- "443:443"
- "1194:1194/udp"
volumes:
- "${PWD}/configs/ovpn:/etc/openvpn"
environment:
- RADIUS_HOST=freeradius
- RADIUS_KEY=testing123
- DNS_HOST1=1.1.1.1
- DNS_HOST2=1.0.0.1
- OVPN_DEBUG=yes
cap_add:
- NET_ADMIN
restart: always
networks:
- backend
freeradius:
image: "2stacks/freeradius"
ports:
- "1812/udp"
- "1813/udp"
#volumes:
#- "./configs/radius/users:/etc/raddb/users"
environment:
- DB_NAME=radius
- DB_HOST=mysql
- DB_USER=radius
- DB_PASS=radpass
- DB_PORT=3306
- RADIUS_KEY=testing123
- RAD_CLIENTS=10.0.0.0/24
- RAD_DEBUG=yes
depends_on:
- mysql
links:
- mysql
restart: always
networks:
- backend
mysql:
image: "mysql:5.7"
command: mysqld
ports:
- "3306:3306"
volumes:
- "${PWD}/configs/mysql/master/data:/var/lib/mysql"
- "${PWD}/configs/mysql/master/conf.d:/etc/mysql/conf.d"
- "${PWD}/configs/mysql/radius.sql:/docker-entrypoint-initdb.d/radius.sql"
environment:
- MYSQL_ROOT_PASSWORD=radius
- MYSQL_USER=radius
- MYSQL_PASSWORD=radpass
- MYSQL_DATABASE=radius
restart: always
networks:
- backend
networks:
backend:
ipam:
config:
- subnet: 10.0.0.0/24
-
`
The text was updated successfully, but these errors were encountered: