OpenVZ Forum


Home » General » Support » Leaking private IPs of container? (ISP complaint)
Leaking private IPs of container? [message #50605] Fri, 20 September 2013 15:08 Go to previous message
rala is currently offline  rala
Messages: 3
Registered: September 2013
Junior Member
I've just been informed that apparently my OpenVZ server in the datacenter leaks private IP addresses and announces them to the rest of the network.

What did I do wrong?

iptables

*nat
:PREROUTING ACCEPT [0:0]
## forward ports to container
-A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.1.5
# [...]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A POSTROUTING -s 192.168.1.0/25 -o eth0 -j SNAT --to-source <publicip>
COMMIT


sysctl

net.ipv4.conf.all.forwarding=1
net.ipv4.conf.all.rp_filter=1
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.promote_secondaries = 1
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.proxy_ndp = 1

[Updated on: Fri, 20 September 2013 23:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to set disk size? (CentOS 6.5)
Next Topic: Kernel panic when booting with Ubuntu OpenVZ kernel
Goto Forum:
  


Current Time: Fri Jul 04 16:54:38 GMT 2025

Total time taken to generate the page: 0.02055 seconds