Macvlan can be attractive because it is bridgeless.
ip netns add ns1
ip netns add ns2
| #!/bin/bash | |
| # Author : Joost van der Laan | |
| # | |
| sudo apt update | |
| sudo apt install wget unzip | |
| sudo apt install curl | |
| sudo apt install htop |
| docker network disconnect "${PWD##*/}_shared" roach-4 | |
| docker network disconnect "${PWD##*/}_shared" roach-5 |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int addi(int a, int b) { | |
| return a + b; | |
| } | |
| char *adds(char *a, char *b) { | |
| char *res = malloc(strlen(a) + strlen(b) + 1); |
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.
| package main | |
| import ( | |
| "crypto/rand" | |
| "fmt" | |
| "time" | |
| ) | |
| const ( | |
| keysize = 35 // bytes |
| package memoize | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| // fptr is a pointer to a function variable which will receive a | |
| // memoized wrapper around function impl. Impl must have 1 or more | |
| // arguments, all of which must be usable as map keys; and it must |
| application: you-app-name-here | |
| version: 1 | |
| runtime: python | |
| api_version: 1 | |
| default_expiration: "30d" | |
| handlers: | |
| - url: /(.*\.(appcache|manifest)) | |
| mime_type: text/cache-manifest |