<div>Ok, i added the change to lxcbr0-up file and saved. I went back and used brctl to add in the info you gave before but when i run ifup lxcbr0 i get:</div>
<div> </div>
<div>dnsmasq:bad command line options: try --help<br><br>Seems as if there is some wrong network info i may have entered somewhere on my end. Just wanted to ask if this looked like a familiar error to ya?</div>
<div> </div>
<div class="gmail_quote">On Sat, Jun 4, 2011 at 9:11 PM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@canonical.com">serge.hallyn@canonical.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">Quoting matthew byers (<a href="mailto:faintstlsaint@gmail.com">faintstlsaint@gmail.com</a>):<br></div>
<div class="im">> here is what i got when i ran last command:<br>><br>> stlsaint@stlsaint-devcore:~$ sudo /opt/bin/lxcbr0-up<br>> iptables v1.4.4: host/network `' not found<br><br></div>Oh, fudge. The problem is I told you (in the blog post) to do<br>
<br>cat > file << EOF<br>hack hack $var hack hack<br>EOF<br><br>but when you do that $var gets substituted! So your script has<br><br> '/24'<br><br>instead of<br><br> '${braddr}/24'<br>
<br>Please open /opt/bin/lxcbr0-up in an editor, clear it out, and paste in:<br>
<div class="im"><br>#!/bin/sh<br># This is the address we assigned to our bridge in /etc/network/interfaces<br></div>braddr=192.168.30.1<br>
<div class="im"># ip address range for containers<br></div>brrange=192.168.30.2,192.168.30.254<br>iptables -A FORWARD -i lxcbr0 -s ${braddr}/24 -m conntrack --ctstate NEW -j ACCEPT<br>
<div class="im">iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT<br>iptables -A POSTROUTING -t nat -j MASQUERADE<br></div>dnsmasq --bind-interfaces --conf-file= --listen-address $braddr --except-interface lo --dhcp-range $brrange --dhcp-lease-max=253 --dhcp-no-override<br>
<br>Hopefully that's the last of my blog posting booboos for now, and it'll<br>now work for you.<br><font color="#888888"><br>-serge<br></font></blockquote></div><br><br clear="all"><br>-- <br>God Bless<br>