... | ... | @@ -36,7 +36,9 @@ lxc.hook.autodev: sh -c "modeprobe tun; cd ${LXC_ROOTFS_MOUNT}/dev; mkdir net; m |
|
|
* Now the iptables need to be configured in the container as follows:
|
|
|
* Add the following to the eth0 adapter in [`/etc/network/interfaces`]() (Do not forget to remove the top lines):
|
|
|
```bash
|
|
|
post-up iptables-restore < /etc/iptables.up.rules
|
|
|
auto eth0
|
|
|
iface eth0 inet dhcp
|
|
|
post-up iptables-restore < /etc/iptables.up.rules
|
|
|
```
|
|
|
* Backup this file so the rc.local can use this during startup (this is necessary because this is a bug in the container). To backup the file use `cp /etc/network/interfaces /etc/network/interfaces.bak`;
|
|
|
* No add the following code to [`/etc/rc.local`]():
|
... | ... | |