You are not logged in.

#1 2006-03-18 20:29:54

EAD
Member
Registered: 2006-03-11
Posts: 255

iptables

Hii, How can I enable iptables to run at boot and use the config I gave it please?

Offline

#2 2006-03-19 00:03:05

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: iptables

Google is your friend, there are hundreds of ways to do it.

Offline

#3 2006-03-19 01:33:16

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: iptables

add iptables to your DAEMONS() array in /etc/rc.conf

Offline

#4 2006-03-19 02:04:52

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: iptables

[retracted slap!]

try..
cd /etc/iptables
touch iptable.rules  (or whatever it should be)
/etc/rc.d/iptables save (this saves your loaded rules set to the file above)
then add iptables to your daemons array. that should be it.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2006-03-19 02:15:43

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: iptables

cactus wrote:

cd /etc/iptables
touch iptable.rules  (or whatever it should be)
/etc/rc.d/iptables save (this saves your loaded rules set to the file above)

curious, why would you need to do this if he already has a config?

Offline

#6 2006-03-19 02:26:41

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: iptables

I assumed he meant, that he manually configured his ruleset, and needed to know how to save it, as well as how to have iptabes use that at startup.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#7 2006-03-19 07:41:21

EAD
Member
Registered: 2006-03-11
Posts: 255

Re: iptables

Yep Tanx guys, I am an Idiot:)
there is a good WIKI on this

Offline

Board footer

Powered by FluxBB