Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: W1ck 13 Srpna 2007, 00:27:17
-
Zdravim
jsem v ubuntu novacek a snazim se rozchodit sdilene pripojeni k internetu. Vim ze to je resene v ruznych topicich tady ale nikde sem nenasel zadne tema ktere by pomohlo memu problemu. Zkousel sem hledat na ruznych zahranicnich forech ale nedosel sem ke kloudnemu vysledku. Nekde nekdo napsal ze se to da jednoduse udelat pres Firestarter [app-get install firestarter] ... firestarter sem uspesne nainstaloval pres wizard sem nastavil sdileni internetu. Jenze pri spusteni firewallu mi to vyhodi okenko s chybou : "Nemohu spustit firewall. Zarizeni eth1 neni pripraveno. Zkontrolujte prosim nastaveni sitovych zarizeni a zkontrolujte, ze je vase pripojeni k internetu aktivni" Internet mi funguje, vsechno slape jen nechapu proc eth1 neni pripraveno. Timto se chci zeptat jestli by nekdo neporadil a nepopsal nejak laicky nastaveni sdileni internetu ... popravde z toho co jsem nasel tady na foru sem toho moc nepochopil.
Sit je udelana takto: Internet ==> Ubuntu stanice ==> Switch ==> 4 klienti s WXP
predem dekuji a preji hezky den [noc ;p]
-
Co toto - http://forum.ubuntu.cz/viewtopic.php?id=3295?
-
Ubuntu stanice funguje jako router, routuje pakety mezi vnitrni siti se svistem a vnejsim svetem. Musi obsahovat dve sitova rozhrani. Jedno do internetu, druhe do vnitrni site. Mezi nimi se predavaji pakety. Hlaska "rozhrani eth1 neni pripraveno" by _MOHLA_ znamenat, ze vnitrni rozhrani nemate zkonfigurovane. Jen tak pro jistotu, mate na tom stroji dve sitove karty? Nebo jednu kartu a do internetu modem? Jestli ano, tak popis spusteni sitoveho rozhrani je tu opravdu uz mnohokrat.
-
mam jednu integrovanou sitovku chipset nvidia
a jednu v pci slotu realtek
-
Já routuju přes firewall Firestarter ;) Když to nainstalujete a spustíte, tak to má grafickýho wizarda pro nastavení ;)
-
Musita zjistit, jestli jsou obe aktivni, bud v GUI, nebo konzole, navody opet zde.
-
Já routuju přes firewall Firestarter ;) Když to nainstalujete a spustíte, tak to má grafickýho wizarda pro nastavení ;)
zkousel sem ale hodilo mi to chybu ze eth1 [interni sit] neni aktivni ... wizard je sice easy ale vazne se mi to nepovedlo
jak zjistim jestli je aktivni popr co je potreba poslat aby ste meli prehled? vypis z ifconfig
-
pošlete výpis: ifconfig
-
Je potřeba v nastavení povolit sítovky ;)
-
takze vypis ifconfig :
eth0 Zapouzdření:Ethernet HWadr 00:13:D4:36:70:0F
inet adr:10.0.4.52 Všesměr:10.0.4.255 Maska:255.255.255.0
inet6-adr: fe80::213:d4ff:fe36:700f/64 Rozsah:Linka
AKTIVOVÁNO VŠESMĚROVÉ_VYSÍLÁNÍ BĚŽÍ MULTICAST MTU:1500 Metrika:1
RX packets:84359 errors:0 dropped:0 overruns:0 frame:0
TX packets:50609 errors:0 dropped:0 overruns:0 carrier:0
kolizí:0 délka odchozí fronty:1000
Přijato bajtů: 122065041 (116.4 MiB) Odesláno bajtů: 4253924 (4.0 MiB)
Přerušení:18 Vstupně/Výstupní port:0x8000
eth1 Zapouzdření:Ethernet HWadr 00:E0:4C:7B:76:45
AKTIVOVÁNO VŠESMĚROVÉ_VYSÍLÁNÍ BĚŽÍ MULTICAST MTU:1500 Metrika:1
RX packets:109 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
kolizí:0 délka odchozí fronty:1000
Přijato bajtů: 26391 (25.7 KiB) Odesláno bajtů: 21362 (20.8 KiB)
Přerušení:17 Vstupně/Výstupní port:0xa000
eth1:avah Zapouzdření:Ethernet HWadr 00:E0:4C:7B:76:45
inet adr:169.254.6.27 Všesměr:169.254.255.255 Maska:255.255.0.0
AKTIVOVÁNO VŠESMĚROVÉ_VYSÍLÁNÍ BĚŽÍ MULTICAST MTU:1500 Metrika:1
Přerušení:17 Vstupně/Výstupní port:0xa000
lo Zapouzdření:Místní smyčka
inet adr:127.0.0.1 Maska:255.0.0.0
inet6-adr: ::1/128 Rozsah:Počítač
AKTIVOVÁNO SMYČKA BĚŽÍ MTU:16436 Metrika:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
kolizí:0 délka odchozí fronty:0
Přijato bajtů: 200 (200.0 b) Odesláno bajtů: 200 (200.0 b)
a jestlize teda plati to ze mam povolit sitovku ... to se dela jak? opet prosim o navod pro linuxlamku :]
-
Podle vypisu obe rozhrani pracuji, chyba bude v konfiguraci firewallu.
-
chyba bude urcite ve fw ... zkousel sem jak firestarter tak i firehol ... firehol sem zkousel nainstalovat a rozebehnout routrovani podle navodu jenze sem se dostal do faze kdy nesel internet jak v siti tak ani me :] nevedel sem jak to dat zpet tak sem reinstaloval cely ubuntu
delal sem vse podle http://forum.ubuntu.cz/viewtopic.php?id=3295 dostal sem se do situace kdy jsem pingoval klienta v interni siti a vse slo v poradku i on me pingnul jenze po nainstalovani fireholu a upraveni firehol.conf mi nesel internet ... ted me napada v tom nastaveni tady na foru jsou prevraceny udaje .. eth1 je u me eth0 tak mozna proto mi to neslo
zkusim to :]
-
Ve Feistym a Fireholu byl nějaký bug. Řešení je tu na fóru. Použijte vyhledávání. Jinak firehol se dá zastavit v konsoli:
sudo /etc/init.d/firehol stop
-
ja uz nevim :] resim to nekolik dni bohuzel nikdo z meho okoli neumi s linuxem ... uz vazne nevim holt se vratim k woknum i kdyz se mi nechce protoze ubuntu se mi libi a libi se mi prace s nim
-
zkusil sem to znova nainstalovat jenze mi to vyplivlo moc chyb ... nevim netusim jak uz dal
--------------------------------------------------------------------------------
ERROR : # 2.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internal_ssh_s1 -p tcp --sport 1024:65535 --dport 22 -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 3.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internal_ssh_s1 -p tcp --sport 22 --dport 1024:65535 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 4.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internal_all_c2 -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 5.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internal_all_c2 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 6.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internal_irc_c3 -p tcp --sport 32768:61000 --dport 6667 -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 7.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internal_irc_c3 -p tcp --sport 6667 --dport 32768:61000 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 8.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internal_ftp_c4 -p tcp --sport 32768:61000 --dport ftp -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 9.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internal_ftp_c4 -p tcp --sport ftp --dport 32768:61000 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 10.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internal_ftp_c4 -p tcp --sport ftp-data --dport 32768:61000 -m state '' --state ESTABLISHED\,RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 11.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internal_ftp_c4 -p tcp --sport 32768:61000 --dport ftp-data -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 12.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internal_ftp_c4 -p tcp --sport 32768:61000 --dport 1024:65535 -m state '' --state ESTABLISHED\,RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 13.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internal_ftp_c4 -p tcp --sport 1024:65535 --dport 32768:61000 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 14.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internal -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 15.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internal -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 16.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_external -p tcp -m state '' --state NEW \! --syn -j pr_external_nosyn
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 17.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_external_ssh_s1 -p tcp --sport 1024:65535 --dport 22 -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 18.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_external_ssh_s1 -p tcp --sport 22 --dport 1024:65535 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 19.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_external_all_c2 -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 20.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_external_all_c2 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 21.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_external_irc_c3 -p tcp --sport 32768:61000 --dport 6667 -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 22.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_external_irc_c3 -p tcp --sport 6667 --dport 32768:61000 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 23.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_external_ftp_c4 -p tcp --sport 32768:61000 --dport ftp -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 24.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_external_ftp_c4 -p tcp --sport ftp --dport 32768:61000 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 25.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_external_ftp_c4 -p tcp --sport ftp-data --dport 32768:61000 -m state '' --state ESTABLISHED\,RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 26.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_external_ftp_c4 -p tcp --sport 32768:61000 --dport ftp-data -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 27.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_external_ftp_c4 -p tcp --sport 32768:61000 --dport 1024:65535 -m state '' --state ESTABLISHED\,RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 28.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_external_ftp_c4 -p tcp --sport 1024:65535 --dport 32768:61000 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 29.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_external -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 30.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_external -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 31.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_incoming_dns_s1 -p udp --dport 53 -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 32.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_incoming_dns_s1 -p udp --sport 53 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 33.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_incoming_dns_s1 -p tcp --dport 53 -m state '' --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 34.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_incoming_dns_s1 -p tcp --sport 53 -m state '' --state ESTABLISHED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 35.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line FIN of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_incoming -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 36.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line FIN of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_incoming -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 37.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line FIN of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A INPUT -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 38.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line FIN of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A OUTPUT -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
--------------------------------------------------------------------------------
ERROR : # 39.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line FIN of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A FORWARD -m state '' --state RELATED -j ACCEPT
OUTPUT :
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `'
Stopped: Couldn't activate new firewall.
FireHOL: Restoring old firewall: OK
-
Pokud Vas to jeste uplne neotravilo:
Zakladem pri nastavovani site je prace _BEZ_ jakehokoliv firewallu. Nemusite se bat, ze za tu chvilku system nekdo zkompromituje, to je velmi nepravdepodobne. Takze odiinstalujte ty ruzne firy a holy a musite to udelat tak, aby se odstranily i konfiguracni soubory, ty tam totiz zustanou. Nejlepsi je to udelat pres aptitude: # sudo aptitude purge balik (pokud mate nainstalovanou)
Pokud mate pripojene sitove kabely, mel by v teto chvili jet internet a mel byste dokazat pinknout na stroje jak ve vnitrni , tak vnejsi siti. Ten Vas PC ted "sedi na dvou zidlich", vidi do obou siti, ale neroutuje.
Protze v deafultni instalaci Ubuntu je spusteno iptables a politika chainu "Forward" je nastavena na "ACCEPT", _MELO_ BY_ jit routovani spustit jednoduse:
# sudo echo 1 > /proc/sys/net/ipv4/ip_forward.
Bez zaruky.
Zkuste neco z toho, jestli mate naladu. Je to vsechno v konzoli, ale v grafice se to da udelat tezko, holt sousto pro kritiky linuxu / a maji pravdu.
-
No ono je těžké, když ani nevyzkoušíte vypnout ten firewall. Ani řádka, jestli to pomohlo či ne.
-
chtel bych se pripojit, mam podobny problem ... pouzivam firestarter, stejny problem jako W1ck na zacatku, jen jina architektura site :
internet < wifi > (eth0) laptop (eth1) < kabel > (eth0) desktop
na obou ubuntu feisty. na desktopu dostanu pridelenou z DHCP ip adresu v pohode, muzu se pripojit i na web server Apache2 na laptopu, ale net mi to porad nesdili :( kdyz zapnu firestarter tak taky nenajede a stejna chyba, eth1 neni pripraveno.
-
jdu to znova preinstalovat takze budu mit jen cisty ubuntu s nastavenim site eth0 od providera mohl by sem hodit nekdo postup jak to nastavit aby eth0 byl pristup na net a eth1 brana ?
-
takze ubuntu cerstve preinstalovano .. sit nastavena internet funguje .. stahnu si jen update zakladnich balicko cestinu poradnou a cekam na navod ... je mi jedno jestli to pujde pres fireHOL nebo pres firestarter jen prosim jestli mi nekdo bude psat navod prosim o kroky sem lama a vazne to potrebuju co nejjednoduseji a pokud mozno co jakej prikaz udela :] dekuji za schvivavost :]
-
# sudo echo 1 > /proc/sys/net/ipv4/ip_forward.
na tohle mi shell odpovedel:
w1ck@w1ck-desktop:~$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
bash: /proc/sys/net/ipv4/ip_forward: Permission denied
:[
-
Panove dal sem to .. uz mi na jedny stanici s WXP funguje net :D
pro uplnost a klid duse napis popis toho co sem udelal
takze na eth0 mam nastavenou ip od provider tzn do internetu
na eth1 mam nastavenou statickou ip: 192.168.0.1 a masku podsite: 255.255.255.0
DNS mam nastaveno podle providera 10.0.0.1
do terminalu sem zadal: "iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE" a pak "echo "1" > /proc/sys/net/ipv4/ip_forward"
na stanici s windows XP sem dal do ip adresy: 192.168.0.2 do masky 255.255.255.0 do brany 192.168.0.1 a DNS 10.0.0.1
pak sem z WXP zkusil pingnout ubuntu stanici .. OK pote sem z WXP pingnul seznam a pak si udelal bouli na hlave protoze sem skocil do stropu kdyz ping na seznam byl OK
ja vam moc a moc dekuji za snahu :]
-
dodatek:
do terminalu sem napsal gksudo gedit /etc/rc.localabych zeditoval soubor a dopsal do nej ty dva radky pred exit 0
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
exit 0prej to je kvuli tomu aby se maskarada zavadela ihned po startu :]
-
# sudo echo 1 > /proc/sys/net/ipv4/ip_forward.
na tohle mi shell odpovedel:
w1ck@w1ck-desktop:~$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
bash: /proc/sys/net/ipv4/ip_forward: Permission denied
:[
cau, zkousel jsem nastavni podle Tebe co uvadis v dalsich prizpevcich, ale pise mi to stejnou chybu "Permission denied" jak to Tobe psalo drive. Pri tom nastaveni kdy jsi to rozjel uz to tu chybu nenapsalo? Ja se snazim sdilet internet z LAN sitovky na WiFi a nejak mi to nejede...
-
zkus to psat v su
tzn v terminalu napis su a dopln heslo, bacha nelekej se kdyz budes psat nic se neobjevi, ani hvezdicky z woken jak sem byl zvyklejkdyz se zadari budes mit prenormalnim kurzorem {uzivatel@nazev}root
jo a kdybys neznal heslo tak se meni prikazem sudo passwd :] ale myslim ze to je jen na ciste nainstalovanejch linuxech ... tak daleko moje znalost nesaha a myslim ze zdejsi machri me jiste spravne opravi :]]
-
Na normalne nainstalovanem Ubuntu by uzivatel root nemel existovat, pokud to funguje takto, neco jste pri instalaci zmenili. Pak nefunguji prikazy, tak jak Vam nekdo radi, protze predpoklada standartni instalaci.
.