Category: Uncategorized
-
IPsec based VPN using FreeBSD
Since I wasn’t really able to find information how to set this up on one place here is short recipe. Prerequisites: After this some introduction to entire problem comes handy. Most important thing to understand here is how IPsec actually works within operating system – you can get some help here from setkey (8) with…
-
How to create pdfs from man pages
man -t page_name | ps2pdf – page_name.pdf Sometimes this pdf actually looses some formatting (I don’t have any idea why), so it might make more sense to create plain ps fileman -t page_name > page_name.ps Note: You might want to change page size in /usr/share/groff_font/devps/DESC (by default it is set to letter there)
-
How to make tsclient use freerdp instead of rdesktop in freebsd
First of all why anyone would do that? Because rdesktop doesn’t support newer encryption schemes supported by remote desktop while freerdp does. When connecting to new server xfreerdp will ask you whether you trust offered public key (similar to ssh), so it is good idea to run it from console that time, also if it…
-
How to do simple test for BEAST and CRIME web server vulnerability?
Use this tool.
-
How to prevent annoying crackers from brute force login attacks
Add following to your /etc/pf.conf# if re0 is your card$ext_if=”re0″# this goes in the toptable <bad_guys> persist…block in quick on $ext_if from <bad_guys> to any Add following to your /etc/syslog.confauth.info;authpriv.info |/root/auth_checker.pl(assuming that auth_checker.pl is in /root directory) If you want to remove ip from table bad_guys (in case you somehow lock yourself), add this to…
-
How to gracefully restart lighttpd
Gracefully here meaning without loosing any request which is in processing (request which are not accepted yet might still be rejected) Send SIGINT to lighttpd and then start new instance of it – the one received INT will stop listening for new connections but it will finish all connections it already accepted and exit after…