LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-08-2006, 11:13 PM   #1
kurrupt
Member
 
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202

Rep: Reputation: 31
ipcop + custom iptables rule


Hey guys, iam currently running IPCop as my firewall, and i created a custom rule on the system to block some outgoing connections.

What iam trying to figure out his how ipcop saves the rules? it does not have the standard /etc/init.d/iptables save procedure.

Anyone know how IPCOP saves the table rules?


Thanks.
 
Old 12-09-2006, 08:55 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
never used ipcop, but any linux distro should be able to save iptables configuration with a:
Code:
iptables-save > /path/to/somewhere/myrules.txt
then it's just a matter of adding a:
Code:
iptables-restore < /path/to/somewhere/myrules.txt
to the appropriate startup file (optimally you'd want this to happen before your network is brought online)...

EDIT: actually, after some thought, this is probably not what you are looking for... i say this because it would be redundant when whatever ipcop normally does kicks in... your box would be loading the ipcop iptables config, and then iptables-restore would be replacing it with the same thing plus your rules...

if you're looking to just have some rules run independantly of whatever ipcop is doing i'd suggest adding them to an rc.local or something like that... that way you know your rules will get executed after ipcop's normal procedure has finished...

BTW, grepping your startup scripts for the string "iptables-restore" will probably shed some light as to where ipcop stores it's iptables config...

Last edited by win32sux; 12-09-2006 at 09:00 AM.
 
Old 12-09-2006, 05:41 PM   #3
kurrupt
Member
 
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202

Original Poster
Rep: Reputation: 31
ya i totally agree with you, I know all the commands to save, export, restore etc.. for iptables but it seems the makers of IPCop stripped it down to the bone, those commands do not exist on the system anymore.

They seem to have a different way of importing/saving the rules on the system, and i cannot pinpoint it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is it doing this iptables rule?? lanczer Linux - Security 1 02-24-2006 11:26 AM
Wrong group with custom udev rule enragedchip Linux - Hardware 1 12-11-2005 02:46 PM
Custom FDI Rule Needed - Any Help Much Appreciated rrrssssss Mandriva 0 12-03-2005 03:51 AM
MNF Custom RUle apoc63 Linux - Security 2 01-21-2005 02:34 PM
IPTables Rule... Grim Reaper Linux - Software 8 04-28-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration