44 articles Current

nodejs, express, pug, nodemon, net-ping installation

# required to start with nodejs (LTS Version: 8.9.3 (includes npm 5.5.1)) # get and install the latest node LTS (12/2017) from https://nodejs.org/en/download/ https://nodejs.org/dist/v8.9.3/node-v8.9.3-x86.msi https://nodejs.org/dist/v8.9.3/node-v8.9.3-x64.msi # check node and npm versions with node -v (results in v8.9.3) npm -v (results in v5.5.1) # install globally (administrator privileges required) npm i -g –production windows-build-tools –no-optional npm…

npm cannot find C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/V110/Microsoft.Cpp.Default.props W7x64 VS2015

on Windows 7 x64 using npm@3.10.9 and node@v6.11.2 having Visual Studio 2015 Community Edition I ran into the error that npm cound not find C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/V110/Microsoft.Cpp.Default.props and hence couldn’t build. resolved this by setting the VC target path with SET VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140

MikroTik IPSEC behind FritzBox Router

Configure the Fritzbox to passthrough IPSEC ESP and UDP ports 500(ISAKMP) and 4500(NAT-T) 1. Configure the FritzBox that it allows incoming and outgoing connections for the following ports and IP protocols to your MikroTik Box/CHR : ESP (“Encapsulated Security Payload”; IP protocol number 50 (no ports here!)) in most routers this is = “IPsec Passthrough”…

MikroTik IPSEC VPN Quick setup A, B & C

A) Policy /ip ipsec policy add action=encrypt disable=no dst-address=10.0.10.0/8 dst-port=any group=default ipsec-protocol=esp level=required proposal=fritzbox sa-dst-address=1.2.3.4 sa-src-address=4.3.2.1 src-address=10.0.20.0/8 src-port=any template=yes tunnel=yes B) Peer /ip ipsec peer add address=1.2.3.4 auth-method=pre-shared-key dh-group=modp1024 disabled=no enc-algorithm=aes-256 exchange-mode=aggressive generate-policy=no hash-algorithm=sha1 port=500 proposal-check=obey secret=”[supersecretkey]” send-initial-contact=no C) Proposal /ip ipsec proposal add auth-algorithms=sha1 disabled=no enc-algorithms=3des lifetime=30m name=”fritzbox” pfs-group=modp1024

Mikrotik, SSH Key with PuTTY – Unable to use key file “id_rsa” (OpenSSH SSH-2 private key (old PEM format))

Unable to use key file “id_rsa” (OpenSSH SSH-2 private key (old PEM format)) Background information , taken from the PuTTYgen Help section :: 8.2.12 Dealing with private keys in other formats Most SSH-1 clients use a standard format for storing private keys on disk. PuTTY uses this format as well; so if you have generated…