OpenVZ Forum


Home » Mailing lists » Users » VE using wrong IP for outgoing connections
Re: VE using wrong IP for outgoing connections [message #8733 is a reply to message #8732] Mon, 04 December 2006 23:03 Go to previous message
Jan Tomasek is currently offline  Jan Tomasek
Messages: 44
Registered: December 2006
Member
Jan Tomasek wrote:
> I just realized that my VEs are is using IP address of HW node for
> connections initiated from inside of VE, except of their own. For example:

My fault! I just realized it was because:

modprobe ipt_MASQUERADE
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

I added those directives to my FW startup script because of VE which is
using private IP range - it is supposed to have access to network but
should not be reachable on public IP (to save IP) because it provide no
services.

Sorry for meaningless mail on the list.

--
-----------------------
Jan Tomasek aka Semik
http://www.tomasek.cz/
 
Read Message
Read Message
Previous Topic: mount ext3 file system inside VE
Next Topic: iptables are not working under 2.6.18-028test005.1 in VE
Goto Forum:
  


Current Time: Sat Oct 11 14:24:10 GMT 2025

Total time taken to generate the page: 0.19928 seconds