When I recently learned about iptable, I found that the configuration will be cleared after restart. Finally, the command for iptables storage is: iptables-save/etc/iptables. up. rule # where you want to save iptables-restore/etc/iptables. up. rules # call because iptables needs to be input again or recently learned about iptable after each restart of the machine, and the configuration will be cleared after restart.
Finally, there are IptablesStorage commands: Iptables-Save>/etc/iptables. up. rule # where you want to save
Iptables-restore because iptables needs to be input or called again after each machine restart.
Sudo gedit/etc/network/interfaces
In auto ath0
Iface ath0 inetdhcp
Add pre-up iptables-restore post-down iptables-save>/etc/iptables. up. rule # save the current iptables
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service