Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Home-Router problemoni! [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Tintenstich
Apprentice
Apprentice


Joined: 25 Mar 2004
Posts: 192

PostPosted: Sun Jan 23, 2005 10:51 pm    Post subject: Home-Router problemoni! [RISOLTO] Reply with quote

Ciao a tutti , ho seguito la guida per il router-casalingo , tutto ok a parte qualche problemuccio.....

su /etc/conf.d/net : ifconfig_eth1=( "adsl" )
se provo a fare partire eth1 mi dice che "adsl" e' un host sconosciuto....
Quindi adsl non parte all'avvio , ma solo dopo " #adsl-setup e successivamente # adsl-start....

Comunque , dopo questo la box ottiene un IP dall' ISP e la seconda macchina ottiene un IP dal server dhcp installato sul router , il router va in internet, o almeno credo : ping www.google.it , mi risulta : www.google.akadns.org (o qualcosa di simile....).
Le macchine si pingano senza problemi ma la secondo non esce in internet ,
avete qualche idea??


Last edited by Tintenstich on Mon Jan 24, 2005 8:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31470
Location: here

PostPosted: Sun Jan 23, 2005 10:54 pm    Post subject: Reply with quote

Prova a mettere
Code:
 ifconfig_eth1=( "dhcp" )

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Sun Jan 23, 2005 10:59 pm    Post subject: Reply with quote

prima una domanda:

eth0=WAN; eth1=LAN o il contrario ?
ad ogni modo, quello che mi pare di capire, é che il tuo home-router non si comporta da gateway (come vorresti)... quindi mi sa che devi semplicemente abilitare il forwarding

echo 1 > /proc/sys/non-mi-ricordo-/ipv4/qualcosa-forwarding

e poi mipostare iptables con le regole appropriate.

Facci avere una situazione un po' piu' documentata della tua lan, perché alla cieca i consigli possono essere tanti, diversi, e non per forza azzeccati ;-)

Coda
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Mon Jan 24, 2005 2:12 am    Post subject: Reply with quote

O_o ma forwardare cosa?
mi è parso di capire che ha un router adsl connesso alla macchina..
non una macchina che funge da router (con due interfacce di rete)
oppure o capito male io?
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Jan 24, 2005 2:27 am    Post subject: Reply with quote

X-Drum wrote:
O_o ma forwardare cosa?
mi è parso di capire che ha un router adsl connesso alla macchina..
non una macchina che funge da router (con due interfacce di rete)
oppure o capito male io?


oddio, visto che dice che "ha seguito la guida per il router casalingo" e che ha "eth1" io ho capito proprio che ha un pc che fa da server... poi nulla di piu' facile che abbia capito male io ;-)

Coda
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Mon Jan 24, 2005 2:32 am    Post subject: Reply with quote

codadilupo wrote:

echo 1 > /proc/sys/non-mi-ricordo-/ipv4/qualcosa-forwarding


echo 1 > /proc/sys/net/ipv4/ip_forward
Back to top
View user's profile Send private message
Tintenstich
Apprentice
Apprentice


Joined: 25 Mar 2004
Posts: 192

PostPosted: Mon Jan 24, 2005 7:06 am    Post subject: Reply with quote

allora , per rispondere ed essere un po' piu' chiaro :
E' un computerino che fa router con due ethX , sulla base della guida " Home -router " .

Ho seguito tutti i passaggi come nella guida , compreso iptables e " echo 1 >/proc/sys......."

Quello che mi stupisce e' il fatto che al boot , nella console di logs (12) , cerca di connettersi , ma invano , poi facendo adsl-setup e adsl-start , finalmente si connette.....e sopratutto l' errore di
/etc/init.d/net.eth1 start : " adsl no lookup to host" ( o simile )....
Come gia detto , la rete funziona le macchine collegate ricevono un IP , si pingano tra di loro ma a parte il router non escono in internet.
Che sia un problema di dns? O una falsa tabella di IPtables?

Quindi avrei due domande: 1) Come riconoscere quale scheda e' eth0 o eth1 ?

2) A che serve dnsmasq?

Grazie per le risposte!!
Back to top
View user's profile Send private message
Tintenstich
Apprentice
Apprentice


Joined: 25 Mar 2004
Posts: 192

PostPosted: Mon Jan 24, 2005 4:53 pm    Post subject: Reply with quote

Aggiornato baselayout e rp-pppoe e la rete finalmente parte , ma gli host non escono in internet!
Ho installato netstat-nat e mi dice chiaramente che non ci sono connessioni .....a parte quelle sul router e quelle tra router e la mia macchina via ssh.

vi posto le regole di iptables , magari e' un problema di firewall:

Quote:

router linux # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT udp -- anywhere anywhere udp dpt:bootps reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:domain reject-with icmp-port-unreachable
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
DROP tcp -- anywhere anywhere tcp dpts:0:1023
DROP udp -- anywhere anywhere udp dpts:0:1023

Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere 192.168.0.0/24
DROP all -- anywhere 192.168.0.0/16
ACCEPT all -- 192.168.0.0/16 anywhere
ACCEPT all -- anywhere 192.168.0.0/16
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT all -- anywhere 192.168.0.0/24

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
router linux #



Che ne pensate????
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Mon Jan 24, 2005 5:43 pm    Post subject: Reply with quote

la regole di nat?

faccele vedere.

Posta la conf di IPTABLES

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
maninthebox1
Guru
Guru


Joined: 14 Nov 2004
Posts: 384
Location: ITALIA - L'AQUILA

PostPosted: Mon Jan 24, 2005 6:17 pm    Post subject: Reply with quote

ma hai provato con dhcp come diceva giustamente fedeliallalinea?!?!
Back to top
View user's profile Send private message
Tintenstich
Apprentice
Apprentice


Joined: 25 Mar 2004
Posts: 192

PostPosted: Mon Jan 24, 2005 8:43 pm    Post subject: Reply with quote

Allora , ho risolto mettendo "ppp0" al posto di "eth1" alle regole di iptables , ed aggiungendo "interface=eth0" a dnsmasq.

Le regole di iptables sono esattamente quelle della guida " home-router".

....ma ntop ha bisogno per forza di xorg????.......
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Jan 24, 2005 9:23 pm    Post subject: Reply with quote

Tintenstich wrote:
Allora , ho risolto mettendo "ppp0" al posto di "eth1" alle regole di iptables , ed aggiungendo "interface=eth0" a dnsmasq.


beh, capita ;-)

Quote:
....ma ntop ha bisogno per forza di xorg????.......


non credo... prova con: USE="-X" emerge -pv --tree ntop

Coda
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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