OpenVZ Forum - RDF feed
type: channel
items: Networking with OpenVz on Debian
items: Re: Networking with OpenVz on Debian
items: Re: Networking with OpenVz on Debian [Solved]

Networking with OpenVz on Debian
type: item
description: Hi every body, Tank you for your help (I am sorry but my english is very bad.) Well, I have OpenVz mount at Debian lenny this work very good but now I made a change in my Internet configuration and my CT do not have internet access. I have this on my OpenVzSERVER: eth0 Link encap:Ethernet HWaddr 00:0b:6a:94:54:88 inet addr:192.168.2.15 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::20b:6aff:fe94:5488/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2214523 errors:0 dropped:0 overruns:0 frame:0 TX packets:2034759 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1189111524 (1.1 GiB) TX bytes:998419042 (952.1 MiB) Interrupt:19 Base address:0xd400 eth1 Link encap:Ethernet HWaddr 00:21:91:90:8e:7d inet addr:192.168.150.2 Bcast:192.168.150.7 Mask:255.255.255.248 UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17 Base address:0xd000 eth2 Link encap:Ethernet HWaddr 00:08:54:27:1d:b8 inet addr:190.145.2.YYY Bcast:190.145.2.239 Mask:255.255.255.248 inet6 addr: fe80::208:54ff:fe27:1db8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5053 errors:0 dropped:0 overruns:0 frame:0 TX packets:34116 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1046571 (1022.0 KiB) TX bytes:9614680 (9.1 MiB) Interrupt:18 Base address:0xcc00 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:42897 errors:0 dropped:0 overruns:0 frame:0 TX packets:42897 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4394719 (4.1 MiB) TX bytes:4394719 (4.1 MiB) venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 RX packets:43510…
creator: ceduardo
date: 2009-07-10T00:48:45-00:00

Re: Networking with OpenVz on Debian
type: item
description: Hello, could you please describe why you need the following rule? Quote: iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth2 -j MASQUERADE
creator: maratrus
date: 2009-07-13T12:11:15-00:00

Re: Networking with OpenVz on Debian [Solved]
type: item
description: Hi thansk for you answer, I have this line for the redirection from internal LAN to eth2 # Al firewall tenemos acceso desde la red local iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth2 -j MASQUERADE But this line have a problem, because my internal LAN is 192.168.2.0/24 and not 192.168.0.0/24 I can solve this problem making this change on the same line. Where be 192.168.0.0/24 change to 192.168.2.0/24 # Al firewall tenemos acceso desde la red local iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth2 -j MASQUERADE Thanks every body!!!
creator: ceduardo
date: 2009-07-13T14:38:39-00:00