Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 >

mardi 15 septembre 2015

Liens en français pour iptables et compagnie

Parfois celà ne fait pas de mal de revoir ses classiques
  1. http://olivieraj.free.fr/fr/linux/information/firewall/firewall.html
  2. http://linbox.free.fr/passerelle_simple/chapitres.php?chapitre=13

dimanche 13 septembre 2015

Haproxy 1.5.14 - Static build

  1. Commands I used to build haproxy are shown below (I added instructions for zlib. All commands are taken from https://gist.github.com/codingtony/24fab751202dff4d547c. I am not the original author of all those commands. Kudo to this author to share his knowledge)
    DIR=$PWD
    
    #Compile static version of libressl
    export STATICLIBSSL=/tmp/staticlibssl
    wget http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.2.3.tar.gz
    tar xvzf libressl-2.2.3.tar.gz 
    cd libressl-2.2.3
    ./configure --prefix=$STATICLIBSSL --enable-shared=no
    make
    make install && cd $DIR
    
    export STATICLIBPCRE=/tmp/staticlibpcre
    wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.bz2
    tar xvjf pcre-8.37.tar.bz2 
    cd pcre-8.37
    ./configure --prefix=$STATICLIBPCRE --enable-shared=no --enable-utf8 --enable-jit
    make
    make install
    cd $DIR
    
    
    export ZLIB=/tmp/staticzlib
    wget http://zlib.net/zlib-1.2.8.tar.gz
    tar xvzf zlib-1.2.8.tar.gz
    cd zlib-1.2.8
    ./configure --prefix=$ZLIB --static
    make
    make install
    cd $DIR
    
    wget http://www.haproxy.org/download/1.5/src/haproxy-1.5.14.tar.gz
    tar xvzf haproxy-1.5.14.tar.gz
    cd haproxy-1.5.14
    
    make TARGET=linux26 CPU=native ARCH=i686 USE_PCRE_JIT=1 USE_STATIC_PCRE=1 USE_OPENSSL=1 \
    PCRE_LIB=$STATICLIBPCRE/lib PCRE_INC=$STATICLIBPCRE/include \
    SSL_INC=$STATICLIBSSL/include SSL_LIB=$STATICLIBSSL/lib ADDLIB="-ldl -lrt" \
    USE_ZLIB=1 ZLIB_INC=$ZLIB/include/ ZLIB_LIB=$ZLIB/lib USE_LIBCRYPT=1
    
    strip haproxy
    
  2. To check everything is fine
    root@olivia:~/tmp_haproxy_build# ./haproxy-1.5.14/haproxy -vv
    HA-Proxy version 1.5.14 2015/07/02
    Copyright 2000-2015 Willy Tarreau 
    
    Build options :
      TARGET  = linux26
      CPU     = native
      CC      = gcc
      CFLAGS  = -m32 -march=i686 -O2 -march=native -g -fno-strict-aliasing
      OPTIONS = USE_LIBCRYPT=1 USE_ZLIB=1 USE_OPENSSL=1 USE_STATIC_PCRE=1 USE_PCRE_JIT=1
    
    Default settings :
      maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200
    
    Encrypted password support via crypt(3): yes
    Built with zlib version : 1.2.8
    Compression algorithms supported : identity, deflate, gzip
    Built with OpenSSL version : LibreSSL 2.2.3
    Running on OpenSSL version : LibreSSL 2.2.3
    OpenSSL library supports TLS extensions : yes
    OpenSSL library supports SNI : yes
    OpenSSL library supports prefer-server-ciphers : yes
    Built with PCRE version : 8.37 2015-04-28
    PCRE library supports JIT : yes
    
    Available polling systems :
          epoll : pref=300,  test result OK
           poll : pref=200,  test result OK
         select : pref=150,  test result OK
    Total: 3 (3 usable), will use epoll.
    

Haproxy 1.5.14 - PDF Documentation (Updated)

This is based on the work done by Lang Pavel. His work is available at https://github.com/langpavel/haproxy-doc. His PDF document for 1.5 was a little bit outdated. I took decision to regenate this document for HAProxy 1.5.14.

Document is available at http://www.davidgis.fr/documentation/HAProxy/1.5.14/HAProxy-1.5.14_configuration.pdf

samedi 12 septembre 2015

Lien pour MySQL

http://www.tux-planet.fr/activer-le-mode-read-only-sur-un-serveur-mysql/