<div dir="ltr"><div>Hi,<br></div>I have followed that <a href="https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-network">https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-network</a> and changed my lxc config file like below<br><br><pre class="">lxc.network.type = veth
lxc.network.link = br0
<br><span style="font-family:arial,helvetica,sans-serif"><br></span></pre><pre class=""><span style="font-family:arial,helvetica,sans-serif"> and in my /etc/network/interfaces i have followed this link <a href="https://help.ubuntu.com/lts/serverguide/network-configuration.html#bridging">https://help.ubuntu.com/lts/serverguide/network-configuration.html#bridging</a><br></span></pre><pre class=""><span style="font-family:arial,helvetica,sans-serif">and my interface file looks like this now<br><br></span>auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address 192.168.0.10(my ip address when connected through ethernet)
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off<br><br></pre><p class="">
Now bring up the bridge:
</p>
<div class=""><pre class=""><span class="">sudo ifup br0<br><br><br><br></span></pre><pre class=""><span class=""><font face="arial,helvetica,sans-serif">But after rebooting i am still not able to connect to internet using ethernet or wifi.</font></span><span class=""><br><font face="arial,helvetica,sans-serif">What to do?<br><br></font></span></pre><pre class=""><span class=""><font face="arial,helvetica,sans-serif">I am using kubuntu 14.04 and i have installed nginx in one container and want that webpage from my lxc container to be visible in another laptop connected <br><br></font></span></pre><pre class=""><span class=""><font face="arial,helvetica,sans-serif">to my private LAN</font></span></pre><pre class=""><span class=""><font face="arial,helvetica,sans-serif">Thankyou</font></span> <br></pre></div><pre class=""><br></pre><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 8, 2015 at 6:09 PM, Luis Michael Ibarra <span dir="ltr"><<a href="mailto:michael.ibarra@gmail.com" target="_blank">michael.ibarra@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<br><div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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></span><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><span class="">
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">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></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr"><div>Luis Michael Ibarra</div></div></div>
</font></span></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>