Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1236
  • Last Modified:

IPTables - how to edit file in Nano or VI

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
NYGiantsFan
Asked:
NYGiantsFan
  • 2
  • 2
1 Solution
 
farzanjCommented:
You can edit the config file directly.  Which Linux distro are you using?  Red Hat family may have it in:

/etc/sysconfig/iptables
0
 
NYGiantsFanAuthor Commented:
thanks... i found what I was looking for.  It was named something different by this distro.
0
 
NYGiantsFanAuthor Commented:
My distro had it names something different from IPTables.... frustrating.
0
 
farzanjCommented:
If you have Ubuntu, it is not using IP Tables currently and it is not my fault:)
0

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now