diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-26 12:38:38 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-26 12:38:38 +0000 |
commit | 30707c31a23ad1848f574dc65309d6645f957db1 (patch) | |
tree | 6ce0d5a8992a5b84d1f7d10b376ece4a07752dd3 | |
parent | scotch now leaves normal data alone. added battery to tmux. (diff) | |
download | scripts-30707c31a23ad1848f574dc65309d6645f957db1.tar.gz scripts-30707c31a23ad1848f574dc65309d6645f957db1.zip |
tor as ipv6 proxy
-rw-r--r-- | .vimrc | 2 | ||||
-rw-r--r-- | .zshrc | 7 | ||||
-rwxr-xr-x | bin/scotch | 1 | ||||
-rw-r--r-- | torrc | 24 |
4 files changed, 22 insertions, 12 deletions
@@ -32,7 +32,7 @@ set laststatus=2 set smartcase set more set lazyredraw -set synmaxcol=200 +set synmaxcol=333 syntax sync minlines=64 set ttyfast set relativenumber @@ -20,7 +20,7 @@ autoload -U compinit && compinit -u eval `dircolors ~/.dir_colors` # _evalcache dircolors ~/.dir_colors -alias w3m="torsocks /home/devi/w3m/w3m -graph" +alias w3m="torsocks /home/devi/w3m/w3m -o auto_image=FALSE -graph" alias rm="rm -I --one-file-system --preserve-root=all" alias vv="vim" alias ls="exa" @@ -200,9 +200,12 @@ alias fixxresources="cp ~/scripts/.Xresources ~/.Xresources && xrdb -merge ~/.Xr alias qutebrowserrc="vim ~/scripts/qtbrowser/config.py" alias fixqutebrowserrc="cp ~/scripts/qtbrowser/config.py ~/.config/qutebrowser/config.py" alias pulsemixer="pulsemixer --color 1" +alias vagrant="https_proxy=http://[::1]:8118 vagrant --color --timestamp" alias vm_disposable="cp ~/scripts/vagrant/disposable/Vagrantfile ." alias vm_disposable_alpine="cp ~/scripts/vagrant/disposable-alpine/Vagrantfile ." alias checktor="curl --socks5 localhost:9050 --socks5-hostname localhost:9050 -s https://check.torproject.org/api/ip" +alias ip="ip --color=auto" +alias zathura="tabbed -c zathura -e" #autosuggest ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5f5fff,bg=#000000,bold,underline" @@ -629,6 +632,7 @@ fshow() { done } +export COLORTERM=truecolor export LESS_TERMCAP_mb=$'\e[01;31m' # begin blinking export LESS_TERMCAP_md=$'\e[01;38;5;74m' # begin bold export LESS_TERMCAP_me=$'\e[0m' # end mode @@ -674,3 +678,4 @@ source /usr/share/fzf/completion.zsh source /usr/share/fzf/key-bindings.zsh [[ -s "/home/devi/.gvm/scripts/gvm" ]] && source "/home/devi/.gvm/scripts/gvm" +# [[ -s "/usr/share/grc/grc.zsh" ]] && source /usr/share/grc/grc.zsh @@ -4,6 +4,7 @@ import sys import subprocess +# from man syscalls syscall_set = set( [ "_llseek", @@ -13,16 +13,16 @@ ## Tor will look for this file in various places based on your platform: ## https://www.torproject.org/docs/faq#torrc -ControlSocket /run/tor/control -ControlSocketsGroupWritable 1 -CookieAuthentication 1 -CookieAuthFile /run/tor/control.authcookie -CookieAuthFileGroupReadable 1 +# ControlSocket /run/tor/control +# ControlSocketsGroupWritable 1 +# CookieAuthentication 1 +# CookieAuthFile /run/tor/control.authcookie +# CookieAuthFileGroupReadable 1 ## Tor opens a SOCKS proxy on port 9050 by default -- even if you don't ## configure one below. Set "SOCKSPort 0" if you plan to run Tor only ## as a relay, and not make any local application connections yourself. -#SOCKSPort 9050 # Default: Bind to localhost:9050 for local connections. +SOCKSPort [::1]:9050 # Default: Bind to localhost:9050 for local connections. #SOCKSPort 192.168.0.1:9100 # Bind to this address:port too. ## Entry policies to allow/deny SOCKS requests based on IP address. @@ -61,11 +61,11 @@ CookieAuthFileGroupReadable 1 ## The port on which Tor will listen for local connections from Tor ## controller applications, as documented in control-spec.txt. -#ControlPort 9051 +ControlPort 9051 ## If you enable the controlport, be sure to enable one of these ## authentication methods, to prevent attackers from accessing it. -#HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C -#CookieAuthentication 1 +# HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C +CookieAuthentication 1 ############### This section is just for location-hidden services ### @@ -253,4 +253,8 @@ CookieAuthFileGroupReadable 1 ## The %include option can be used recursively. #%include /etc/torrc.d/ #%include /etc/torrc.custom - +ClientUseIPv4 0 +ClientUseIPv6 1 +ClientPreferIPv6ORPort 1 +AddressDisableIPv6 0 +HTTPTunnelPort [::1]:8118 |