View previous topic :: View next topic |
Author |
Message |
heXen Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 21 Jun 2004 Posts: 320
|
Posted: Thu Aug 11, 2005 8:37 am Post subject: [OT] problema server dedicato |
|
|
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 :wink:](images/smiles/icon_wink.gif) _________________ Stamattina hanno suonato alla porta. Sono andato ad aprire e...
Ho scritto una Guida introduttiva a Jabber |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Thu Aug 11, 2005 10:08 am Post subject: Re: [OT] problema server dedicato |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
GiRa l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 07 Apr 2005 Posts: 717
|
Posted: Thu Aug 11, 2005 11:19 am Post subject: |
|
|
Leggi qui.
Considera che tu non devi usare NAT ma MASQUERADING perchè hai un indirizzo IP dinamico. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|