.iptables iptables configuration file
Text & source code
| MIME type | text/x-iptables |
|---|---|
| Description | iptables configuration file |
| Category | Text & source code |
| Signature (magic bytes) | 2A 66 69 6C 74 65 72 (*filter)2D 41 20 49 4E 50 55 54 (-A INPUT)2D 50 20 49 4E 50 55 54 (-P INPUT) |
| Based on | text/plain |
Frequently asked questions
What is a .iptables file?
A .iptables file is a “iptables configuration file” (MIME type text/x-iptables).
How do I open a .iptables file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .iptables file?
By the bytes at the start of the file, the signature (magic bytes): 2A 66 69 6C 74 65 72 (*filter), 2D 41 20 49 4E 50 55 54 (-A INPUT) and 2D 50 20 49 4E 50 55 54 (-P INPUT). On Linux and macOS, file --mime-type example.iptables checks the real type regardless of the extension.
Which format is .iptables based on?
Technically a .iptables file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .iptables?
The MIME type is text/x-iptables. In the Apache web server: AddType text/x-iptables .iptables; in nginx: types { text/x-iptables iptables; }.