efek0349 / dotfiles

OpenBSD and Kali - thinkpad e480

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Thinkpad e480 #OpenBSD-current


WM/DE SHELL TERM Editor FileManager Multiplexer Audio Mail IRC Monitor
CWM ksh,fish urxvt vim ranger tmux cmus mutt irssi conky,dzen

#Screenshots Term Term Tmux VMM

Configuration

Add User to Group

# usermod -L staff efek
# usermod -G staff efek

Crontab Configuration for Battery Low Warning

$ crontab -e

Listing the scheduled jobs in Crontab:

$ crontab -l

Deleting all jobs from the Crontab:

$ crontab -r

A crontab file is written as follows:

*  *  *  *  *  /home/efek/bin/checkbatt

This is a Crontab entry that will run every minute:

*/1 * * * * /home/efek/bin/checkbatt

Local Proxy Setup

ref: solene

1. Create a New User

First, create a new user named _proxy:

# useradd -s /sbin/nologin -m _proxy

2. Authorize SSH Key

Copy your SSH public key to the _proxy user's authorized keys file:

# cp id_rsa.pub /home/_proxy/.ssh/authorized_keys

3. PF Configuration

Edit the PF configuration file to block TCP and UDP protocols for the efek user:

# nano /etc/pf.conf

Content:

block return out proto {tcp udp} user efek

Then reload the PF configuration:

# pfctl -f /etc/pf.conf

4. SSH Configuration

Edit the SSH configuration file for the efek user:

$ nano /home/efek/.ssh/config

Content:

Host localhost
  User _proxy
  ControlMaster auto
  ControlPath ~/.ssh/%h%p%r.sock
  ControlPersist 60

Host *.*
  ProxyJump localhost

5. Establish SSH Tunnel

Now, establish an SSH tunnel to localhost as the _proxy user:

$ ssh -N -D 10000 _proxy@localhost

6. Configure Proxy Settings

Set the proxy settings for the system-wide configuration:

$ export all_proxy=socks5://localhost:10000

About

OpenBSD and Kali - thinkpad e480


Languages

Language:Perl 47.4%Language:Vim Script 23.4%Language:Prolog 16.9%Language:Shell 11.3%Language:C 0.5%Language:Python 0.4%Language:GDB 0.1%Language:CSS 0.0%