LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2006, 02:39 AM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
iptables.conf???


-is it possible for iptables configuration to be written on a txt file like squid?
- also is there a iptables generator and simulator?
 
Old 11-03-2006, 07:17 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
iptables-save and iptables-restore are one way.

But I just have all my iptables rules in a bash script, and then run that script at startup.

Most "Linux firewalls" could be called an "iptables generator", but I've never used any to comment on their capabilities/useability. I write all my rules manually.
 
Old 11-03-2006, 07:45 PM   #3
fireant
LQ Newbie
 
Registered: Nov 2006
Location: Dalmatovo, Russia
Distribution: Debian GNU Linux Sarge
Posts: 26

Rep: Reputation: 15
Quote:
Originally Posted by SBN
- also is there a iptables generator and simulator?
I use FireHOL - an iptables firewall generator. But there's a lot of others front-ends for iptables and rules generators.

Even with GUI interface.
 
Old 11-03-2006, 08:56 PM   #4
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by haertig
But I just have all my iptables rules in a bash script, and then run that script at startup.
-how do you run scripts on startup?
 
Old 11-03-2006, 09:14 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by SBN
-how do you run scripts on startup?
Here's a similar thread I posted to a while back. See post #2 in the thread:

http://www.linuxquestions.org/questi...light=firewall
 
Old 11-04-2006, 12:21 AM   #6
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
- i have checked that linked...can you pls explain to me how does this work.
Quote:
# ln -s /etc/init.d/firewall /etc/rc2.d/S20firewall
# ln -s /etc/init.d/firewall /etc/rc3.d/S20firewall
# ln -s /etc/init.d/firewall /etc/rc4.d/S20firewall
# ln -s /etc/init.d/firewall /etc/rc5.d/S20firewall
# /etc/init.d/firewall start
 
Old 11-04-2006, 11:42 AM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Those are "System V style" init scripts. I would recommend you do some LQ.org forum searches (or Google searches) on "init", "runlevel", "startup", "automatically execute a script", "boot sequence", and things like that. There have been many discussions and threads regarding what you are asking about. You can probably find more information, more quickly, searching these forums than anything I might be able to provide in a single post here. And discussion of startup scripting would fit better in it's own thread. It does not fit well under the current "iptables.conf" thread. People who know about runlevels and such may not be reading and responding to iptables threads.
 
  


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
Iptables with iptables-firewall.conf arno's matt3333 Slackware 16 06-28-2007 07:20 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs below_average Linux - Networking 1 12-08-2004 10:07 PM
SUSE 9.1: named.conf works, but including separate conf files doesn't??? registering Linux - Distributions 0 06-09-2004 04:03 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11: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