Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] problema server dedicato
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) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
heXen
Guru
Guru


Joined: 21 Jun 2004
Posts: 320

PostPosted: Thu Aug 11, 2005 8:37 am    Post subject: [OT] problema server dedicato Reply with quote

ciao, la mia rete è cosi composta
desktop: ip:192.168.0.1, collegato a Internet sulla ppp0 e in rete locale. Fa da gateway.
laptop: ip:192.168.0.2, collegato solo al desktop con un cavo cross sulle eth0.

quello che vorrei fare è hostare sul laptop (che ha più risorse hardware) un server per enemy territory accessibile da internet agli altri e dal desktop per me (giocherò qui perché c'è la nvidia).

sul laptop il firewall è disabilitato, sul desktop non credo ma non saprei dove mettere le mani, l'unica regole che c'è dovrebbe essere
Code:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE


il problema è che quando sul laptop è attivo un server dal desktop e da internet non ci si riesce a collegarsi. Pare non risponda.

come posso aggiustare?:wink:
_________________
Stamattina hanno suonato alla porta. Sono andato ad aprire e...
Ho scritto una Guida introduttiva a Jabber
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Thu Aug 11, 2005 10:08 am    Post subject: Re: [OT] problema server dedicato Reply with quote

devi fare un NAT, in particolare un DNAT.
ovviamente i servizi esportati dal portatile non possono essere visti sul lato WAN gateway, quindi devi abilitare appunto il DNAT (destination-NAT)
Back to top
View user's profile Send private message
GiRa
l33t
l33t


Joined: 07 Apr 2005
Posts: 717

PostPosted: Thu Aug 11, 2005 11:19 am    Post subject: Reply with quote

Leggi qui.

Considera che tu non devi usare NAT ma MASQUERADING perchè hai un indirizzo IP dinamico.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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