Skip to content

Instantly share code, notes, and snippets.

View opoplawski's full-sized avatar

Orion Poplawski opoplawski

  • NWRA
  • Boulder, CO
View GitHub Profile
@opoplawski
opoplawski / createmodule.py
Created August 29, 2013 21:22
Python script to generate environment module files from environment init scripts
#!/usr/bin/python
#
# createmodule.py - Takes the name of a environment init script and
# produces a modulefile that duplicates the changes made by the init script
#
# Copyright (C) 2012 by Orion E. Poplawski <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
@opoplawski
opoplawski / gist:da2faf8206d55d7b7a473ccf2ed2f23b
Created December 12, 2024 22:50
pfSense RADIUS authentication failing (timed out) and dumping core
We have three offices with nearly identical pfSense configurations. We have
VPN servers for clients to connect to and a local RADIUS server to provide
authentication for them. On one of our pfSense boxes, it fails to
authenticate using the local RADIUS server. It sends requests and
access-accept messages are returned. However, the php-fpm process appears to
ignore the responses and then crashes. Here is some truss output:
bind(9,{ AF_INET 0.0.0.0:0 },16) = 0 (0x0)
fcntl(9,F_GETFL,) = 2 (0x2)
fcntl(9,F_SETFL,O_RDWR|O_NONBLOCK) = 0 (0x0)