<div dir="ltr">This seems like NAT issue on the host. Did you do "iptables -t nat -I -o lxcbrX -o phyY -j MASQUERADE"?<div><br></div><div>b.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 October 2015 at 11:25, <span dir="ltr"><<a href="mailto:sanyechong12@live.com" target="_blank">sanyechong12@live.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div>I use raw socket to send an ip packet and fill the source ip 5.5.5.5. I use tcpdump to capture it:</div><div><b><br></b></div><div><b> 15:01:29.385061 IP 5.5.5.5 > <a href="http://224.0.0.18" target="_blank">224.0.0.18</a>: VRRPv4, unknown type (9)</b></div><div><br></div><div>It works well.</div><div><br></div><div><br></div><div>But when I setns to a lxc and also send the packet:</div><div><br></div><div><b>15:03:41.724126 IP 10.28.50.198 > <a href="http://224.0.0.18" target="_blank">224.0.0.18</a>: VRRPv4, unknown type (9)</b></div><div><b><br></b></div><div>The source ip of the packet changed to "10.28.50.198" which is the ip of the interface. Seems like the IP_HDRINCL option not working, but the protocol is working.</div><div><br></div><div><br></div><div>Is there any method to make the source ip right?</div><div><br></div><div><br></div><div>Forgive my bad english.<br> <br>Best wishes <br>Shuai<br><a href="mailto:sanyechong12@live.com" target="_blank">sanyechong12@live.com</a> </div><div><br></div> </div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>