Skip to content

Instantly share code, notes, and snippets.

View kaworu's full-sized avatar

Alexandre Perrin kaworu

View GitHub Profile
--- main.c
+++ main.c
@@ -969,11 +969,11 @@
#define FMT_DO_DIR_BODY "<body>\n\
<h2>Index of %s</h2>\n\
<div class='list'>\n\
<table summary='Directory Listing' cellpadding='0' cellspacing='0'>\n\
-<thead><tr><th class='n'>Name</th><th class='m'>Last Modified</th><th class='s'>Size</th><th class='t'>Type</th></tr></thead>\n\
+<thead><tr><th class='t'>Type</th><th class='s'>Size</th><th class='m'>Last Modified</th><th class='n'>Name</th></tr></thead>\n\
# Fail2Ban jail specifications file
#
# Comments: use '#' for comment lines and ';' for inline comments
#
# Changes: in most of the cases you should not modify this
# file, but provide customizations in jail.local file, e.g.:
#
# [DEFAULT]
# bantime = 3600
#
loopback = lo0
ext_if = re0
ext_ipv4 = 91.121.10.176
ext_ipv6 = 2001:41d0:1:5db0::1
ext_ip = "{" $ext_ipv4 $ext_ipv6 "}"
table <pf_ssh_abuse> persist
table <pf_http_abuse> persist
table <fail2ban> persist
table <fail2ban_ssh> persist
@@ -920,12 +930,12 @@ end:
sk_X509_pop_free(verify_other, X509_free);
sk_CONF_VALUE_pop_free(headers, X509V3_conf_free);
- if (use_ssl != -1)
- {
- OPENSSL_free(host);
- OPENSSL_free(port);
- OPENSSL_free(path);
- }
diff --git a/share/initrd/etc/Makefile b/share/initrd/etc/Makefile
index c231ac5..7ee33a3 100644
--- a/share/initrd/etc/Makefile
+++ b/share/initrd/etc/Makefile
@@ -17,7 +17,7 @@ FILESMODE_${file}=555
#
ETC_FILES= ${.CURDIR}/../../../etc/protocols \
${.CURDIR}/../../../etc/regdomain.xml \
- ${.CURDIR}/wpa_supplicant.conf \
+ ${.CURDIR}/../../../etc/wpa_supplicant.conf \
From 4a9c5206069942042271e8ac4bd9fb05f95874f7 Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <[email protected]>
Date: Wed, 28 May 2014 10:21:17 +0200
Subject: [PATCH] wpa_cli: Makefile changes to compile without WARNS=0
---
usr.sbin/802_11/wpa_cli/Makefile | 3 ---
1 file changed, 3 deletions(-)
diff --git a/usr.sbin/802_11/wpa_cli/Makefile b/usr.sbin/802_11/wpa_cli/Makefile
diff --git a/usr.sbin/802_11/hostapd/hostapd.8 b/usr.sbin/802_11/hostapd/hostapd.8
index e0441cb..ed7fb0e 100644
--- a/usr.sbin/802_11/hostapd/hostapd.8
+++ b/usr.sbin/802_11/hostapd/hostapd.8
@@ -22,9 +22,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD: head/usr.sbin/wpa/hostapd/hostapd.8 195644 2009-07-12 19:58:52Z sam $
+.\" $FreeBSD: head/usr.sbin/wpa/hostapd/hostapd.8 238606 2012-07-18 23:32:12Z gjb $
--- share/initrd/etc/wpa_supplicant.conf 2014-05-23 17:00:58.622532000 +0200
+++ /root/wpa_supplicant-2.1/wpa_supplicant/wpa_supplicant.conf 2014-02-04 12:23:35.000000000 +0100
@@ -1,20 +1,1273 @@
-# Sample wpa_supplicant.conf
+##### Example wpa_supplicant configuration file ###############################
#
+# This file describes configuration file format and lists all available option.
+# Please also take a look at simpler configuration examples in 'examples'
+# subdirectory.
+#
===> ENVOI
array(1) {
[0] =>
array(3) {
[0] =>
string(10) "0788474203"
[1] =>
int(1)
[2] =>
string(22) "b39f6-0004-02a4-18174a"
@kaworu
kaworu / jail.local
Created May 14, 2014 13:42
partial fail2ban config
[roundcube]
enabled = true
filter = roundcube
action = sendmail-whois[name=roundcube]
pf[tablename=fail2ban_mail]
pf[tablename=fail2ban_www]
logpath = /var/log/maillog
maxretry = 4