Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
firestarter / iptables and reboots
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MOS-FET
Apprentice
Apprentice


Joined: 20 May 2003
Posts: 291
Location: Cologne, Germany

PostPosted: Thu Aug 21, 2003 7:08 am    Post subject: firestarter / iptables and reboots Reply with quote

hello,
i've emerged firestarter + iptables. when i start firestarter, config everything like i want it works perfectly. firewall is up and running. but how the heck do i save the firewall rules and load them at boot? currently, i've tried this:

start firestarter, config everything, start firewall
/etc/init.d/iptables save to save firewall rules
rc-update add iptables default

this seems to work, when i reboot, iptables is started at boot. but when i then try to browse, it can't reach ANY sites, i'm just totally blocked! am i doing the wrong thing? where are the firewall rules saved? thanks for your help!
Back to top
View user's profile Send private message
MrPyro
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2003
Posts: 121
Location: Sheffield, England

PostPosted: Thu Aug 21, 2003 2:21 pm    Post subject: Reply with quote

The firewall rules are saved in /var/lib/iptables/rules-save, but the format of that file is a little incomprehensible, especially if you're used to a GUI like firestarter (iptables rules are horrible to read).

As far as I'm aware, the process you've used to save the rules is correct (in fact, I just suggested similar steps to somebody in a different forum).
_________________
Back off man, I'm a computer scientist
Back to top
View user's profile Send private message
MrPyro
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2003
Posts: 121
Location: Sheffield, England

PostPosted: Thu Aug 21, 2003 2:35 pm    Post subject: Reply with quote

Does anything get logged in /var/log/syslog when you try to access the outside world?
_________________
Back off man, I'm a computer scientist
Back to top
View user's profile Send private message
JBapt
n00b
n00b


Joined: 08 Aug 2003
Posts: 9

PostPosted: Thu Aug 21, 2003 3:19 pm    Post subject: Reply with quote

Check your input policies... they must be in reject

Code:
iptables -L
Back to top
View user's profile Send private message
MOS-FET
Apprentice
Apprentice


Joined: 20 May 2003
Posts: 291
Location: Cologne, Germany

PostPosted: Thu Aug 21, 2003 4:58 pm    Post subject: Reply with quote

hmm as far as i know iptables saves the rules in /var/lib/iptables/rules-save when i do an /etc/init.d/iptables save. i've looked into this file, and it seems that iptables somehow also saves my current ip address. could that be the reason? i mean, iptables is creating all rules specifically for my current ip address, and when i reboot, i have another ip addr and i can't get trough the firewall anymore. i've now created the iptables rules with firehol which works perfectly when i run "firehol start". could i rc-update add firehol? there's no firehol script in /etc/init.d. can i put a link there?

thanks
tom
Back to top
View user's profile Send private message
kyck-ling
n00b
n00b


Joined: 30 Aug 2003
Posts: 1

PostPosted: Sat Aug 30, 2003 2:32 pm    Post subject: Reply with quote

any solution to this? i have exactly the same problem...
Back to top
View user's profile Send private message
TheWart
Guru
Guru


Joined: 10 May 2002
Posts: 432
Location: Nashville,TN - USA

PostPosted: Sat Aug 30, 2003 3:15 pm    Post subject: Reply with quote

That is odd.

I use shorewall, and I am able to simply:

rc-update add shorewall default
_________________
Face it, we are all noobs.

On the box it said it was designed for Win XP or better, so why won't it work with Linux?
Back to top
View user's profile Send private message
d3c3it
l33t
l33t


Joined: 01 Mar 2003
Posts: 765
Location: Manchester, UK

PostPosted: Sat Sep 06, 2003 5:00 pm    Post subject: Reply with quote

MrPyro wrote:
Does anything get logged in /var/log/syslog when you try to access the outside world?


for some reason firestarter says syslog doesnt exist ?
_________________
Some people go to counselling,
others use linux
Back to top
View user's profile Send private message
SmokeX
n00b
n00b


Joined: 28 Jul 2003
Posts: 40

PostPosted: Sat Sep 06, 2003 5:08 pm    Post subject: Reply with quote

check the iptables policy using
Code:

iptables -L


to set the policy use
Code:

iptables -P OUTPUT ACCEPT
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT

each for each chain
also try to "Flush" the rules table if there's any rule that blocking ya...
Code:

iptables -F OUTPUT
...
etc.


generaly i prefer to use my own ruleset and not some GUI's rules,
and add the ruleset to rc-update.

learn about iptables
# man iptables

SmokeX.
Back to top
View user's profile Send private message
d3c3it
l33t
l33t


Joined: 01 Mar 2003
Posts: 765
Location: Manchester, UK

PostPosted: Sat Sep 06, 2003 6:31 pm    Post subject: Reply with quote

SmokeX wrote:
check the iptables policy using
Code:

iptables -L


to set the policy use
Code:

iptables -P OUTPUT ACCEPT
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT

each for each chain
also try to "Flush" the rules table if there's any rule that blocking ya...
Code:

iptables -F OUTPUT
...
etc.


generaly i prefer to use my own ruleset and not some GUI's rules,
and add the ruleset to rc-update.

learn about iptables
# man iptables

SmokeX.

the problem was this actually
https://forums.gentoo.org/viewtopic.php?t=59506&highlight=firestarter

i was using a gui firewall as it seemed to be easier? its turned out not to be seen as the rules i made with it have stopped me from using rsync and any im's. im going to try and make my own manually i think
_________________
Some people go to counselling,
others use linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum