Neither vi, or vim is simple, I suggest emacs, or better yet download jed, which is easy to use and can be found here:
http://rpm.pbone.net/index.php3?stat...earch=jed&dist[]=44&dist[]=41&dist[]=37&dist[]=31&dist[]=32&dist[]=1&dist[]=28&dist[]=2&dist[]=3&dist[]=4&dist[]=5&dist[]=7&dist[]=42&dist[]=36&dist[]=35&dist[]=11&dist[]=12&dist[]=34&dist[]=13&dist[]=14&dist[]=15&dist[]=17&dist[]=18&dist[]=33&dist[]=19&dist[]=20&dist[]=23&dist[]=24&dist[]=25&dist[]=26&dist[]=27&dist[]=29&dist[]=30&dist[]=38&dist[]=39&dist[]=40&dist[]=43&field[]=1&field[]=2
The world's longest URL? But aren't iptables edited from the command line, or one of the many graphical programs? From: /etc/sysconfig/iptables,
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
Anyway, the manual makes an interesting read, here's the first part:
NAME
iptables - administration tool for IPv4 packet filtering and NAT
SYNOPSIS
iptables [-t table] -[AD] chain rule-specification [options]
iptables [-t table] -I chain [rulenum] rule-specification [options]
iptables [-t table] -R chain rulenum rule-specification [options]
iptables [-t table] -D chain rulenum [options]
iptables [-t table] -[LFZ] [chain] [options]
iptables [-t table] -N chain
iptables [-t table] -X [chain]
iptables [-t table] -P chain target [options]
iptables [-t table] -E old-chain-name new-chain-name
DESCRIPTION
Iptables is used to set up, maintain, and inspect the tables of IP
packet filter rules in the Linux kernel. Several different tables may
be defined. Each table contains a number of built-in chains and may
also contain user-defined chains.