Solved

IPTables - how to edit file in Nano or VI

Posted on 2012-12-26
4
950 Views
Last Modified: 2012-12-26
Hi,
I just want to edit IPtables using Nano or VI.  I seem to only find commands to edit painfully slowly from the command line.  Can anyone tell me what file I should edit IPtables and what is its location.

Thanks.
0
Comment
Question by:NYGiantsFan
  • 2
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 38722010
You can edit the config file directly.  Which Linux distro are you using?  Red Hat family may have it in:

/etc/sysconfig/iptables
0
 

Author Comment

by:NYGiantsFan
ID: 38722065
thanks... i found what I was looking for.  It was named something different by this distro.
0
 

Author Closing Comment

by:NYGiantsFan
ID: 38722066
My distro had it names something different from IPTables.... frustrating.
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38722280
If you have Ubuntu, it is not using IP Tables currently and it is not my fault:)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle 10g standard edition server with 4 processors 3 54
linux(debian) mouse poor performance 4 41
awk file 6 52
000webhost.com default error log 1 28
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question