Skip to content

Instantly share code, notes, and snippets.

View lkmhaqer's full-sized avatar

Charles van Niman lkmhaqer

View GitHub Profile
@lkmhaqer
lkmhaqer / mc-build.sh
Created May 4, 2017 02:02
shell script to install docker and start a minecraft FTB server on ubuntu 16.04
#!/bin/sh
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
sudo apt-get install -y docker-engine
sudo usermod -aG docker $(whoami)
mkdir mc-data
IP address for tun-Delta: 172.22.150.121
IP address for tun-NurticVibe-: 172.22.150.121
IP address for tun-toBee-fra: 172.22.150.121
IP address for tun-tcp-int: 172.27.69.1
IP address for tun-udp-full: 172.27.69.129
IP address for tun-Alistair: 172.22.150.121
IP address for tun-node32: 172.27.0.14
IP address for tun-node43-int: 172.27.0.1
IP address for tun-nazco: 172.22.150.121
IP address for tun-twink0r-mit: 172.22.150.121
include "/etc/rndc.key";
controls {
inet 127.0.0.1 port 953 allow {127.0.0.1;} keys {"rndc-key";};
};
lwres {
listen-on {127.0.0.1;};
view default;
};
! pmacctd configuration
!
!
!
daemonize: true
pidfile: /var/run/pmacctd.pid
syslog: daemon
geoip_ipv4_file: /usr/local/share/GeoIP/GeoIP.dat
!
!aggregate: src_host_country, dst_host_country, flows,src_host,dst_host,src_port,dest_port,proto
ge-0/0/2 {
description "WLAN tagged port for AP";
mtu 1518;
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members [ wlan lan dn42-guest-wifi ];
}
native-vlan-id 102;
node69.slothlogistics.net# sh ip bg sum
BGP router identifier 172.22.150.120, local AS number 4242420031
RIB entries 1316, using 93 KiB of memory
Peers 27, using 67 KiB of memory
Peer groups 1, using 16 bytes of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.20.4.193 4 4242421236 0 0 0 0 0 never Connect
172.20.11.1 4 4242421339 3659 899 0 0 0 01:35:25 501
172.20.14.217 4 4242422700 3461 1498 0 0 0 01:35:17 506
$ traceroute node28.slothlogistics.net
traceroute to node28.slothlogistics.net (104.238.172.137), 30 hops max, 60 byte packets
1 xe-0-1-0-34.happy-trails-Charles.r07.dllstx09.us.bb.gin.ntt.net (129.250.15.37) 0.652 ms 0.715 ms 0.736 ms
2 ae-5.happy-trails-Charles.r22.dllstx09.us.bb.gin.ntt.net (129.250.3.40) 0.468 ms 0.481 ms 0.476 ms
3 ae-1.happy-trails-Charles.r22.asbnva02.us.bb.gin.ntt.net (129.250.5.13) 40.276 ms 41.559 ms 41.558 ms
4 ae-0.happy-trails-Charles.r23.asbnva02.us.bb.gin.ntt.net (129.250.3.85) 96.180 ms 96.184 ms 96.842 ms
5 ae-2.r25.amstnl02.nl.bb.gin.ntt.net (129.250.6.163) 120.259 ms 113.391 ms 121.094 ms
6 ae-1.r22.amstnl02.nl.bb.gin.ntt.net (129.250.4.63) 114.290 ms 120.204 ms 127.117 ms
7 ae-5.r23.londen03.uk.bb.gin.ntt.net (129.250.5.197) 119.678 ms 125.630 ms 127.807 ms
8 ae-7.r00.londen10.uk.bb.gin.ntt.net (129.250.6.55) 134.039 ms 135.028 ms 127.297 ms
# ./quagga-log-longas.py
Origin 30873 Count 1 | AS 2914 15412 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873
Origin 30873 Count 2 | AS 2914 15412 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873
Origin 264570 Count 1 | AS 2914 12956 10429 26592 26592 26592 26592 26592 26592 262310 262310 262310 262310 262310 262310 262310 264570
Origin 647 Count 1 | AS 2914 209 721 721 721 721 721 721 27066 27064 27064 665 665 647 647 647 647
Origin 30873 Count 3 | AS 2914 15412 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873 30873
Origin 647 Count 2 | AS 2914 209 721 721 721 721 721 721 27065 27064 27066 665 665 647 647 647 647
Origin 264185 Count 1 | AS 2914 2914 2914 28303 264185 264185 264185 264185 264185 264185 264185 264185 264185 264185 264185 264185 264185 264185 264185
Origin 5953
r20.taiptw01.tw.bb-re0> traceroute node96.slothlogistics.net
traceroute6 to node96.slothlogistics.net (2604:180:1:45::2689) from 2001:218:0:1000::3c, 64 hops max, 12 byte packets
1 ae-2.r00.taiptw01.tw.bb.gin.ntt.net (2001:218:0:2000::26) 0.393 ms 2.278 ms 1.622 ms
2 as-2.r22.tokyjp01.jp.bb.gin.ntt.net (2001:218:0:2000::2e9) 31.668 ms 31.710 ms 34.067 ms
3 ae-8.r24.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::1ce) 38.181 ms ae-8.r25.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::1d2) 48.096 ms ae-8.r24.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::1ce) 31.419 ms
4 ae-13.r30.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::29e) 33.885 ms ae-11.r31.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::36e) 34.292 ms ae-11.r30.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::36a) 33.813 ms
5 ae-3.r20.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::332) 33.899 ms 31.568 ms 31.130 ms
6 ae-2.r20.sttlwa01.us.bb.gin.ntt.net (2001:218:0:2000::2c9) 140.124 ms 124.619 ms 126.359 ms
7 ae-1.r04.sttlwa01.us.bb.gin
template bgp dnpeers {
local as OWNAS;
# metric is the number of hops between us and the peer
path metric 1;
# this lines allows debugging filter rules
# filtered routes can be looked up in birdc using the "show route filtered" command
import keep filtered;
import filter {
# accept every subnet, except our own advertised subnet
# filtering is important, because some guys try to advertise routes like 0.0.0.0