From 9c90e80aaa7be72c6456aa86789f83a7a0c5860a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:40:14 +0200 Subject: [PATCH 01/16] Checked next-page like in the firefox vim vimex --- .config/nvim/init.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f5f6583..c142c8f 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -115,10 +115,10 @@ nmap w :Files nmap :Files " Resize window -nnoremap L :vertical resize +5 -nnoremap H :vertical resize -5 -nnoremap J :res +5 -nnoremap K :res -5 +nnoremap :vertical resize +5 +nnoremap :vertical resize -5 +nnoremap :res +5 +nnoremap :res -5 " Split window nnoremap _ :vsp @@ -218,6 +218,8 @@ nnoremap :tabnew nnoremap :Goyo nnoremap :tabprevious nnoremap :tabnext +nnoremap K :tabprevious +nnoremap J :tabnext "" Moving line up or down using alt nnoremap :m-2 From 8131decdc3abc9fea3672863f6f55bcde234a5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:40:46 +0200 Subject: [PATCH 02/16] Checked docker ps -> docker ps -all --- .local/bin/docker-start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/docker-start b/.local/bin/docker-start index cf3efe5..32535ea 100755 --- a/.local/bin/docker-start +++ b/.local/bin/docker-start @@ -14,4 +14,4 @@ sudo rc-service docker start sleep 10 -sudo docker ps +sudo docker ps --all From a6b84f57e737efb0f45ca0c0c8fe10798405eda7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:41:21 +0200 Subject: [PATCH 03/16] Resolve issue with space key with emacs in the alacritty --- .alacritty.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.alacritty.yml b/.alacritty.yml index 81fa164..25fefea 100644 --- a/.alacritty.yml +++ b/.alacritty.yml @@ -17,6 +17,7 @@ key_bindings: - { key: Return, mods: Control|Shift, action: SpawnNewInstance } - { key: F, mods: Control, action: SearchForward } - { key: V, mods: Control|Shift, action: Paste } + - { key: Space, mods: Control, chars: "\x00" } selection: save_to_clipboard: true From c53a9d12e3436c50cf6a39f457e8b24c722e5dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:41:44 +0200 Subject: [PATCH 04/16] Disabled quasselclient in the startup --- .xinitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.xinitrc b/.xinitrc index 2728db3..6c5a900 100644 --- a/.xinitrc +++ b/.xinitrc @@ -24,7 +24,7 @@ QT_SCALE_FACTOR=1.5 keepassxc & sudo /usr/bin/rdate -s ntp.task.gda.pl && sudo /sbin/hwclock --systohc megasync & ibus-daemon& -quasselclient& +#quasselclient& # Two monitors are enabled? if [[ $(mons | awk '/Monitors/{print $2}') = 2 ]] From 48cc44955078f59e9906d6fe63785e9550aa7ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:41:57 +0200 Subject: [PATCH 05/16] Checked feh alias --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 6ce2533..953945b 100644 --- a/.zshrc +++ b/.zshrc @@ -74,7 +74,7 @@ alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'" alias mylaptop-components="inxi -Fxz" alias r="ranger" alias v="nvim" -alias feh="feh --scale-down" +alias feh="feh --edit --scale-down" alias changefont="figlet" alias gmaster="git checkout master" alias gcommit="git commit --author='Marcin Woźniak ' -s" From 8dffdba4d4d6a932650b09b2125e3c487b6bc489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:42:37 +0200 Subject: [PATCH 06/16] Added tmux-display-fix when session was in the desktop after in the ssh and it cause problem --- .local/bin/tmux-display-fix | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 .local/bin/tmux-display-fix diff --git a/.local/bin/tmux-display-fix b/.local/bin/tmux-display-fix new file mode 100755 index 0000000..2519637 --- /dev/null +++ b/.local/bin/tmux-display-fix @@ -0,0 +1,2 @@ +#!/bin/bash +export DISPLAY="`tmux show-env | sed -n 's/^DISPLAY=//p'`" From 52b351f9c6d05857de86a0adb8ce5192db14fa54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:42:55 +0200 Subject: [PATCH 07/16] Added and removed urls --- .config/newsboat/urls | 54 +++---------------------------------------- 1 file changed, 3 insertions(+), 51 deletions(-) diff --git a/.config/newsboat/urls b/.config/newsboat/urls index 9c70726..b8f21ce 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -1,67 +1,19 @@ =====================NEWS==================================== -shttps://wtf.roflcopter.fr/rss-bridge/?action=display&bridge=Facebook&context=User&u=gminakleczew&media_type=all&limit=-1&format=Mrss "~Gmina Kleczew - Facebook" -https://wtf.roflcopter.fr/rss-bridge/?action=display&bridge=Facebook&context=User&u=portalLM&media_type=all&limit=-1&format=Mrss "~Portal lm.pl - Facebook" https://nitter.net/MZ_GOV_PL/rss "~MZ_GOV_PL - Twitter" http://www.epoznan.pl/rss.php "~Epoznan - Website" https://sekurak.pl/feed/ "~Sekurak" https://feeds.feedburner.com/niebezpiecznik/ "~Niebezpiecznik" ============================================================ +https://repology.org/maintainer/y0rune%40aol.com/feed-for-repo/gentoo_ovl_guru/atom "~GURU OUTDATE MAINTAINER" https://bugs.gentoo.org/buglist.cgi?bug_status=UNCONFIRMED&chfieldfrom=24h&ctype=atom&title=NEW&list_id=4468306&order=changeddate%20DESC%2Cbug_status%2Cpriority%2Cassigned_to%2Cbug_id&query_format=advanced Gentoo https://bugs.gentoo.org/buglist.cgi?component=Package%20issues&product=GURU&query_format=advanced&resolution=---&title=Bug%20List&ctype=atom GURU-BUGS https://bugs.gentoo.org/buglist.cgi?component=Trusted%20Contributor%20ascension&product=GURU&query_format=advanced&resolution=---&title=Bug%20List&ctype=atom https://www.reddit.com/r/gentoo/new.rss "~Gentoo - Reddit" +=====================PODCASTY=============================== +https://www.internet-czas-dzialac.pl/rss/ ============================================================ http://rss.uptimerobot.com/u674346-753d02ab763f3725330347d4419a7569 "~UpTimeRoboot" =====================YOUTUBE================================= -https://www.youtube.com/feeds/videos.xml?channel_id=UCzuvRWjh7k1SZm1RvqvIx4w "~Krzysztof Gonciarz" -https://www.youtube.com/feeds/videos.xml?channel_id=UC3QOjSZmJuYgb98BAzKfzig "~Zapytaj Beczkę" -https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith" -https://www.youtube.com/feeds/videos.xml?channel_id=UC2qQkGwReBfucb6yWr7idRA "~Asia Ladowska" -https://www.youtube.com/feeds/videos.xml?channel_id=UC5ZSM0kOGhtLdtZiqM2noWw "~StudyWithInSpo" -https://www.youtube.com/feeds/videos.xml?channel_id=UC84AaEtr7hlaYYwXDSKAbNg "~Ignacy z Japonii" -https://www.youtube.com/feeds/videos.xml?channel_id=UC8JbbaZ_jgdsoUqrZ2bXtQQ "~Lekko Stronniczy" -https://www.youtube.com/feeds/videos.xml?channel_id=UC8q23MpiyWjv9vd4r85oj1A "~Daniel Rakowiecki" -https://www.youtube.com/feeds/videos.xml?channel_id=UC9Vi25H6lQvPqcepJCJ3sEg "~Emma" -https://www.youtube.com/feeds/videos.xml?channel_id=UCAD-xOOaUI6N7Uq9laOVbcw "~Rene Rene" -https://www.youtube.com/feeds/videos.xml?channel_id=UCAEQl0BbYrPyTnsWVBJuIqQ -https://www.youtube.com/feeds/videos.xml?channel_id=UCaG-Uk3PSpHexeUJaJC_TPw -https://www.youtube.com/feeds/videos.xml?channel_id=UCAkBZtIl-a0fBLcY7JCPSQw -https://www.youtube.com/feeds/videos.xml?channel_id=UCB-4hoTjsE3VIFI862C5SZA -https://www.youtube.com/feeds/videos.xml?channel_id=UCE5Au4LfcBHxTQR_yLbncrQ -https://www.youtube.com/feeds/videos.xml?channel_id=UCe6nK69Yc1zna7QSJEfA9pw -https://www.youtube.com/feeds/videos.xml?channel_id=UCEbYhDd6c6vngsF5PQpFVWg -https://www.youtube.com/feeds/videos.xml?channel_id=UCELsE3w85wy7hXFmU2eRn_w -https://www.youtube.com/feeds/videos.xml?channel_id=UCfegHHvKywKjJ69Ymcb6j0w -https://www.youtube.com/feeds/videos.xml?channel_id=UCFGud6qsbaAjuP6WaXAJj3Q -https://www.youtube.com/feeds/videos.xml?channel_id=UCH2OHdQF5c2r2M_l_vPiXRA -https://www.youtube.com/feeds/videos.xml?channel_id=UCIDf8pzX2oZmjXtqMwHn0xg -https://www.youtube.com/feeds/videos.xml?channel_id=UCIj6yjWVKPKO5zNLBjQ8Beg -https://www.youtube.com/feeds/videos.xml?channel_id=UCJ24N4O0bP7LGLBDvye7oCA -https://www.youtube.com/feeds/videos.xml?channel_id=UCJkmbV_cndEe6Af8b5qVyoQ -https://www.youtube.com/feeds/videos.xml?channel_id=UCJLLl6AraX1POemgLfhirwg -https://www.youtube.com/feeds/videos.xml?channel_id=UCjS2aGCvsnhExcWRAI8T4Pw -https://www.youtube.com/feeds/videos.xml?channel_id=UCMsi03EhTUsUs2OtPus6XDQ -https://www.youtube.com/feeds/videos.xml?channel_id=UCMTkC2dA25yFsmtaevpYWfg -https://www.youtube.com/feeds/videos.xml?channel_id=UCnOo8dtBgwJbdwl4HxqPHwg -https://www.youtube.com/feeds/videos.xml?channel_id=UCO8DQrSp5yEP937qNqTooOw -https://www.youtube.com/feeds/videos.xml?channel_id=UCoJjEsNkU-Md3xB6BursT0Q -https://www.youtube.com/feeds/videos.xml?channel_id=UCoXxgqIOTa8qCM7Hd7RiURw -https://www.youtube.com/feeds/videos.xml?channel_id=UCPc_saLjikyw-1sscFsHIsA -https://www.youtube.com/feeds/videos.xml?channel_id=UCPKgIhTC3BdkAwMw6s-GEug -https://www.youtube.com/feeds/videos.xml?channel_id=UCRxAgfYexGLlu1WHGIMUDqw -https://www.youtube.com/feeds/videos.xml?channel_id=UCs02jgjMVeirmDHaxAXApkg -https://www.youtube.com/feeds/videos.xml?channel_id=UCsnGwSIHyoYN0kiINAGUKxg -https://www.youtube.com/feeds/videos.xml?channel_id=UCv9wKjBogC5AVG54s_Imn0A -https://www.youtube.com/feeds/videos.xml?channel_id=UCvbEYH_h8k-hHq2oS-7zIdQ -https://www.youtube.com/feeds/videos.xml?channel_id=UCVbn813ctsoChuTT4LuLqrA -https://www.youtube.com/feeds/videos.xml?channel_id=UCVVt5tbZEzfQSIsHUh3b_vg -https://www.youtube.com/feeds/videos.xml?channel_id=UCw3T7SvPYDHCkdMhC0NcKsw -https://www.youtube.com/feeds/videos.xml?channel_id=UCWcz2SQMCcijkVta0hSERIA -https://www.youtube.com/feeds/videos.xml?channel_id=UCWFKCr40YwOZQx8FHU_ZqqQ -https://www.youtube.com/feeds/videos.xml?channel_id=UCXRJfVWEjv9qxooSbOkFmkw -https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw -https://www.youtube.com/feeds/videos.xml?channel_id=UCZgyxIrQnTDLwwEr9VSkoPA -https://www.youtube.com/feeds/videos.xml?channel_id=UCZKqIdmPtIU6DOTmWxzudKw =====================ANIME=================================== https://mirror.animetosho.org/feed/rss2?only_tor=1&q=%5BHorribleSubs%5D%20Sword%20Art%20Online%20720p&filter%5B0%5D%5Bt%5D=nyaa_class&filter%5B0%5D%5Bv%5D=trusted "~Sword Art Online" ============================================================= From b607bafe8f73a3ebacf85ec1249777092d8901f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:43:27 +0200 Subject: [PATCH 08/16] Added more permission copy and sleep in the Update-kernel --- .local/bin/Update-kernel | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/bin/Update-kernel b/.local/bin/Update-kernel index af7aeb8..579393c 100755 --- a/.local/bin/Update-kernel +++ b/.local/bin/Update-kernel @@ -9,7 +9,7 @@ function starting() { echo -e "\e[93m----------------------COMPILING------------------------------\e[0m" sudo cp -rv "$DEFAULT_KERNEL" "$TMP_KERNEL" cp -r "$TMP_KERNEL" "$BACKUP/kernel-config" -cp -r /etc/portage/* $BACKUP +sudo cp -r /etc/portage/* $BACKUP qlist -I | sort -u > $BACKUP/list-of-programs } @@ -96,6 +96,7 @@ fi function addgit() { cd "$BACKUP" || exit + sleep 20 git add . git commit -m "Updated: $(date)" git push From ef5f98f2170fe8d0be97fac96a6083802fc76a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:43:57 +0200 Subject: [PATCH 09/16] Removed white signs and added new localization dwm etc into MEGA --- .local/bin/backupSynology | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.local/bin/backupSynology b/.local/bin/backupSynology index c6a6b11..db9f140 100755 --- a/.local/bin/backupSynology +++ b/.local/bin/backupSynology @@ -3,18 +3,19 @@ source $HOME/.password mkdir -p ~/Movies/{Anime,Videos} mkdir -p ~/Music -#sudo mount -t cifs //192.168.0.220/Mega -o username=${USERNAME},password=${PASSWORD},vers=2\.0 /mnt/Synology +#sudo mount -t cifs //192.168.0.220/Mega -o username=${USERNAME},password=${PASSWORD},vers=2\.0 /mnt/synology #sudo mount -t cifs //192.168.0.220/music -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Music #sudo mount -t cifs //192.168.0.220/usbshare1/Video -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Movies/Videos #sudo mount -t cifs //192.168.0.220/usbshare1/Anime -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Movies/Anime #sudo mount -t cifs //192.168.0.220/Studia -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Collage -if [ -e /mnt/Synology/Systems ] +if [ -e /mnt/synology/Systems ] then echo "Starting $(date)" > ~/.cache/.logSynology - sudo rsync -r --bwlimit=512 --update --progress /usr/mega/ /mnt/Synology >> ~/.cache/.logSynology + sudo rsync -r --bwlimit=512 --update --progress /home/yorune/MEGA/ /mnt/synology >> ~/.cache/.logSynology rsync -r --bwlimit=512 --update --progress \ /home/yorune/Documents/Mega-Documents/Magisterka-Marcin/ \ ~/Documents/Collage/Magisterka-Marcin + cp -rv /home/yorune/git/{dwm,dwmblocks,st,dmenu,mons,slock} ~/MEGA/Systems/Linux/apps echo "Ending $(date)" >> ~/.cache/.logSynology fi From ff6e18c2f953e4730919576e90b9b47f2b963b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:44:19 +0200 Subject: [PATCH 10/16] Changed version of python 3.8 -> 3.9 --- .local/bin/f2py | 2 +- .local/bin/f2py3 | 2 +- .local/bin/wheel | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/f2py b/.local/bin/f2py index 7d02144..d0c7c3e 100755 --- a/.local/bin/f2py +++ b/.local/bin/f2py @@ -1,4 +1,4 @@ -#!/usr/bin/python3.8 +#!/usr/bin/python3.9 # -*- coding: utf-8 -*- import re import sys diff --git a/.local/bin/f2py3 b/.local/bin/f2py3 index 7d02144..d0c7c3e 100755 --- a/.local/bin/f2py3 +++ b/.local/bin/f2py3 @@ -1,4 +1,4 @@ -#!/usr/bin/python3.8 +#!/usr/bin/python3.9 # -*- coding: utf-8 -*- import re import sys diff --git a/.local/bin/wheel b/.local/bin/wheel index 67a4232..423bf0f 100755 --- a/.local/bin/wheel +++ b/.local/bin/wheel @@ -1,4 +1,4 @@ -#!/usr/bin/python3.8 +#!/usr/bin/python3.9 # -*- coding: utf-8 -*- import re import sys From 8c912d9493cc2e8b08fe26886b757108b31de909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:45:11 +0200 Subject: [PATCH 11/16] Added .keras and .config/menus into .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index c4728fe..738065e 100644 --- a/.gitignore +++ b/.gitignore @@ -149,6 +149,8 @@ .local/bin/tqdm .local/bin/f2py .local/bin/f2py3 +.keras/ +.config/menus .local/bin/wheel .local/include/ .local/lib/ From e03cd7e4c8c3555a60619444fb58712e6dfa5dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:45:24 +0200 Subject: [PATCH 12/16] Removed new line in the sb-mem --- .local/bin/sb-mem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/sb-mem b/.local/bin/sb-mem index 9d435ed..07a5fc7 100755 --- a/.local/bin/sb-mem +++ b/.local/bin/sb-mem @@ -2,4 +2,4 @@ print_mem(){ free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB", ( $3 / 1024) )}' } -print_mem \ No newline at end of file +print_mem From 966bbab09869146a03bae9251127c8c99d942cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 17:45:52 +0200 Subject: [PATCH 13/16] Added default settings in the streamlink --- .streamlinkrc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .streamlinkrc diff --git a/.streamlinkrc b/.streamlinkrc new file mode 100644 index 0000000..820e871 --- /dev/null +++ b/.streamlinkrc @@ -0,0 +1,2 @@ +player=mpv --cache 2048 +player-no-close From ae6b57ae2928ee3b70a0bda906c6d6d5cb1247a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 23:20:45 +0200 Subject: [PATCH 14/16] Added new default fzf command --- .config/nvim/init.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index c142c8f..4363e65 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -106,6 +106,7 @@ set statusline+=\ %l/%L set statusline+=\ [%c] " fzf +let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*"' command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(), 1, 0) command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('')), 1, 0) set grepprg=rg\ --vimgrep From df112737a3e848e05c600ce5e4a5f65493a77029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 8 Aug 2021 23:21:06 +0200 Subject: [PATCH 15/16] Enable hidden files in NerdTree --- .config/nvim/init.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 4363e65..b13a06b 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -180,6 +180,9 @@ set ic let &t_SI = "\[6 q" let &t_EI = "\[2 q" +" Enable show hidden in NerdTree +let NERDTreeShowHidden=1 + " multiple cursors let g:multi_cursor_start_word_key = '' let g:multi_cursor_select_all_word_key = '' From b6cd05b56e464b8ef6f4b5c7f142408d0816c0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 9 Aug 2021 22:27:09 +0200 Subject: [PATCH 16/16] Added the ipconfig --- .config/iptables | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.config/iptables b/.config/iptables index 930c637..671a7df 100755 --- a/.config/iptables +++ b/.config/iptables @@ -1,22 +1,19 @@ # CONFIGURATION: +# Default configuration to DROP +iptables -P INPUT DROP +iptables -P FORWARD DROP +iptables -P OUTPUT DROP + # Accept on localhost -iptables -A INPUT -i lo -j ACCEPT -iptables -A OUTPUT -o lo -j ACCEPT +# iptables -A INPUT -i lo -j ACCEPT +# iptables -A OUTPUT -o lo -j ACCEPT # Accept outgoing network iptables -A OUTPUT -o eth0 -j ACCEPT -# Allow established sessions to receive traffic -iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT -iptables -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT - -# Enable SSH (to internet) -#iptables -A OUTPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -#iptables -A OUTPUT -p tcp -m state --state NEW -m tcp --dport 10571 -j ACCEPT - -# Disable SSH (to that machine) -iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --sport 22 -j DROP -iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 22 -j DROP +# Enable SSH (to that machine) +iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --sport 22 -j ACCEPT +iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 22 -j ACCEPT # Enable INZ #iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 1285 -j ACCEPT @@ -26,8 +23,12 @@ iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 2 #Enable CSGO iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27015 -j ACCEPT iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27020 -j ACCEPT -iptables -A INPUT -p udp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27015 -j ACCEPT -iptables -A INPUT -p udp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27020 -j ACCEPT +#iptables -A INPUT -p udp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27015 -j ACCEPT +#iptables -A INPUT -p udp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27020 -j ACCEPT + +# Allow established sessions to receive traffic +iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT +# iptables -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A INPUT -i eth0 -m state --state NEW,INVALID -j DROP iptables -A FORWARD -i eth0 -m state --state NEW,INVALID -j DROP