OpenBSD setup
OpenBSD setup
openbsd - video info links
https://www.openbsd.org/
https://d3suu.neocities.org/freebsd_openvpn/index.html
http://www.openbsdsupport.org/openvpn-on-openbsd.html
https://www.openbsdhandbook.com/installation/
https://openbsdrouterguide.net/
youtu.be/7qnl74W0i04
youtu.be/hUGUk9x2c7E
################################################
ifconfig em0 192.168.xx.xx
route add default 192.168.xx.xx
route -n show
echo "nameserver 8.8.8.8" > /etc/resolv.cfg
################################################
IP 192.168.1.162, port 9999 in lan
########################################################
Openvpn config generation
server_config
#########################################################
pkg_add openvpn
pkg_add easy-rsa
mkdir /etc/openvpn
mkdir /etc/openvpn/server
cp -R /usr/local/share/easy-rsa /etc/openvpn/server/
cd /etc/openvpn/server/easy-rsa/
./easyrsa init-pki
./easyrsa --batch build-ca nopass
./easyrsa build-server-full server nopass
./easyrsa --batch=1 gen-dh dh.pem
./easyrsa build-client-full "d3suu" nopass
./easyrsa gen-crl
cp pki/ca.crt pki/private/ca.key pki/issued/server.crt pki/private/server.key pki/crl.pem pki/dh.pem /etc/openvpn/
chown nobody:nobody /etc/openvpn crl.pem
chmod o+x /etc/openvpn
openvpn --genkey secret /etc/openvpn/tc.key
cat >/etc/openvpn/server.conf <<EOF
local 192.168.x.x
port xxxx
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.7.0.0 255.255.255.0
keepalive 10 120
data-ciphers-fallback 'AES-256-CBC'
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
explicit-exit-notify
EOF
#######################################################################
openvpn start
/usr/local/sbin/openvpn --daemon --config /etc/openvpn/server.conf
#######################################################################
==============================================================================
mate isntall
==============================================================================
usermod -G wheel xxx
usermod -G staff xxx
usermod -G operator xxx
pkg_add nano
nano /etc/doas.conf
permit persist keepenv xxx
pkg_add
mate mate-control-center
mate-system-monitor mate-utils
atril caja-extensions eom engrampa mate-calc
pkg_add slim
nano /root/.xinitrc
nano /home/xxx/.xinitrc
exec mate-session
nano /etc/rc.local
/usr/local/bin/slim -d
rcctl enable messagebus
rcctl enable avahi_daemon
rcctl disable xenodm
==============================================
"tuchpad config" for laptops
mkdir xorg.conf.d
nano 70-synaptics.conf
===============================================
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "VertEdgeScroll" "on"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "on"
Option "HorizTwoFingerScroll" "on"
Option "VertScrollDelta" "111"
Option "HorizScrollDelta" "111"
EndSection
============================================================
"mount ufs" linux
sudo modprobe ufs
mount -r -t ufs -o ufstype=ufs2 /dev/sda4 /mnt/
============================================================
https://www.openbsd.org/
https://d3suu.neocities.org/freebsd_openvpn/index.html
http://www.openbsdsupport.org/openvpn-on-openbsd.html
https://www.openbsdhandbook.com/installation/
https://openbsdrouterguide.net/
youtu.be/7qnl74W0i04
youtu.be/hUGUk9x2c7E
################################################
ifconfig em0 192.168.xx.xx
route add default 192.168.xx.xx
route -n show
echo "nameserver 8.8.8.8" > /etc/resolv.cfg
################################################
IP 192.168.1.162, port 9999 in lan
########################################################
Openvpn config generation
server_config
#########################################################
pkg_add openvpn
pkg_add easy-rsa
mkdir /etc/openvpn
mkdir /etc/openvpn/server
cp -R /usr/local/share/easy-rsa /etc/openvpn/server/
cd /etc/openvpn/server/easy-rsa/
./easyrsa init-pki
./easyrsa --batch build-ca nopass
./easyrsa build-server-full server nopass
./easyrsa --batch=1 gen-dh dh.pem
./easyrsa build-client-full "d3suu" nopass
./easyrsa gen-crl
cp pki/ca.crt pki/private/ca.key pki/issued/server.crt pki/private/server.key pki/crl.pem pki/dh.pem /etc/openvpn/
chown nobody:nobody /etc/openvpn crl.pem
chmod o+x /etc/openvpn
openvpn --genkey secret /etc/openvpn/tc.key
cat >/etc/openvpn/server.conf <<EOF
local 192.168.x.x
port xxxx
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.7.0.0 255.255.255.0
keepalive 10 120
data-ciphers-fallback 'AES-256-CBC'
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
explicit-exit-notify
EOF
#######################################################################
openvpn start
/usr/local/sbin/openvpn --daemon --config /etc/openvpn/server.conf
#######################################################################
==============================================================================
mate isntall
==============================================================================
usermod -G wheel xxx
usermod -G staff xxx
usermod -G operator xxx
pkg_add nano
nano /etc/doas.conf
permit persist keepenv xxx
pkg_add
mate mate-control-center
mate-system-monitor mate-utils
atril caja-extensions eom engrampa mate-calc
pkg_add slim
nano /root/.xinitrc
nano /home/xxx/.xinitrc
exec mate-session
nano /etc/rc.local
/usr/local/bin/slim -d
rcctl enable messagebus
rcctl enable avahi_daemon
rcctl disable xenodm
==============================================
"tuchpad config" for laptops
mkdir xorg.conf.d
nano 70-synaptics.conf
===============================================
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "VertEdgeScroll" "on"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "on"
Option "HorizTwoFingerScroll" "on"
Option "VertScrollDelta" "111"
Option "HorizScrollDelta" "111"
EndSection
============================================================
"mount ufs" linux
sudo modprobe ufs
mount -r -t ufs -o ufstype=ufs2 /dev/sda4 /mnt/
============================================================