View previous topic :: View next topic |
Author |
Message |
ai Apprentice
Joined: 21 Mar 2004 Posts: 227 Location: Poland, Krk
|
Posted: Wed Jun 09, 2004 12:57 pm Post subject: konfiguracja iptables i ifconfig [Solved] |
|
|
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 |
|
|
badzio Tux's lil' helper
Joined: 16 May 2003 Posts: 144 Location: Lodz
|
Posted: Wed Jun 09, 2004 1:56 pm Post subject: |
|
|
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 |
|
|
ai Apprentice
Joined: 21 Mar 2004 Posts: 227 Location: Poland, Krk
|
Posted: Wed Jun 09, 2004 2:50 pm Post subject: |
|
|
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 |
|
|
Yarecki n00b
Joined: 26 Dec 2003 Posts: 58 Location: Poland - 3City
|
Posted: Wed Jun 09, 2004 5:46 pm Post subject: |
|
|
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 |
|
|
ai Apprentice
Joined: 21 Mar 2004 Posts: 227 Location: Poland, Krk
|
Posted: Thu Jun 10, 2004 1:43 pm Post subject: |
|
|
cos zes sie chyba spoznil troche [=
czytaj moj post nad twoim.... ;] _________________ just nothing |
|
Back to top |
|
|
|