Solved

IPTables - how to edit file in Nano or VI

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 65
Sonicwall Soho - need to reboot to save changed setting 4 48
Remove a folder in Linux 9 92
is my large folder zipped corrupted 4 51
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…

863 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

22 Experts available now in Live!

Get 1:1 Help Now