About this list Date view Thread view Subject view Author view Attachment view

From: Luís Miguel Silva (lms_at_ispgaya.pt)
Date: Fri 01 Nov 2002 - 13:43:07 GMT


I had the same problem you did.

I was only able to resolve it by allowing FORWARDING and SNAT'ting the
connections made from the vservers to a external IP.

Try it:
iptables -A POSTROUTING -t nat -s insert.vserver.ip.here -d 0/0 -j SNAT --to
insert.internet.ip.here

Regards,
+-----------------------------------------
| Luís Miguel Silva
| Network Administrator@ ISPGaya.pt
| Rua António Rodrigues da Rocha, 291/341
| Sto. Ovídio • 4400-025 V. N. de Gaia
| Portugal
| T: +351 22 3745730/3/5 F: +351 22 3745738
| G: +351 93 6371253 E: lms_at_ispgaya.pt
| H: http://lms.ispgaya.pt/
+-----------------------------------------

-----Mensagem original-----
De: Debby [mailto:debby_at_aachenconsulting.de]
Enviada: quinta-feira, 6 de Fevereiro de 2003 12:22
Para: vserver_at_solucorp.qc.ca
Assunto: [vserver] How can I access the internet from a vserver?

How can I access the internet and intranet from inside a vserver?
Here is the setting:
  Internet (IN) <--> (hardware) Router (R) <--> 2 PCs (A,B)
-> Installed on PC 'A' is Woody (unstable) (IP 192.168.0.10) with one
vserver ('V') also with Woody (unstable) (IP 192.168.0.23).
-> Installed on PC 'B' is Woody (stable) (IP 192.168.0.20).
-> The gateway/router has the IP 192.168.0.1.
What I would like is to access the internet and PC 'A' and 'B' from the
vserver. Whatever I do it is not possible. I tried to change the
routing-table etc. To update the vserver I have to give it the same IP as PC
'A' ('*.10*') and change it back to '*.23' later using 'vserver V start /
stop' in this context. Also I would like to access the vserver from the
outside - from PC 'A' and 'B' (e.g. apache, mail, ...). Do I need to do
something like: Internet (IN) <--> (hardware) Router (R) <--> NAT/MASQ on
PC
(A) <--> vserver (V)?
Also I am intersted in knowing if it is possible to run KDE on PC 'A' and
GNOME on the vserver 'V' with them showing up on different consols. Is it at
all possible to run X on the main server and on the vserver(s)? What about
two or more vserver running X-applications ...?

Thanks a lot,
Debby


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 06 Feb 2003 - 13:51:28 GMT by hypermail 2.1.3