Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

location of iptables config file ???

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
bbell2610
n00b
n00b
Posts: 19
Joined: Mon Aug 21, 2006 1:34 pm

location of iptables config file ???

  • Quote

Post by bbell2610 » Mon Sep 04, 2006 6:13 pm

Anyone know where the config file is stored for the iptables policies that are loaded when the service starts? I find it easier to change rules via the config file than from the command line but don't know where to find the config file. On redhat, it stores the config file "iptables" in /etc/sysconfig. Where on gentoo?
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Mon Sep 04, 2006 7:00 pm

Cat /etc/conf.d/iptables and you'll see it.
Top
ali3nx
l33t
l33t
User avatar
Posts: 732
Joined: Sun Sep 21, 2003 4:28 am
Location: Winnipeg, Canada
Contact:
Contact ali3nx
Website

  • Quote

Post by ali3nx » Mon Sep 04, 2006 7:01 pm

The file generated by iptables-save is stored in /var/lib/iptables in gentoo

Code: Select all

midas ~ # ls -l /var/lib/iptables/
.keep       rules-save
I find changing the location of the file to /root/.iptables/rules-save to be a more secure option. Anyone is open to changing the path to wherever they prefer by editing /etc/conf.d/iptables
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Top
bbell2610
n00b
n00b
Posts: 19
Joined: Mon Aug 21, 2006 1:34 pm

  • Quote

Post by bbell2610 » Mon Sep 04, 2006 7:36 pm

I saw the iptables file in the conf.d directory but the comment in the file seems to indicate that the file was only used for "save on stop" and to restore from. Anyway, I modified the policies in the rules-save file and restarted the service ... that seems to do the trick. thanks.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic