1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.
/* | |
* Generic hashmap manipulation functions | |
* SEE: http://elliottback.com/wp/hashmap-implementation-in-c/ | |
*/ | |
#ifndef __HASHMAP_H__ | |
#define __HASHMAP_H__ | |
#define MAP_MISSING -3 /* No such element */ | |
#define MAP_FULL -2 /* Hashmap is full */ |
<?php | |
/** | |
* Catch php output buffering data over jQuery AJAX | |
* | |
* @author: Sohel Rana ([email protected]) | |
* @author url: https://blog.sohelrana.me | |
* @link: https://blog.sohelrana.me/catch-php-output-buffering-data-jquery-ajax/ | |
* @licence MIT | |
*/ |
package main | |
import ( | |
"crypto/tls" | |
"encoding/json" | |
"fmt" | |
"log" | |
"net" | |
"net/http" | |
) |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/tls" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"errors" | |
"log" |
#!/bin/bash | |
# This script will help you setup Docker for TLS authentication. | |
# Run it passing in the arguement for the FQDN of your docker server | |
# | |
# For example: | |
# ./create-docker-tls.sh myhost.docker.com | |
# | |
# The script will also create a profile.d (if it exists) entry | |
# which configures your docker client to use TLS | |
# |
#!/bin/bash -e | |
function run-vg-cmd() { | |
pushd $1 | |
eval $2 | |
popd | |
} | |
function usage() { | |
echo "Usage: $0 container from-vagrant-dir to-vagrant-dir" |
config setup | |
charondebug="ike 2, knl 2, cfg 2, net 2, esp 2, dmn 2, mgr 2" | |
conn %default | |
# keyexchange=ikev2 | |
conn mikrotik-1 | |
# Try connect on daemon start | |
auto=start |
1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.
This example shows vxlan nat traversal, using UDP hole punching.
+---------------+
| (node5) vxlan |
+---------------+
| uplink
+--------------------+
| (node4) masquerade |
+--------------------+