Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-09-2006, 12:13 AM
|
#1
|
Member
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202
Rep:
|
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.
|
|
|
12-09-2006, 09:55 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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 10:00 AM.
|
|
|
12-09-2006, 06:41 PM
|
#3
|
Member
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|