Skip to content

A pppd plugin using Redis for authentication database.

Notifications You must be signed in to change notification settings

Roll8ack/Redis-pppd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

#Redis-pppd

Redis-pppd is a pretty simple pppd plugin using Redis as authentication database. It was designed to replace my vulnerable file-based PPTP user info database. Rather than a full-functionality plugin, you'd better take it as a example of how to write plugins for pppd.

##Compile & Install

Before compiling, you need to modify the following line:

#define COMMAND "GET com.example.pppd."

It refers to the prefix of your pppd user information in Redis.

To compile it, you need to have hiredis and pppd installed.

gcc -c -O redis-pppd.c -fPIC
gcc -shared -o redis-pppd.so redis-pppd.o -lhiredis

Move it to /usr/lib/pppd// :

mv redis-pppd.so /usr/lib/pppd/2.4.5/redis-pppd.so

Add the following line to your pppd config file:

plugin redis-pppd.so

Enjoy it!

##Author & Licence Redis-pppd was written by Minsheng Liu (notcome at me dot com) and is released under the BSD license.

About

A pppd plugin using Redis for authentication database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%