<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">To start with, you have
inconsistencies between your config and interfaces. <span>10.0.0.15/8
would be netmask 255.0.0.0, broadcast 10.255.255.255. I'm not sure if
that makes a difference but you should probably be consistent and learn
what the prefix size means. You're using prefix=24 in interfaces and
prefix=8 in config.<br>
<br>
Now, the gateway (or router) is set to 10.0.0.1. Is this an actual
router that will forward the routes from 10.0.0.15 to a public
interface? How is the interface configured on the host? When you're
using a bridge, the container will connect directly to the router just
like the host, so the netmask, broadcast, and gateway should be the same
as the host in most circumstances.<br>
<br>
<br>
</span><br>
<blockquote style="border: 0px none;"
cite="mid:20150322115326.5933739d@kos.net" type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="geordi@kos.net" photoname="Geordie"
src="cid:part1.00080308.03010906@virtualcomplete.com"
name="compose-unknown-contact.jpg" height="25px" width="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:geordi@kos.net"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Geordie</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">Sunday, March 22,
2015 11:53 AM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>/etc/lxc/default.conf<br>lxc.utsname
=lsmb1<br>lxc.network.type=veth<br>lxc.network.flags=up<br>lxc.network.link=br0<br>lxc.network.hwaddr=ac:de:48:00:00:15<br>lxc.network.ipv4=10.0.0.15<br>lxc.id_map
= u 0 100000 65536<br>lxc.id_map = g 0 100000 65536<br><br>/etc/network/interfaces<br>#
The loopback network interface<br>auto lo<br>iface lo inet loopback<br><br>allow-hotplug
eth0<br>iface eth0 inet dhcp<br><br>auto br0<br>iface br0 inet static<br>
bridge_ports eth0<br> bridge_fd 0<br> address 10.0.0.15<br>
netmask 255.255.255.0<br> network 10.0.0.0<br> broadcast
10.0.0.255<br> gateway 10.0.0.1<br> bridge_maxwait 0<br><br>/var/lib/lxc/lsmb1/config<br>#
Distribution configuration<br>lxc.include =
/usr/share/lxc/config/debian.common.conf<br>lxc.include =
/usr/share/lxc/config/debian.userns.conf<br>lxc.arch = x86_64<br><br>#
Container specific configuration<br>lxc.utsname = lsmb1<br>lxc.id_map = u
0 100000 65536<br>lxc.id_map = g 0 100000 65536<br>lxc.rootfs =
/var/lib/lxc/lsmb1/rootfs<br>lxc.utsname = lsmb1<br><br># Network
configuration<br>lxc.network.type = veth<br>lxc.network.flags = up<br>lxc.network.link
= br0<br>lxc.network.hwaddr = ac:de:48:00:00:15<br>lxc.network.ipv4 =
10.0.0.15/8<br><br>/var/lib/lxc/lsmb1/rootfs/etc/network/interfaces<br><br>auto
lo<br>iface lo inet loopback<br><br>auto eth0<br>iface eth0 inet dhcp<br><br>lxc-info
-n lsmb1<br>Name: lsmb1<br>State: RUNNING<br>PID:
3366<br>IP: 10.0.0.15<br>CPU use: 1.27
seconds<br>BlkIO use: 92.30 MiB<br>Link: vethQINE7U<br>
TX bytes: 2.25 KiB<br> RX bytes: 19.37 KiB<br> Total bytes:
21.62 KiB<br><br>I can ping the container, and ssh from the container to
another<br>computer on the lan. I cannot access the WAN from the
container when I<br>ssh to the host from the container I get the hosts
root@laptop:~# I<br>find that strange<br><br>lxc: Installed: 1:1.0.7-1
Kernel: 3.16.0-4-amd64 x86_64 (64 bit) Debian<br>Unstable<br><br>So what
is needed to connect to the internet and I will admit that my<br>iptables-foo
knowledge is severely lacking <br><br>Thanks<br>Geordie<br><br><br><br>_______________________________________________<br>lxc-users
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br><a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div>
</blockquote>
</body></html>