LinuxQuestions.org
Register a domain and help support LQ
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 03-05-2009, 02:20 AM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Rep: Reputation: 32
Question Need help restoring iptables rules made by firestarter


I have some detailed rules that are made by the program Firestarter:

http://www.tyler.mcadams.com/iptables.txt

When Firestarter is started the rules look like they do above but Firestarter does not want to start with the system and the rules get flushed at reboot.

I want to use the rules made be Firestarter but when I do iptables-restore > iptables.txt the rules look different:

[root@Fedora tylerm]# iptables-save
# Generated by iptables-save v1.4.1.1 on Thu Mar 5 03:18:08 2009
*nat
:PREROUTING ACCEPT [26:8300]
:POSTROUTING ACCEPT [1:44]
:OUTPUT ACCEPT [1:44]
COMMIT
# Completed on Thu Mar 5 03:18:08 2009
# Generated by iptables-save v1.4.1.1 on Thu Mar 5 03:18:08 2009
*mangle
:PREROUTING ACCEPT [26:8300]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1:44]
:POSTROUTING ACCEPT [1:44]
COMMIT
# Completed on Thu Mar 5 03:18:08 2009
# Generated by iptables-save v1.4.1.1 on Thu Mar 5 03:18:08 2009
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1:44]
COMMIT
# Completed on Thu Mar 5 03:18:08 2009

################################################3

The firewall is down like this - any suggestions?
 
Old 03-05-2009, 02:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
Originally Posted by Thaidog View Post
I want to use the rules made be Firestarter but when I do iptables-restore > iptables.txt the rules look different
Run 'iptables-restore < iptables.txt'?
 
Old 03-05-2009, 03:48 AM   #3
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by unSpawn View Post
Run 'iptables-restore < iptables.txt'?
[root@Fedora tylerm]# iptables-restore < iptables.bak

[root@Fedora tylerm]# iptables-save

# Generated by iptables-save v1.4.1.1 on Thu Mar 5 04:48:06 2009
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [4342:699895]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A INPUT -p icmp -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Thu Mar 5 04:48:06 2009


I think I just mistyped that. my bad.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot get even the simplest of (self made) udev rules to work DiBosco Linux - General 10 11-30-2008 02:12 PM
are iptable rules same as firestarter? gimmee Ubuntu 1 06-16-2007 04:30 AM
iptables 1.27a still loading rules after installing iptables 1.3.0 yawe_frek Linux - Software 1 06-07-2007 09:50 PM
manually adding rules w/ firestarter installed jonfa Linux - Security 1 03-11-2007 12:34 PM
Using Firestarter ... Can I Add/Drop rules from a terminal prompt? rickh Linux - Security 1 06-15-2005 03:21 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration