<div dir="ltr">Hi all,<br><div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-04 5:47 GMT-05:00 Eldon Kuzhyelil <span dir="ltr"><<a href="mailto:eldon.mec@gmail.com" target="_blank">eldon.mec@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br></div>I am using kubuntu 14.04 with lxc installed on it.I have created one lxc container and installed nginx webserver in that container and created a simple webpage displaying a welcome sentence.I am able to get this page when i enter the <a href="http://10.0.1.3" target="_blank">http://10.0.1.3</a> (ip address of the container).Now i want to display this webpage from another machine connected to the same wireless LAN.i have searched the bridgng techniques.But not able to do it.<br></div>Can anybody help me in this?<br><br></div></div></blockquote><div>There you go, just update/delete your iptables rules if container's ip changes or you stop using the service. <br><br>#echo 1 > /proc/sys/net/ipv4/ip_forward<br>#iptables -A FORWARD -j ACCEPT<br>#iptables -t nat -A PREROUTING -d ${HOST} -p tcp --dport 80 -j DNAT --to
${CONTAINER}:80 -m comment --comment "http to ${CONTAINER}"<br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div>Thank you<br></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><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Luis Michael Ibarra</div></div></div>
</div></div></div>