Forwarding identd server for pfsense/freebsd?
-
Hi, I'm looking for an identd daemon that will forward ident requests from the WAN to the LAN machine that requested them. I had been using oidentd on a Linux router for this, and I found oidentd for FreeBSD, but it only supports ipf. Does such a thing exist for pfsense/FreeBSD? My searches have not turned up anything.
-
AFAIK, nothing exists for that currently.
Once upon a time I wrote my own in perl that accepted the request, looked up the NAT state and forwarded it in and proxied that way, but that was many many years ago, and also for ipfilter. Can't find the source at the moment though.
-
OK, so the base program I found and then modified. It used lsof and ipnat but it could all be done with pfctl -ss output as far as I can see.
Bear in mind this is crufty 14-year-old code that probably is horribly bad in many ways.
https://gist.github.com/jim-p/78b7637ef5ce8c7b3219