Solved

IPTables - how to edit file in Nano or VI

Posted on 2012-12-26
4
985 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to change the nameserver on Ubuntu Server 6 50
expand ext4 on centos 6 5 37
CLI command keep running after close 7 37
rsyslog raw message 4 15
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

820 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