By elearn
service iptables stop service iptables restart The two commands can’t work on my debian–wheezy ,how to close iptables and reboot iptables on debian–wheezy?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
iptables is not a system service, but a single command. RedHat-based distros ship with an init script for convenience which allows you to save your iptables configuration, but this is not present on Ubuntu or Debian. You can get similar functionality by using iptables-persistent You can install it with:
sudo apt-get update
sudo apt-get install iptables-persistent
Then save your rules by running:
sudo service iptables-persistent save
```
And it flush your IPtables rules, effectively disabling your firewall, run:
````[commands]
sudo service iptables-persistent stop
```
While this article is targeted at Ubuntu, it applies to Debian as well. Check it out for more info on IPtables:
* [How To Set Up a Firewall Using Iptables on Ubuntu 14.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-iptables-on-ubuntu-14-04)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.