Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

iptables remove docker rules

Note: Your iptables file location might be different. Run cat /etc/iptables.up.rules or cat /etc/network/iptables.rules

1. edit your /etc/iptables.up.rules file, back up file then remove everything with docker in it

2. flush iptables: iptables -P INPUT ACCEPT && iptables -P OUTPUT ACCEPT && iptables -P FORWARD ACCEPT && iptables -F
3. reload iptables rules: iptables-restore < /etc/iptables.up.rules
4. verify/check your rules: iptables -L -n (should no longer have any docker chains or rules)
Comment

PREVIOUS NEXT
Code Example
Shell :: install glfw3 
Shell :: tar zip multiple files 
Shell :: symfony unit test 
Shell :: cmd copy all files to another folder 
Shell :: linux cli see screen resolution 
Shell :: ubuntu connect openvpn 
Shell :: speedtest mac terminal 
Shell :: how to add images to git readme 
Shell :: tar multiple files in linux 
Shell :: squash commit history git 
Shell :: unable to find docker images locally 
Shell :: Linux command line search and replace string in all files 
Shell :: apple logo in terminal 
Shell :: install redis windows 10 
Shell :: whats the file path for the documents folder linux 
Shell :: get path ubuntu 
Shell :: curl download file without output 
Shell :: download ubuntu 16.04 iso 64-bit 
Shell :: chown: invalid user: ‘www-data:www-data’ 
Shell :: how to set up git user 
Shell :: Host key verification failed. fatal: Could not read from remote repository. 
Shell :: octoprint log location 
Shell :: install latex 
Shell :: install yup in vue 
Shell :: bash get file size in mb 
Shell :: how to configure git and github 
Shell :: unix terminal search inside file 
Shell :: how to remove git commit history 
Shell :: wsl2 taking much memory 
Shell :: if command has output bash 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =