Skip to content

Instantly share code, notes, and snippets.

View gonzopancho's full-sized avatar

Jim Thompson gonzopancho

View GitHub Profile
@gonzopancho
gonzopancho / FreeBSD 10.3 on Silicom SoNIC
Created April 28, 2016 08:16
FreeBSD 10.3 on Silicom SoNIC
http://www.silicom-usa.com/PE310G4DE488BS3_Quad_10GbE_Broadwell_DE_SoNIC_Network_Adapter_93
# dmesg
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
@gonzopancho
gonzopancho / gist:fcd45a8e9cc4d94b0f889851f75e08a3
Last active May 21, 2016 22:25
IPsec quick test from home.
Here is a live test. w520 is a ... Lenovo w520 (Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz, 24GB ram) running CentOS, plugged into the switch at home. Local router is a 4860 running 2.3.1 (at 172.21.0.1, and an external address I'm not going to mention.)
ex.te.rn.al is a 8860 sitting on the border between the external and internal networks at work. As such, it runs in parallel with the C2758 that we use for a VPN endpoint at work. It's inside address is 172.27.12.18. Flows to ex.te.rn.al (an IPv4 address) don't go over the VPN, flows to 172.27.12.18 do.
First, a traceroute:
[jim@w520 ~]$ traceroute ex.te.rn.al
traceroute to ex.te.rn.al (ex.te.rn.al), 30 hops max, 60 byte packets
1 gateway (172.21.0.1) 0.201 ms 0.146 ms 0.177 ms
2 gateway.at.grande (65.36.83.254) 1.642 ms 1.768 ms 1.667 ms
U-Boot SPL 2016.03 (May 31 2016 - 19:23:56)
Trying to boot from MMC
Card doesn't support part_switch
MMC partition switch failed
*** Warning - MMC partition switch failed, using default environment
reading u-boot.img
reading u-boot.img
root@ufw:~ # openssl speed
Doing mdc2 for 3s on 16 size blocks: 135465 mdc2's in 2.97s
Doing mdc2 for 3s on 64 size blocks: 51553 mdc2's in 2.97s
Doing mdc2 for 3s on 256 size blocks: 14771 mdc2's in 2.95s
Doing mdc2 for 3s on 1024 size blocks: 3853 mdc2's in 2.97s
Doing mdc2 for 3s on 8192 size blocks: 487 mdc2's in 2.97s
Doing md4 for 3s on 16 size blocks: 247319 md4's in 2.97s
Doing md4 for 3s on 64 size blocks: 237306 md4's in 2.96s
Doing md4 for 3s on 256 size blocks: 204236 md4's in 2.96s
Doing md4 for 3s on 1024 size blocks: 131004 md4's in 2.95s
root@ufw:~ # cat > t.c
#include <stdio.h>
main(int argc, char **argv)
{
printf("Hello, World\n");
}
root@ufw:~ # cc t.c
t.c:3:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(int argc, char **argv)
@gonzopancho
gonzopancho / First boot of pfSense on uFW
Created June 1, 2016 07:53
First boot of pfSense on uFW
U-Boot SPL 2016.03 (May 31 2016 - 22:53:46)
Trying to boot from MMC
Card doesn't support part_switch
MMC partition switch failed
*** Warning - MMC partition switch failed, using default environment
reading u-boot.img
reading u-boot.img
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-BETA2 #0 r303168: Fri Jul 22 02:23:56 UTC 2016
root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
VT(efifb): resolution 2048x1200
CPU: Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz (2592.12-MHz K8-class CPU)
Origin="GenuineIntel" Id=0x506e3 Family=0x6 Model=0x5e Stepping=3
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-BETA2 #0 r303168: Fri Jul 22 02:23:56 UTC 2016
root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
VT(efifb): resolution 2048x1200
CPU: Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz (2592.10-MHz K8-class CPU)
Origin="GenuineIntel" Id=0x506e3 Family=0x6 Model=0x5e Stepping=3
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining... 0 0 0 0 0 0 done
All buffers synced.
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #11 6c205e2b1cd(master): Fri Jan 20 12:07:11 CST 2017
jim@skull:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64
FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1)
### Keybase proof
I hereby claim:
* I am gonzopancho on github.
* I am gonzopancho (https://keybase.io/gonzopancho) on keybase.
* I have a public key whose fingerprint is 6F8E 770C 3964 895C 6FFA C222 6DF1 9582 5D37 B4CB
To claim this, I am signing this object: