OpenVZ Forum


Home » General » Support » *SOLVED* internet access from VM
*SOLVED* internet access from VM [message #26195] Thu, 17 January 2008 01:43 Go to previous message
Thomasd is currently offline  Thomasd
Messages: 39
Registered: December 2007
Member
let's ping yahoo:

(from the hn)

# ping 216.109.112.135
PING 216.109.112.135 (216.109.112.135) 56(84) bytes of data.
64 bytes from 216.109.112.135: icmp_seq=1 ttl=49 time=80.5 ms

--- 216.109.112.135 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 80.597/80.597/80.597/0.000 ms


# vzctl enter 8010
entered into VE 8010

# ping 216.109.112.135
PING 216.109.112.135 (216.109.112.135) 56(84) bytes of data.

--- 216.109.112.135 ping statistics ---
37 packets transmitted, 0 received, 100% packet loss, time 36004ms



]# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:3108 (3.0 KiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.0.80.10  P-t-P:10.0.80.10  Bcast:10.0.80.10  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1


so, the VM can communicate back and forth with the HN, but not to the outside world.
To serve web pages: I use the pound reverse proxy to determine the source domain (a.com, b.com, etc) and connect to the appropriate VM; this works perfectly, but I would also like the VM to be able to initiate connections to the outside world. How do I go about this (while keeping the original structure with the proxy)?

[Updated on: Fri, 18 January 2008 05:30] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Another TUN/TAP topic :-)
Next Topic: default bandwidth limitation for venet?
Goto Forum:
  


Current Time: Tue Aug 27 13:24:55 GMT 2024

Total time taken to generate the page: 0.03430 seconds