Dev/Firewall Unload
From Whonix
< Dev
The following script unloads / removes each and every iptables rule.
Open ~/firewall-unload in an editor as a regular, non-root user.
If you are using a graphical environment, run.
mousepad ~/firewall-unload
If you are using a terminal, run.
nano ~/firewall-unload
Add.
#!/bin/bash ## Copyright (C) 2012 - 2015 Patrick Schleizer <adrelanos@whonix.org> ## See the file COPYING for copying conditions. set -o pipefail error_handler() { echo "ERROR!" >&2 exit 1 } trap "error_handler" ERR [ -n "$iptables_cmd" ] || iptables_cmd="iptables --wait" [ -n "$ip6tables_cmd" ] || ip6tables_cmd="ip6tables --wait" $iptables_cmd -P INPUT ACCEPT $iptables_cmd -P FORWARD ACCEPT $iptables_cmd -P OUTPUT ACCEPT $iptables_cmd -F $iptables_cmd -X $iptables_cmd -t nat -F $iptables_cmd -t nat -X $iptables_cmd -t mangle -F $iptables_cmd -t mangle -X $iptables_cmd -t raw -F $iptables_cmd -t raw -X $ip6tables_cmd -P INPUT ACCEPT $ip6tables_cmd -P OUTPUT ACCEPT $ip6tables_cmd -P FORWARD ACCEPT $ip6tables_cmd -F $ip6tables_cmd -X $ip6tables_cmd -t mangle -F $ip6tables_cmd -t mangle -X $ip6tables_cmd -t raw -F $ip6tables_cmd -t raw -X exit 0
Save.
Make executable.
chmod +x ~/firewall-unload
Run.
sudo ~/firewall-unload
Whonix ™ is Supported by Evolution Host DDoS Protected VPS. Stay private and get your VPS with Bitcoin or Monero.
Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki
Are you proficient with iptables? Want to contribute? Check out possible improvements to iptables. Please come and introduce yourself in the development forum.
This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation. Policy of Whonix Website and Whonix Chat and Policy On Nonfreedom Software applies.
Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee [archive] of the Open Invention Network [archive]. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)
Whonix ™ is a derivative of and not affiliated with Debian [archive]. Debian is a registered trademark [archive] owned by Software in the Public Interest, Inc [archive].
Whonix ™ is produced independently from the Tor® [archive] anonymity software and carries no guarantee from The Tor Project [archive] about quality, suitability or anything else.
By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. Whonix ™ is provided by ENCRYPTED SUPPORT LP. See Imprint, Contact.