9/22/2023 0 Comments Esxi 6.7 iptables firewall![]() ![]() We’ll use the cat command to print it out to the terminal: Let’s take a quick look at the file’s contents. This file can be used on a different server to load the firewall rules into iptables. This will create the iptables-export file, in your home directory. On the Server A, the one with the iptables rules that you want to migrate, use the iptables-save to export the current rules to a file named “iptables-export” like this: This gives us an easy way to export the firewall rules to file, by redirecting stdout to a file. ![]() ![]() The iptables-save command writes the current iptables rules to stdout (standard out). The example rules above will be used to demonstrate the firewall migration process. A INPUT -p tcp -m tcp -dport 80 -j ACCEPT A INPUT -p tcp -m tcp -dport 22 -j ACCEPT A INPUT -m conntrack -ctstate RELATED,ESTABLISHED -j ACCEPT ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |