Solved

IPTables - how to edit file in Nano or VI

Posted on 2012-12-26
4
893 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
Comment Utility
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
Comment Utility
thanks... i found what I was looking for.  It was named something different by this distro.
0
 

Author Closing Comment

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

Expert Comment

by:farzanj
Comment Utility
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!

Join & Write a Comment

Do you have a windows based Checkpoint SmartCenter for centralized Checkpoint management?  Have you ever backed up the firewall policy residing on the SmartCenter?  If you have then you know the hassles of connecting to the server, doing an upgrade_…
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 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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now