Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

iptables deny all

# Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT

# Accept on localhost
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT

# Allow established sessions to receive traffic
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
Comment

PREVIOUS NEXT
Code Example
Shell :: install sqlite browser 
Shell :: sudo snap linux store 
Shell :: git change commit id email 
Shell :: linux ogg to wav 
Shell :: .gitignore is not ignoring directories 
Shell :: virtualbox ubuntu mouse scroll not working 
Shell :: How to install p12 certificate in ubuntu 
Shell :: git add and remove 
Shell :: install ubuntu deb 
Shell :: how to get updates in linux 
Shell :: terminal command as parameter 
Shell :: change password linux 
Shell :: add user to sudoer 
Shell :: list all gpg keys ubuntu 
Shell :: install extension pgcrypto 
Shell :: how to check if command line tools is install 
Shell :: flutter plugin installed but in flutter doctor it shows not installed 
Shell :: expo cli not installing 
Shell :: docker-compose change working dir 
Shell :: chocolatey installation 
Shell :: git show files modified since commit 
Shell :: add local folder to git repo 
Shell :: Submodule update 
Shell :: apt vs homebrew 
Shell :: install torch 
Shell :: create alias in powershell permanently 
Shell :: git credential manager 
Shell :: install tmux on fedora32 
Shell :: ubuntu docker host ip 
Shell :: bash blackeye 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =