...
Python module / script_launcher.py script
Code Block |
---|
cd /etc/freeradius/3.0/
ln -s mods-available/python mods-enabled/ |
Put the following in it:
Code Block | ||
---|---|---|
| ||
#
# Make sure the PYTHONPATH environmental variable contains the
# directory(s) for the modules listed below.
#
# Uncomment any func_* which are included in your module. If
# rlm_python is called for a section which does not have
# a function defined, it will return NOOP.
#
python {
module = script_launcher # @#$dy
python_path = ${modconfdir}/${.:name}:/usr/lib/python2.7 # @#$dy
mod_post_auth = ${.module} # @#$dy
func_post_auth = post_auth # @#$dy
}
|
Modify /etc/freeradius/3.0/sites-enabled/inner-tunnel:
Code Block | ||
---|---|---|
| ||
...
# Add this line just after 'sql' in the 'post-auth' section
python
... |
"@@@" copy outer to inner tunnel
Place the script_launcher.py script at /etc/freeradius/3.0/mods-config/python/script_launcher.py
Shorewall
sudo
packages: sudo
...