How to start/stop firewall / set up firewall via ssh?

Project:Linux server
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Project wiki:Server
Related pages:#274: Setting up your first firewall via SSH
Description

How to start and stop the firewall?
How to set up the firewall via ssh?

Comments

#1

Where are rules saved?
Before flushing all the rules, where can I save the current set of rules?
How can I restore them?

#2

iptables -N logdrop
iptables -A logdrop -j LOG
iptables -A logdrop -j DROP