Some networks require that every connection from one host has a different ident response. psyBNC can work with oidentd to spoof the ident response. It would be nice if psyBNC would have a USE flag oidentd which checks if oidentd is installed and define OIDENTD if oidentd is found. It's true that "CFLAGS="-DOIDENTD" emerge psybnc" does the same, but embedding the relation between oidentd and psybnc in the portage system would be a nice enhancement. Reproducible: Always Steps to Reproduce:
Created attachment 114856 [details] suggested oidentd.conf to allow ident spoofing for psybnc user In order for this to work, two other things have to be changed as well: 1) -e HOME="${PSYBNC_HOME}" has to be added to the start-stop-daemon line in the init.d script, so startups from an interactive shell will pass the correct $HOME environment variable. This is needed for psybnc to find the location to put the .ispoof and .oidentd.conf files, which help spoofing. 2) Lines have to be added which instruct the user to add or adapt the /etc/oidentd.conf file so it contains the information from the attachment
Thank you! This works great for me :) We should really include this.
Created attachment 165749 [details, diff] Add oidentd useflag This patch add the CFLAG="-DOIDENTD" if you set "oidentd" as useflag.
Comment on attachment 165749 [details, diff] Add oidentd useflag This Patch did not check whether oidentd is installed or not. also it does not patch init-script. maybe theres a new patch later...
Created attachment 166155 [details, diff] Add oidentd useflag (checking dependencies)
Created attachment 166157 [details] example oidentd.conf, will be installed with useflag oidentd
Created attachment 166160 [details, diff] oidentd patch for config.h - did not need CFLAG
Created attachment 166161 [details] new init-script, will be installed with useflag oidentd
(In reply to comment #0) > It's true that "CFLAGS="-DOIDENTD" emerge psybnc" does the same, but embedding > the relation between oidentd and psybnc in the portage system would be a nice > enhancement. You also could use #define OIDENTD in config.h file in psybnc sourcecode as used in "psybnc-2.3.2.7-oidentd.patch". (In reply to comment #1) > 1) -e HOME="${PSYBNC_HOME}" has to be added to the start-stop-daemon line in > the init.d script, so startups from an interactive shell will pass the correct > $HOME environment variable. This is needed for psybnc to find the location to > put the .ispoof and .oidentd.conf files, which help spoofing. added second init-script which will be installed if USE="oidentd". > 2) Lines have to be added which instruct the user to add or adapt the > /etc/oidentd.conf file so it contains the information from the attachment Some lines will be shown on install and an example file will be installed. Hope you enjoy and there are no bugs inside ;) Works fine on AMD64 here.
Has been added to 2.3.2.9 which just hit the tree. Please test and report back any bugs :)