{"action":"created","issue":{"url":"https://api.github.com/repos/vimagick/dockerfiles/issues/33","repository_url":"https://api.github.com/repos/vimagick/dockerfiles","labels_url":"https://api.github.com/repos/vimagick/dockerfiles/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/vimagick/dockerfiles/issues/33/comments","events_url":"https://api.github.com/repos/vimagick/dockerfiles/issues/33/events","html_url":"https://github.com/vimagick/dockerfiles/issues/33","id":196129517,"number":33,"title":"Freeradius for VPN","user":{"login":"set321go","id":683559,"avatar_url":"https://avatars.githubusercontent.com/u/683559?v=3","gravatar_id":"","url":"https://api.github.com/users/set321go","html_url":"https://github.com/set321go","followers_url":"https://api.github.com/users/set321go/followers","following_url":"https://api.github.com/users/set321go/following{/other_user}","gists_url":"https://api.github.com/users/set321go/gists{/gist_id}","starred_url":"https://api.github.com/users/set321go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/set321go/subscriptions","organizations_url":"https://api.github.com/users/set321go/orgs","repos_url":"https://api.github.com/users/set321go/repos","events_url":"https://api.github.com/users/set321go/events{/privacy}","received_events_url":"https://api.github.com/users/set321go/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T18:52:38Z","updated_at":"2016-12-17T13:56:37Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm trying to setup freeradius as the authentication server for my router but it's not working.\r\n\r\nI customized your docker image to replace the DB host and password \r\nI've also customized your docker-compose to put freeradius into its own network\r\n\r\n```\r\nversion: '2'\r\n\r\nservices:\r\n  freeradius:\r\n    image: vimagick/freeradius\r\n    ports:\r\n      - \"1812:1812/udp\"\r\n      - \"1813:1813/udp\"\r\n    restart: always\r\n    networks:\r\n     freeradius:\r\n       ipv4_address: 172.30.0.100\r\n\r\n  mysql:\r\n    image: mysql\r\n    volumes:\r\n      - /var/freeradius/mysql:/docker-entrypoint-initdb.d\r\n    environment:\r\n      - MYSQL_ROOT_PASSWORD=root\r\n    restart: always\r\n    networks:\r\n     freeradius:\r\n       ipv4_address: 172.30.0.101\r\n\r\nnetworks:\r\n  freeradius:\r\n    driver: bridge\r\n    ipam:\r\n      config:\r\n      - subnet: 172.30.0.0/24\r\n```\r\n\r\nI ran through the checks for the DB and ensured my data matches. When I  try and connect from a client using the connection info i see this on the radius server:\r\n```\r\nfreeradius_1  | Fri Dec 16 18:39:12 2016 : Info: rlm_sql (sql): Opening additional connection (8), 1 of 32 pending slots used\r\nfreeradius_1  | Fri Dec 16 18:39:12 2016 : Info: rlm_sql (sql): Need 2 more connections to reach 10 spares\r\n```\r\n\r\nAnd on the router logs i get \r\n```\r\nDec 16 18:49:45\tubnt pptpd[28570]: CTRL: CTRL read failed\r\nDec 16 18:49:45\tubnt pptpd[28570]: CTRL: couldn't read packet header (exit)\r\nDec 16 18:49:45\tubnt pptpd[28570]: CTRL: EOF or bad error reading ctrl packet length.\r\nDec 16 18:49:45\tubnt pppd[28571]: Connection terminated: no multilink.\r\nDec 16 18:49:45\tubnt pppd[28571]: Peer user failed CHAP authentication\r\nDec 16 18:49:45\tubnt pppd[28571]: rc_check_reply: received invalid reply digest from RADIUS server\r\nDec 16 18:49:44\tubnt pppd[28571]: Connect: ppp0 <--> /dev/pts/0\r\n```\r\n\r\nAs you might have noticed i'm pretty clueless when it comes to radius!!"},"comment":{"url":"https://api.github.com/repos/vimagick/dockerfiles/issues/comments/267764251","html_url":"https://github.com/vimagick/dockerfiles/issues/33#issuecomment-267764251","issue_url":"https://api.github.com/repos/vimagick/dockerfiles/issues/33","id":267764251,"user":{"login":"vimagick","id":6779585,"avatar_url":"https://avatars.githubusercontent.com/u/6779585?v=3","gravatar_id":"","url":"https://api.github.com/users/vimagick","html_url":"https://github.com/vimagick","followers_url":"https://api.github.com/users/vimagick/followers","following_url":"https://api.github.com/users/vimagick/following{/other_user}","gists_url":"https://api.github.com/users/vimagick/gists{/gist_id}","starred_url":"https://api.github.com/users/vimagick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimagick/subscriptions","organizations_url":"https://api.github.com/users/vimagick/orgs","repos_url":"https://api.github.com/users/vimagick/repos","events_url":"https://api.github.com/users/vimagick/events{/privacy}","received_events_url":"https://api.github.com/users/vimagick/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T13:56:37Z","updated_at":"2016-12-17T13:56:37Z","body":"Radius is a complex software. I spent some time on it several months ago. I still cannot get it right.\r\nI'll study it when I have time."}}
{"actor":{"display_login":"vimagick"}}