'''Range blocks''' are technical restrictions applied through [[Special:Block]] to a group of [http://en.wikipedia.org/wiki/IP_addresses IP addresses] that prevent them from editing, creating new accounts, sending email through the wiki interface, et cetera. Registered accounts editing from these IP addresses will also be blocked, unless you check the box to only block anonymous editors.

+

−

Range blocking is enabled on all [http://en.wikipedia.org/wiki/Wikimedia_Foundation Wikimedia] wikis; to enable it on other wikis, add "<code>{{mediawiki|Manual:$wgSysopRangeBans|$wgSysopRangeBans}} = true;</code>" in <tt>{{mediawiki|Manual:LocalSettings.php|LocalSettings.php}}</tt>.

+

Funtoo Linux has a number of forked packages, and sometimes these packages can get out-of-date relative to Gentoo Linux. Periodically, we need to update ebuilds in Funtoo Linux so that they are current. To make this task easier, we have an automated script that compares versions of forked ebuilds in Funtoo Linux to those in Gentoo Linux.

−

To block an IP range from [[Special:Block]], enter the first IP address in the range followed by a forward slash and a [http://en.wikipedia.org/wiki/Classless_inter-domain_routing Classless inter-domain routing] (CIDR) suffix. '''You should avoid performing range blocks unless you understand what you are doing, or you may end up blocking tens of thousands of people who are not the problem!'''

+

Here's how it works: Below, you can see a list of all ebuilds in Gentoo Linux that have higher version numbers than those in Funtoo Linux. This list is updated ''hourly''.

Some of these ebuilds may be intentionally kept at earlier versions, although in general, we want to update ebuilds to the most recent version that works reliably. Here are some technical caveats:

−

IP address are broken up into blocks of numbers. The most common block is 256 numbers. An example of this would be <tt>148.20.57.0</tt> thru <tt>148.20.57.255</tt>. Once it reaches <tt>255</tt> the next number is <tt>148.20.58.0</tt>.

+

−

IP addresses can be broken up in to smaller or larger blocks. The smallest practical block is a block of 4. This could be one of the following:

+

* Rev parts of ebuilds ("<tt>-rX</tt>") are not considered in version comparisons, since sometimes Gentoo and Funtoo revisions are not analogous.

+

* Masks are not used for this version comparison. The latest unmasked or masked version in Gentoo is compared against the latest masked or unmasked version in Funtoo.

−

:<tt>148.20.57.0 - 148.20.57.3</tt>, or

+

== How To Help ==

−

:<tt>148.20.57.4 - 148.20.57.7</tt>, or

+

−

:<tt>148.20.57.8 - 148.20.57.11</tt>, etc.

+

−

Of each block of 4 numbers, only two can be assigned to a computer. The first and last numbers of any block are reserved for network communication. These are level 30 blocks and can be expressed like this:

+

Here's how you can help: If you see an package above that appears to be out-of-date, and you believe we should update to a newer version, [http://bugs.funtoo.org open a bug] on the Funtoo bug tracker. We can look into the ebuild and will give you feedback on whether we feel a new version of the ebuild should be added.

−

:<tt>148.20.57.0/30</tt>, or

+

If there is some consensus that it should be updated, then generally Funtoo staff will update the ebuild for you, since generally we are familiar with why the ebuild was forked and be able to efficiently update the package to the most recent version.

−

:<tt>148.20.57.4/30</tt>, or

+

−

:<tt>148.20.57.8/30</tt>, etc.

+

−

The next largest block is 8. They can be as follows:

+

However, in some cases it may be possible for you can also help with the update process, if you are so inclined, by forking the [https://github.com/funtoo/funtoo-overlay funtoo-overlay on GitHub] and working on updating the ebuild yourself. Reference your commits in a bug report on our bug tracker. If you are going to help with ebuild writing, it's important to first familiarize yourself with why we forked the ebuild in the first place. The best way to dig up information on the history of the forked Funtoo package is to type "<tt>git log .</tt>" in the ebuild directory. This will show log information for the package only, and you can look at the history of the ebuild.

−

:<tt>148.20.57.0 - 148.20.57.7</tt>, or

+

When updating ebuilds, we do want to look at Gentoo's most recent changes. Some of our ebuilds are mild variations of Gentoo's ebuilds, while others are complete rewrites. In general, we like to make our work as easy as possible, so we don't want to duplicate work, although sometimes there are exceptions where we will rewrite complex core ebuilds to make them more ''maintainable'' and ''easy to understand'' (our <tt>sys-devel/gcc</tt> ebuilds are an example of this.)

−

:<tt>148.20.57.8 - 148.20.57.15</tt>, or

+

−

:<tt>148.20.57.16 - 148.20.57.23</tt>, etc.

+

−

In this block of 8 numbers only 6 can be assigned to a computer as, once again, the first and last numbers in a block are reserved for network communication. These can also be expressed as follows:

+

Of course, there's a reason we originally forked an ebuild, and we want to make the process of updating ebuilds as easy as possible. Sometimes, we will fork a package from Gentoo for a specific reason, such as a build breakage, and once the issue is resolved upstream, we will want to ''unfork'' the package by removing it from funtoo-overlay entirely. In general, we want to minimize the number of forked ebuilds to the minimum number necessary.

−

:<tt>148.20.57.0/29</tt>, or

+

[[Category:Activity]]

−

:<tt>148.20.57.8/29</tt>, or

+

−

:<tt>148.20.57.16/29</tt>, etc.

+

−

+

−

From this point on, the number of IP addresses in a block continue to double: 16, 32, 64, 128, 256, etc.

+

−

+

−

:A block of 16 would start <tt>148.20.57.0/28</tt>.

+

−

:A block of 32 would start <tt>148.20.57.0/27</tt>.

+

−

:A block of 64 would start <tt>148.20.57.0/26</tt>.

+

−

:A block of 128 would start <tt>148.20.57.0/25</tt>.

+

−

:A block of 256 would start <tt>148.20.57.0/24</tt>.

+

−

+

−

So if you have an IP address and you want to block the range assigned how do you know which one to use?

+

−

Let's say you have a problem with <tt>148.20.57.34</tt>. You can lookup who has this IP address at http://ws.arin.net/whois/?queryinput=148.20.57.34.

+

−

Say this tells us that this IP address is assigned, along with a LOT of others in a <tt>/17</tt> range, to the Department of Defense. We certainly don't want to block a large block of the DoD! The rule of thumb is block as little as possible. Only block a range if there is a cluster of IP addresses giving a problem.

+

−

+

−

There's a calculator that is very useful for this:

+

−

http://www.csgnetwork.com/ipinfocalc.html.

+

−

Go to this site and enter <code>148.20.57.34</code> into the first set of blanks. Now select Network Prefix Length and enter <code>27</code> (this will give a block of 32 addresses) and click Calculate Network Information. This will show us a block of 32 IP addresses that include <tt>148.20.57.34</tt>. (The first - network - and the last - broadcast - addresses will be displayed along with the usable addresses in the range.) You can use this tool to test ranges to be sure they are what you want before entering the information to initiate the block.

+

−

+

−

==Technical explanation==

+

−

CIDR notation is written as the IP address, a slash, and the CIDR suffix (for example, the IPv4 "<tt>10.2.3.41/24</tt>" or IPv6 "<tt>a3:b:c1:d:e:f:1:21/24</tt>"). The CIDR suffix is the number of starting digits every IP address in the range have in common when written in binary.

+

−

+

−

For example: "<tt>10.10.1.32</tt>" is binary "<tt>00001010.00001010.00000001.00100000</tt>", so <tt>10.10.1.32/27</tt> will match the first 27 digits ("<tt><u>00001010</u>.<u>00001010</u>.<u>00000001</u>.<u>001</u>00000</tt>"). The IP addresses <tt>10.10.1.32</tt>–<tt>10.10.1.63</tt>, when converted to binary, all have the same 27 first digits and will be blocked if <tt>10.10.1.32/27</tt> is blocked.

+

−

+

−

As the CIDR suffix increases, the block affects fewer IP addresses (see [[#Table|table of sample ranges]]). CIDR suffixes are not the same for IPv4 addresses as they are for IPv6 addresses.

+

−

+

−

==Calculating the CIDR suffix==

+

−

You can use the [[#Table|table of sample ranges]] below to guess the range, use a computer script, or manually calculate the range.

+

−

+

−

===Conversion to binary===

+

−

The first step in manually calculating a range is to convert the first and last IP address to binary representation. (This assumes you're not using a computer script, which can probably calculate the range for you anyway.) An IP address is composed of four groups of eight ones and zeros. Each group represents a number from 0 to 255. To convert a number to binary, you can use a [http://www.ccci.com/tools/subcalc/binary.html reference table] or know the value of each binary digit:

Proceeding from left to right, fill in <tt>1</tt> if the number is at least that value, and subtract that value (if it's not, fill in <tt>0</tt> and don't subtract). For example, to calculate 240:

+

−

# 240 is at least 128, so place <tt>1</tt> and subtract 128.

+

−

# 112 (240-128) is at least 64, so place <tt>1</tt> and subtract 64.

+

−

# 48 (112-64) is at least 32, so place <tt>1</tt> and subtract 32.

+

−

# 16 (48-32) is at least 16, so place <tt>1</tt> and subtract 16.

+

−

# Since the remaining value is zero, all the remaining places are <tt>0</tt>.

+

−

Thus, 240 is <tt>1111 0000</tt> because it can be represented as 128+64+32+16+0+0+0+0.

+

−

+

−

===Calculate range===

+

−

# Place both IP addresses one atop the other, and count how many starting digits are exactly alike. This is the CIDR suffix.

+

−

# Double-check! Being off by one digit could extend your block by thousands of addresses.

+

−

+

−

The example below calculates the CIDR range between <tt>69.208.0.0</tt> and <tt>69.208.0.255</tt>. Note that this is a simple example; some groups of IP addresses do not so neatly fit CIDR suffixes, and need multiple different-sized blocks to block the exact range.

* [http://apps.csc.fi/laskin2.html Netmask calculator] which helps in making the correct decision for range blocks.

+

−

* [http://tools.wikimedia.de/~chm/blockcalc.php Rangeblock-Calculator] gives you the range you should use when blocking.

+

−

+

−

{{Languages|Help:Range blocks}}

+

−

+

−

[[Category:Help|Range blocks]]

+

−

[[Category:Block|Range blocks]]

+

Revision as of 05:31, September 29, 2013

Description

Funtoo Linux has a number of forked packages, and sometimes these packages can get out-of-date relative to Gentoo Linux. Periodically, we need to update ebuilds in Funtoo Linux so that they are current. To make this task easier, we have an automated script that compares versions of forked ebuilds in Funtoo Linux to those in Gentoo Linux.

Here's how it works: Below, you can see a list of all ebuilds in Gentoo Linux that have higher version numbers than those in Funtoo Linux. This list is updated hourly.

Funtoo / Gentoo Comparison (funtoo-current, x86-64bit)

app-editors/gedit 3.14.3 > 3.14.2

app-emulation/lxc 1.1.0-r3 > 1.0.7

app-misc/tracker 1.2.5 > 1.2.3

app-shells/bash 4.3_p33-r2 > 4.3_p30-r1

app-text/pytextile 2.2.2 > 2.2.1-r1000

dev-java/icedtea 7.2.5.4 > 7.2.5.3

dev-java/jython 2.7_beta3 > 2.7_beta1-r1

dev-lang/tcl 8.6.3 > 8.6.2

dev-lang/tk 8.6.3 > 8.6.2

dev-libs/boost 1.57.0 > 1.56.0-r1000

dev-libs/botan 1.11.8 > 1.10.9-r1000

dev-libs/glib 2.42.2 > 2.42.1

dev-libs/libgcrypt 1.6.3 > 1.6.2

dev-libs/libgit2 0.22.1 > 0.21.3

dev-libs/libgit2-glib 0.22.0 > 0.0.22

dev-libs/openssl 1.0.2-r1 > 1.0.1k

dev-libs/totem-pl-parser 3.10.4 > 3.10.3

dev-python/astroid 1.3.4 > 1.2.1-r1000

dev-python/autopep8 1.1.1 > 1.0.4-r1000

dev-python/bottle 0.12.8 > 0.12.7-r1000

dev-python/bpython 0.14.1 > 0.13.1-r1000

dev-python/chameleon 2.22 > 2.15-r1000

dev-python/cherrypy 3.3.0 > 3.2.5-r1000

dev-python/colander 1.0 > 1.0_beta1-r1000

dev-python/curtsies 0.1.18 > 0.0.34

dev-python/cython 0.22 > 0.21.2-r1000

dev-python/django 1.7.5 > 1.7.4-r1000

dev-python/django-extensions 1.5.0 > 1.4.0-r1000

dev-python/ecdsa 0.13 > 0.11-r1000

dev-python/eventlet 0.17.1 > 0.16.1-r1000

dev-python/execnet 1.3.0 > 1.2.0-r1000

dev-python/eyeD3 0.7.5 > 0.7.4-r1000

dev-python/fabric 1.10.1 > 1.10.0-r1000

dev-python/flask-openid 1.2.4 > 1.1.1-r1000

dev-python/flask-sqlalchemy 2.0 > 1.0-r1000

dev-python/fonttools 2.4 > 2.3-r1000

dev-python/foolscap 0.7.0 > 0.6.4-r1000

dev-python/h5py 2.4.0 > 2.3.1-r1000

dev-python/ipython 3.0.0 > 1.2.1-r1000

dev-python/jsonpickle 0.9.0 > 0.8.0-r1000

dev-python/logilab-common 0.63.2 > 0.62.1-r1000

dev-python/markdown 2.6 > 2.5.2-r1000

dev-python/matplotlib 1.4.3 > 1.3.1-r1000

dev-python/meld3 1.0.0 > 0.6.10-r1000

dev-python/msgpack 0.4.5 > 0.4.4-r1000

dev-python/mwlib 0.15.15 > 0.15.14-r1000

dev-python/networkx 1.9.1 > 1.9-r1000

dev-python/nevow 0.11.1 > 0.10.0-r1000

dev-python/nltk 3.0.0 > 2.0.4-r1000

dev-python/nose-exclude 0.2.0 > 0.1.10-r1000

dev-python/numpy 1.9.2 > 1.9.1-r1000

dev-python/oauthlib 0.7.2 > 0.6.3-r1000

dev-python/polygon 3.0.7 > 3.0.5-r1000

dev-python/psutil 2.2.1 > 2.1.3-r1000

dev-python/psycopg 2.6 > 2.5.4-r1000

dev-python/pudb 2015.2 > 2014.1-r1000

dev-python/pycxx 6.2.6 > 6.2.5-r1000

dev-python/pyinotify 0.9.5 > 0.9.4-r1000

dev-python/pylibmc 1.4.1 > 1.3.0-r1000

dev-python/pylint 1.4.1 > 1.3.1-r1000

dev-python/pymongo 2.8 > 2.7.2-r1000

dev-python/pyproj 1.9.3-r1 > 1.9.2-r1000

dev-python/pyquery 1.2.9 > 1.2.8-r1000

dev-python/pyramid 1.5.2 > 1.4.5

dev-python/python-dateutil 2.4.0 > 2.3-r1001

dev-python/python-docs 3.4.2 > 3.0.1

dev-python/python-gnupg 0.3.7 > 0.3.6-r1000

dev-python/python-ldap 2.4.19 > 2.4.15-r1000

dev-python/pyzmq 14.5.0 > 14.3.1-r1000

dev-python/rdflib 4.2.0 > 4.1.2-r1000

dev-python/reportlab 3.1.44-r1 > 2.7-r1000

dev-python/requests 2.5.3 > 2.3.0-r1000

dev-python/spyder 2.3.3 > 2.3.1-r1000

dev-python/sqlalchemy-migrate 0.9.2 > 0.9.1-r1000

dev-python/sqlobject 2.1.0 > 1.6.1-r1000

dev-python/stomper 0.3.0 > 0.2.8-r1000

dev-python/subunit 0.0.21-r1 > 0.0.18-r1000

dev-python/tempita 0.5.3 > 0.5.2-r1000

dev-python/testtools 1.5.0 > 0.9.35-r1000

dev-python/twisted-conch 14.0.2 > 13.2.0-r1000

dev-python/twisted-core 14.0.2 > 13.2.0-r1000

dev-python/twisted-lore 14.0.2 > 13.2.0-r1000

dev-python/twisted-mail 14.0.2 > 13.2.0-r1000

dev-python/twisted-names 14.0.2 > 13.2.0-r1000

dev-python/twisted-news 14.0.2 > 13.2.0-r1000

dev-python/twisted-pair 14.0.2 > 13.2.0-r1000

dev-python/twisted-runner 14.0.2 > 13.2.0-r1000

dev-python/twisted-web 14.0.2 > 13.2.0-r1000

dev-python/twisted-words 14.0.2 > 13.2.0-r1000

dev-python/urllib3 1.10 > 1.8.3-r1000

dev-python/urwid 1.3.0 > 1.2.1-r1000

dev-python/venusian 1.0 > 1.0_alpha8

dev-python/virtualenv 12.0.7 > 12.0.5-r1000

dev-python/webtest 2.0.17 > 2.0.15-r1000

dev-python/werkzeug 0.10.1 > 0.9.6-r1000

dev-python/wsgiproxy2 0.4.2 > 0.4.1-r1000

dev-python/wtforms 2.0.2 > 1.0.5-r1000

dev-python/wxpython 3.0.2.0 > 2.8.12.1

dev-python/xhtml2pdf 0.0.6-r1 > 0.0.5-r1000

dev-util/anjuta 3.14.1 > 3.14.0-r1

dev-util/boost-build 1.57.0 > 1.56.0-r1000

dev-util/eric 5.5.2 > 5.3.8-r1000

dev-util/gdbus-codegen 2.42.2 > 2.42.1-r1000

dev-util/gtk-builder-convert 2.24.26 > 2.24.25

dev-vcs/hg-git 0.8.0 > 0.7.0-r1000

dev-vcs/hgsubversion 1.8 > 1.7-r1000

games-board/gnome-chess 3.14.3 > 3.14.2

gnome-extra/gnome-boxes 3.14.3.1 > 3.14.2

gnome-extra/nautilus-tracker-tags 1.2.5 > 1.2.3

mail-mta/postfix 3.1_pre20150208 > 2.11.3-r2

media-gfx/blender 2.72b-r3 > 2.70-r2

media-gfx/gnome-font-viewer 3.14.1 > 3.14.0

media-gfx/shotwell 0.21.0 > 0.20.2

media-libs/mesa 10.5.0_rc3 > 10.4.4

media-plugins/gst-plugins-vaapi 0.5.10 > 0.5.9

media-video/mkvtoolnix 7.7.0 > 7.6.0

media-video/totem 3.14.2 > 3.14.1

net-analyzer/vnstat 1.13 > 1.12-r2

net-firewall/firewalld 0.3.10 > 0.2.12-r1000

net-libs/farstream 0.2.7 > 0.2.6

net-libs/rb_libtorrent 1.0.3 > 1.0.2

net-libs/webkit-gtk 2.6.5 > 2.6.4

net-misc/vino 3.14.2 > 3.14.1

net-wireless/bluez 5.28 > 5.27

sci-biology/biopython 1.65 > 1.64-r1000

sys-apps/man-db 2.7.1 > 2.7.0.2

sys-auth/pambase 20150213 > 20140313

sys-devel/binutils 2.25 > 2.24-r3

sys-devel/make 4.1-r1 > 3.82-r4

sys-kernel/linux-headers 3.19 > 3.17-r1

sys-libs/db 6.1.19 > 6.0.30-r2

sys-libs/libselinux 2.4 > 2.3-r1001

sys-libs/libsemanage 2.4 > 2.3-r1000

sys-power/upower 0.99.2-r1 > 0.99.1

www-apps/trac 1.0.4 > 1.0.2-r1000

www-servers/tornado 4.0.2 > 3.2.2-r1000

x11-libs/gtk+ 3.14.9 > 3.14.8

x11-misc/notification-daemon 3.14.1 > 3.14.0

Some of these ebuilds may be intentionally kept at earlier versions, although in general, we want to update ebuilds to the most recent version that works reliably. Here are some technical caveats:

Rev parts of ebuilds ("-rX") are not considered in version comparisons, since sometimes Gentoo and Funtoo revisions are not analogous.

Masks are not used for this version comparison. The latest unmasked or masked version in Gentoo is compared against the latest masked or unmasked version in Funtoo.

How To Help

Here's how you can help: If you see an package above that appears to be out-of-date, and you believe we should update to a newer version, open a bug on the Funtoo bug tracker. We can look into the ebuild and will give you feedback on whether we feel a new version of the ebuild should be added.

If there is some consensus that it should be updated, then generally Funtoo staff will update the ebuild for you, since generally we are familiar with why the ebuild was forked and be able to efficiently update the package to the most recent version.

However, in some cases it may be possible for you can also help with the update process, if you are so inclined, by forking the funtoo-overlay on GitHub and working on updating the ebuild yourself. Reference your commits in a bug report on our bug tracker. If you are going to help with ebuild writing, it's important to first familiarize yourself with why we forked the ebuild in the first place. The best way to dig up information on the history of the forked Funtoo package is to type "git log ." in the ebuild directory. This will show log information for the package only, and you can look at the history of the ebuild.

When updating ebuilds, we do want to look at Gentoo's most recent changes. Some of our ebuilds are mild variations of Gentoo's ebuilds, while others are complete rewrites. In general, we like to make our work as easy as possible, so we don't want to duplicate work, although sometimes there are exceptions where we will rewrite complex core ebuilds to make them more maintainable and easy to understand (our sys-devel/gcc ebuilds are an example of this.)

Of course, there's a reason we originally forked an ebuild, and we want to make the process of updating ebuilds as easy as possible. Sometimes, we will fork a package from Gentoo for a specific reason, such as a build breakage, and once the issue is resolved upstream, we will want to unfork the package by removing it from funtoo-overlay entirely. In general, we want to minimize the number of forked ebuilds to the minimum number necessary.