# Build LEDE without IPv6

**URL:** <https://forum.openwrt.org/t/build-lede-without-ipv6/2043>\
**Category:** Installing and Using OpenWrt\
**Created:** [March 3, 2017, 12:27am UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043 "2017-03-03T00:27:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![itsnotv](https://forum.openwrt.org/user_avatar/forum.openwrt.org/itsnotv/32/562_2.png) [@itsnotv](https://forum.openwrt.org/u/itsnotv)\
**Post date:** [March 3, 2017, 12:27am UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/1 "2017-03-03T00:27:47Z")

</div>

Hello,

I am trying to use image-generator to build a light weight lede for W841ND (4MB flash).

make image PROFILE=tl-wr841-v9 PACKAGES="-odhcpd -odhcp6c -ip6tables"

Does anyone have a list of all the packages that I can exclude to completely remove ipv6? What else can be safely removed?

I want to create a build with openvpn client support.

---

<div class="post-metadata">

**Author:** ![Borromini](https://forum.openwrt.org/letter_avatar/borromini/32/6_449c533f586939b6e5f246632a46421f.png) [@Borromini](https://forum.openwrt.org/u/Borromini)\
**Post date:** [March 3, 2017, 2:09pm UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/2 "2017-03-03T14:09:31Z")

</div>

You're only partially stripping IPv6 support, e.g. `luci-proto-ipv6` should be stripped as well. A more comprehensive list can be found [here](https://wiki.openwrt.org/doc/howto/obtain.firmware.generate#addingmodifying_profiles) - no idea if it's exhaustive though.

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/6_449c533f586939b6e5f246632a46421f.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [May 3, 2017, 6:24pm UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/3 "2017-05-03T18:24:45Z")

</div>

@Borromini Where on the page you linked did you find a more comprehensive list of packages that can be removed to save space? I couldn't find any on the whole page, and once more the question comes up in another thread [Can I strip the IPv6 out with the imagebuilder?](https://forum.openwrt.org/t/can-i-strip-the-ipv6-out-with-the-imagebuilder/3465/2), what can be removed, with IPv6 support being one of the proposals. I'm now trying to collect bits and pieces of information, in order to update [https://lede-project.org/faq/before\_installation#which\_packages\_can\_i\_safely\_remove\_to\_save\_space](https://lede-project.org/faq/before_installation#which_packages_can_i_safely_remove_to_save_space).

---

<div class="post-metadata">

**Author:** ![Borromini](https://forum.openwrt.org/letter_avatar/borromini/32/6_449c533f586939b6e5f246632a46421f.png) [@Borromini](https://forum.openwrt.org/u/Borromini)\
**Post date:** [May 6, 2017, 7:22pm UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/4 "2017-05-06T19:22:46Z")

</div>

@tmomas I checked the previous revision, that doesn't contain it either. I might have linked to the wrong page... If I find it I'll give you a heads up.

Cheers

Borromini

---

<div class="post-metadata">

**Author:** ![braian87b](https://forum.openwrt.org/user_avatar/forum.openwrt.org/braian87b/32/924_2.png) [@braian87b](https://forum.openwrt.org/u/braian87b)\
**Post date:** [May 16, 2017, 4:27am UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/5 "2017-05-16T04:27:41Z")

</div>

From:

> [@D-link dir-615 c1 with luci-app-sqm](https://forum.openwrt.org/t/d-link-dir-615-c1-with-luci-app-sqm/3735/3):
>
> Flash with a stable release first in which one you will base your build (I do not recommend to play with trunk builds)... do a opkg list-installed and save that list for yourself and investigate the dependencies (usually are very easy to see, (you need to create a list of not-needed packages as you described... example on ChaosCalmer opkg list-installed: base-files busybox dnsmasq dropbear firewall fstools hostapd-common ip6tables iptables iw jshn jsonfilter kernel kmod-ath kmod-ath9k kmod-at…

`make image PROFILE=XXXXXXXX PACKAGES="-ip6tables -kmod-ip6tables -kmod-ipv6 -kmod-nf-conntrack6 -kmod-nf-ipt6 -libip6tc -luci-proto-ipv6 -odhcp6c -odhcpd"`

---

<div class="post-metadata">

**Author:** ![anon43134599](https://forum.openwrt.org/letter_avatar/anon43134599/32/6_449c533f586939b6e5f246632a46421f.png) [@anon43134599](https://forum.openwrt.org/u/anon43134599)\
**Post date:** [August 11, 2017, 10:29am UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/6 "2017-08-11T10:29:40Z")

</div>

Im getting this error when trying to compile while removing the IPv6 modules. Any ideas?  
make image PROFILE=tl841 PACKAGES="-ip6tables -kmod-ip6tables -kmod-ipv6 -kmod-nf-conntrack6 -kmod-nf-ipt6 -libip6tc -luci-proto-ipv6 -odhcp6c -odhcpd"  
make[1]: Entering directory `/home/user/source' make[1]: *** No rule to make target`image'. Stop.  
make[1]: Leaving directory `/home/user/source'  
make: \*\*\* [image] Error 2

---

<div class="post-metadata">

**Author:** ![dlang](https://forum.openwrt.org/user_avatar/forum.openwrt.org/dlang/32/50336_2.png) [@dlang](https://forum.openwrt.org/u/dlang)\
**Post date:** [August 11, 2017, 3:42pm UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/7 "2017-08-11T15:42:52Z")

</div>

That means that something else is turning it on, hit '?' to see what other  
modules turn it on via the dependency resolution. Then go and turn them all off  
(there may be multiple layers of dependencies here)

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/6_449c533f586939b6e5f246632a46421f.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [August 11, 2017, 6:05pm UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/8 "2017-08-11T18:05:43Z")

</div>

> [@anon43134599](#):
>
> PROFILE= **tl841**

**This** does not exist.

---

<div class="post-metadata">

**Author:** ![anon43134599](https://forum.openwrt.org/letter_avatar/anon43134599/32/6_449c533f586939b6e5f246632a46421f.png) [@anon43134599](https://forum.openwrt.org/u/anon43134599)\
**Post date:** [August 11, 2017, 7:24pm UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/9 "2017-08-11T19:24:40Z")

</div>

My bad, I thought I had to put the name of the config I created. Sorry.  
edit getting this now  
[![](https://i.imgur.com/yFH5at7.png) ](https://i.imgur.com/yFH5at7.png)  
[![](https://i.imgur.com/ytnrTAm.png) ](https://i.imgur.com/ytnrTAm.png)  
Ran it both as user and sudo.

For the record I did 'make defconfig', then 'make menuconfig', opened the config I had saved, saved it again then:  
make image PROFILE=tplink841v9 PACKAGES="-ip6tables -kmod-ip6tables -kmod-ipv6 -kmod-nf-conntrack6 -kmod-nf-ipt6 -libip6tc -luci-proto-ipv6 -odhcp6c -odhcpd".

---

<div class="post-metadata">

**Author:** ![xssa](https://forum.openwrt.org/letter_avatar/xssa/32/6_449c533f586939b6e5f246632a46421f.png) [@xssa](https://forum.openwrt.org/u/xssa)\
**Post date:** [August 11, 2017, 9:01pm UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/10 "2017-08-11T21:01:40Z")

</div>

> [@anon43134599](#):
>
> Ran it both as user and sudo.

This is a main problem due owners conflicts in temp and stamp files. Better is to start from scratch as regular user.

---

<div class="post-metadata">

**Author:** ![anon43134599](https://forum.openwrt.org/letter_avatar/anon43134599/32/6_449c533f586939b6e5f246632a46421f.png) [@anon43134599](https://forum.openwrt.org/u/anon43134599)\
**Post date:** [August 12, 2017, 6:57am UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/11 "2017-08-12T06:57:05Z")

</div>

Cool thanks

---

<div class="post-metadata">

**Author:** ![luizvaz](https://forum.openwrt.org/user_avatar/forum.openwrt.org/luizvaz/32/1444_2.png) [@luizvaz](https://forum.openwrt.org/u/luizvaz)\
**Post date:** [September 6, 2017, 1:17pm UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/12 "2017-09-06T13:17:28Z")

</div>

When you are using _complete build_ and not the _imagebuilder_ like in the thread [Build for TP-Link TL-WR841N(D) [all versions]](https://forum.openwrt.org/t/build-for-tp-link-tl-wr841n-d-all-versions/428/37) you need to call _make menuconfig_ and remove IPV6 by hand.

You cand find this option in _menuconfig_ at **/Global build settings/Enable IPv6 support in packages**.

Check if you removed all IPv6 packages too, like **/LuCI/protocols/luci-proto-ipv6**.

---

<div class="post-metadata">

**Author:** ![psherman](https://forum.openwrt.org/letter_avatar/psherman/32/6_449c533f586939b6e5f246632a46421f.png) [@psherman](https://forum.openwrt.org/u/psherman)\
**Post date:** [November 26, 2024, 8:28am UTC](https://forum.openwrt.org/t/build-lede-without-ipv6/2043/15 "2024-11-26T08:28:23Z")

</div>

Closed on November 26, 2024, 8:28am UTC


