Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
konfiguracja iptables i ifconfig [Solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
ai
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 227
Location: Poland, Krk

PostPosted: Wed Jun 09, 2004 12:57 pm    Post subject: konfiguracja iptables i ifconfig [Solved] Reply with quote

czesc,
Mam taki problem z tymi dwiema rzeczami. Otoz co restart musze od nowa wpisywac regulki iptables i ustawiac ip netmask i broadcast na moim eth0.... Czy i jak da sie zapamietac te ustawienia? Trzeba dodac iptables do rc-update czy cos?
Z gory dzieki za pomoc.

poz.
_________________
just nothing ;)


Last edited by ai on Wed Jun 09, 2004 2:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
badzio
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2003
Posts: 144
Location: Lodz

PostPosted: Wed Jun 09, 2004 1:56 pm    Post subject: Reply with quote

jesli chodzi o ustawienia sieci (ifconfig), to procedura jest nastepujaca:
1) wpisujesz parametry sieci do pliku /etc/conf.d/net
2) dajesz rc-update add net.interfejs default (np rc-update add net.eth0 default)
jesli chodzi o iptables:
1) rc-update add iptables default
2) regulki:
a) mozesz wykorzystac do tego skrypt /etc/init.d/local (tam wpisujesz regulki iptables ktore chcesz zeby sie ladowaly)
b) mozesz stworzyc sobie wlasny skrypt w /etc/init.d ktory bedzie ladowal regulki firewall'a (ja tak wlasnie zrobilem)
_________________
gouranga;-)
Back to top
View user's profile Send private message
ai
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 227
Location: Poland, Krk

PostPosted: Wed Jun 09, 2004 2:50 pm    Post subject: Reply with quote

dzieki ;] Wszystko zrobilem do momentu z iptables. Tu troche pokombinowalem i zrobilem wszystko w conf.d i init.d. Czyli jak bedziemy chcieli zeby po starcie startowalo iptables z naszymi regulkami robimy tak:
-startujemy normalnie;
-uaktywniamy wszystkie regulki, ktore chcemy zeby uruchamialy sie przy starcie;
-dajemy /etc/init.d/iptables save
-dajemy rc-update add iptables default
-reboot i wszystko powinno sie zaladowac ;]

poz.
_________________
just nothing ;)
Back to top
View user's profile Send private message
Yarecki
n00b
n00b


Joined: 26 Dec 2003
Posts: 58
Location: Poland - 3City

PostPosted: Wed Jun 09, 2004 5:46 pm    Post subject: Reply with quote

1) regułki;
2) /etc/init.d/iptables save

Po każdej zmianie regułek robisz /etc/init.d/iptables save i wszystko śmiga.
_________________
Nigdy nie kloc sie z glupim, ludzie moga nie dostrzec roznicy.
Back to top
View user's profile Send private message
ai
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 227
Location: Poland, Krk

PostPosted: Thu Jun 10, 2004 1:43 pm    Post subject: Reply with quote

cos zes sie chyba spoznil troche [=
czytaj moj post nad twoim.... ;]
_________________
just nothing ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) 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