897:{{blockcalc|ok|nolist|nonote| 2604:2000:f82a:2c00:eccf:c2e5:8b09:6757 2606:6000:610a:9000:1d0f:636f:39a:867c 2606:6000:610a:9000:1d0f:636f:39a:867d 2606:6000:610a:9000:1d0f:636f:39a:867e 2606:6000:610a:9000:1d0f:636f:39a:867f 2606:6000:610a:9000:9df6:cc8d:592b:1ae }} {{blockcalc|ok|nolist|nonote|allocation=128| 2604:2000:f82a:2c00:eccf:c2e5:8b09:6757 2606:6000:610a:9000:1d0f:636f:39a:867c 2606:6000:610a:9000:1d0f:636f:39a:867d 2606:6000:610a:9000:1d0f:636f:39a:867e 2606:6000:610a:9000:1d0f:636f:39a:867f 2606:6000:610a:9000:9df6:cc8d:592b:1ae }} {{blockcalc|ok|nolist|nonote|results=all| 2604:2000:f82a:2c00:eccf:c2e5:8b09:6757 2606:6000:610a:9000:1d0f:636f:39a:867c 2606:6000:610a:9000:1d0f:636f:39a:867d 2606:6000:610a:9000:1d0f:636f:39a:867e 2606:6000:610a:9000:1d0f:636f:39a:867f 2606:6000:610a:9000:9df6:cc8d:592b:1ae }}
21:
1263:
52:
591:
2 192.168.250.0/23 ---------------------------------------------------------- 4 1 1 192.168.249.15 1 1 192.168.249.255 1 1 192.168.250.15 1 1 192.168.251.15
890:
The results produced for IPv6 ranges are correct but may not be satisfactory since it is not possible to know how many different users may be using addresses in a /64 range, and no tools are available to show the contributions for an IPv6 range. Requesting results that go beyond /64 may show too much
658:
Multiple IPv6 addresses can be entered, as shown in the following example which uses a long command, not shown for brevity. The first two rows show that 3 of the entered addresses are in a /33 range, while 72 are in a /64. Blocking the /33 would affect 2G /64, that is, over 2 billion /64 allocations,
590:
Total
Affected Given Range ---------------------------------------------------------- 1024 1024 4 192.168.248.0/22 ---------------------------------------------------------- 768 256 2 192.168.249.0/24 512
385:
The result of the preview follows. The first row shows that blocking 192.168.248.0/22 would cover all the given IPs but would affect 1024 addresses. The next group of results (the second and third rows) shows an alternative that would affect 768 addresses but would require blocking two ranges,
261:
By default, when a contributions link for a range is displayed, a note is added to explain that the listed contributions, by default, are restricted to those in the previous month. In addition, IPv6 range contributions require that the user has enabled the
862:
For IPv6, the range calculator defaults to assuming that a /64 range is allocated to each user. Therefore, by default, it stops once it reaches /64 without looking for more precise ranges. There are two ways to request more results:
1234:
1082:
1218:
1179:
1066:
1027:
1250:
1098:
235:
With the default value of 1, only contributions from the previous month are listed. For example, if the current date was 26 April 2016, contributions on or after 26 March 2016 would be shown.
1317:
1305:
36:
303:
With the default value of 64, ranges with fewer IPv6 addresses than a /64 allocation are not considered. That means the results will not include a /n range with n > 64.
1341:
1301:
32:
1195:
1043:
969:
953:
849:
833:
817:
801:
778:
746:
723:
100:
The template can be used by editing any page, inserting the template, and previewing the result. There is no need to save the edit. As an example, you could edit
594:
The following example shows that entering a single IPv6 address displays its /64 range with a link to the recent contributions made by addresses in that range.
650:
40:
762:
707:
487:
471:
448:
526:
1312:
558:
542:
510:
1287:
659:
but would block only 3 of the given addresses. By contrast, blocking the /64 in the second row would block 72 of the given addresses.
1337:
1295:
28:
1156:
894:
The options to request more results are illustrated with the following three examples which operate on the same six addresses:
313:
Show all possible summaries, including any with a range that is too large to block (/n less than /16 for IPv4 or /19 for IPv6).
1276:
386:
192.168.249.0/24 and 192.168.250.0/23. The final group of results points out that the four individual IPs could be blocked.
1357:
1271:
89:
addresses as input and displays minimum-sized blocks of addresses that cover all of the inputs. The result uses
376:
187:{{blockcalc|1=Any text with = that includes IPv4 and/or IPv6 addresses.}}
101:
69:
359:
It may be convenient to temporarily edit the input list of addresses by commenting out unwanted lines.
109:{{IP range calculator| 192.168.254.175 192.168.251.15 192.168.251.12 192.168.254.172 192.168.251.14 }}
212:
By default, the results may start with an announcement regarding significant changes to the template.
124:
then preview the edit. If wanted, the edit could be saved to record the results in the page history.
267:
94:
1291:
119:{{blockcalc| 192.168.254.175 192.168.251.15 192.168.251.12 192.168.254.172 192.168.251.14 }}
58:
248:
By default, a sorted list of input IP addresses is included, with any duplicates omitted.
177:{{blockcalc|Any text that includes IPv4 and/or IPv6 addresses.}}
65:
1351:
90:
382:{{blockcalc| 192.168.250.15 192.168.249.255 192.168.249.15 192.168.251.15 }}
1262:
15:
264:
Allow /16, /24 and /27 – /32 CIDR ranges on
Special:Contributions forms
875:) to change the range that is assumed to represent a single user; or
181:
Addresses are extracted from the arguments, so any text can be used.
225:
Applies to links that display the contributions for a range of IPs.
151:
Addresses (IPv4 and/or IPv6) can be entered as separate arguments.
375:
The following can be previewed by editing any page, for example
356:
By default, no comment text is defined and no lines are ignored.
86:
82:
882:
to generate as many results as possible; this option also sets
1257:
46:
1329:
1321:
1279:
to it so that it can be listed with similar templates.
316:
Also changes the default allocation from 64 to 128.
171:
Addresses can also be entered in a single argument.
597:{{blockcalc|2601:188:0:ABE6:65F5:930C:B0B2:CD63}}
353:Lines beginning with the comment text are ignored.
200:The following optional parameters can be used.
570:can be used to produce the following result.
245:Do not list the IPs extracted from the input.
8:
293:Applies to IPv6; ignored for IPv4 addresses.
280:Show plain text results rather than a table.
209:Do not show the announcement in the results.
1311:Editors can experiment in this template's
1231:2606:6000:610a:9000:1d0f:636f:39a:867c/126
1079:2606:6000:610a:9000:1d0f:636f:39a:867c/126
366:would ignore lines that start with a hash.
258:Do not show notes underneath the results.
1113:
984:
910:
664:
607:
405:
1215:2604:2000:f82a:2c00:eccf:c2e5:8b09:6757
1176:2604:2000:f82a:2c00:eccf:c2e5:8b09:6757
1063:2604:2000:f82a:2c00:eccf:c2e5:8b09:6757
1024:2604:2000:f82a:2c00:eccf:c2e5:8b09:6757
93:and can be used by an administrator to
1247:2606:6000:610a:9000:9df6:cc8d:592b:1ae
1095:2606:6000:610a:9000:9df6:cc8d:592b:1ae
7:
300:can be 48 to 128; the default is 64.
604:2601:188:0:abe6:65f5:930c:b0b2:cd63
333:can be 1 to 100; the default is 10.
14:
232:can be 1 to 12; the default is 1.
1296:Template:IP range calculator/doc
1261:
50:
19:
104:and replace its contents with
1:
566:If plain text is preferred,
1270:has not been added to any
157:{{blockcalc|
135:{{blockcalc|
1374:
1285:
871:(or another value such as
1342:Subpages of this template
1205:
1201:
1166:
1162:
1143:
1139:
1053:
1049:
1014:
1010:
940:
936:
788:
784:
733:
729:
694:
690:
637:
633:
573:Sorted 4 IPv4 addresses:
497:
493:
458:
454:
435:
431:
389:Sorted 4 IPv4 addresses:
195:if the text contains "=".
1192:2606:6000:610a:9000::/64
1040:2606:6000:610a:9000::/64
966:2606:6000:610a:9000::/64
950:2604:2000:f82a:2c00::/64
846:2606:6000:610a:9000::/64
830:2604:2000:f82a:2c00::/64
814:2604:2000:ef48:1400::/64
798:2604:2000:a866:6800::/64
775:2606:6000:610a:9000::/64
743:2604:2000:a866:6800::/64
720:2606:6000:610a:9000::/64
600:Sorted 1 IPv6 address:
114:or with the equivalent
1336:Add categories to the
81:This template accepts
24:Template documentation
1275:. Please help out by
147:|...}}
900:The results follow.
647:2601:188:0:abe6::/64
340:summaries are shown.
57:This template uses
1358:Lua-based templates
759:2604:2000:e000::/35
704:2604:2000:8000::/33
268:Special:Preferences
1283:
1282:
1277:adding categories
1256:
1255:
1104:
1103:
975:
974:
855:
854:
656:
655:
564:
563:
97:of IP addresses.
79:
78:
1365:
1333:
1325:
1309:
1265:
1258:
1114:
985:
911:
885:
881:
874:
870:
665:
608:
569:
484:192.168.250.0/23
468:192.168.249.0/24
445:192.168.248.0/22
406:
365:
350:
326:
310:
290:
277:
265:
255:
242:
222:
206:
196:
194:
189:
188:
182:
179:
178:
172:
169:
168:
152:
149:
148:
120:
110:
54:
53:
47:
44:
25:
23:
22:
1373:
1372:
1368:
1367:
1366:
1364:
1363:
1362:
1348:
1347:
1346:
1345:
1335:
1327:
1315:
1310:
1299:
1284:
1128:
1123:
1118:
1111:
999:
994:
989:
982:
925:
920:
915:
908:
898:
883:
879:
873:|allocation=112
872:
869:|allocation=128
868:
860:
679:
674:
669:
662:
622:
617:
612:
598:
592:
580:192.168.249.255
567:
523:192.168.249.255
420:
415:
410:
396:192.168.249.255
383:
373:
363:
345:
321:
308:
285:
275:
263:
253:
240:
217:
204:
192:
190:
186:
185:
180:
176:
175:
170:
167:...}}
156:
155:
150:
134:
133:
130:
118:
108:
75:
51:
45:
26:
20:
18:
12:
11:
5:
1371:
1369:
1361:
1360:
1350:
1349:
1326:and testcases
1281:
1280:
1268:This template
1266:
1254:
1253:
1248:
1245:
1242:
1238:
1237:
1232:
1229:
1226:
1222:
1221:
1216:
1213:
1210:
1207:
1203:
1202:
1199:
1198:
1193:
1190:
1187:
1183:
1182:
1177:
1174:
1171:
1168:
1164:
1163:
1160:
1159:
1154:
1151:
1148:
1145:
1141:
1140:
1137:
1136:
1133:
1130:
1125:
1120:
1102:
1101:
1096:
1093:
1090:
1086:
1085:
1080:
1077:
1074:
1070:
1069:
1064:
1061:
1058:
1055:
1051:
1050:
1047:
1046:
1041:
1038:
1035:
1031:
1030:
1025:
1022:
1019:
1016:
1012:
1011:
1008:
1007:
1004:
1001:
996:
991:
978:allocation=128
973:
972:
967:
964:
961:
957:
956:
951:
948:
945:
942:
938:
937:
934:
933:
930:
927:
922:
917:
896:
888:
887:
884:allocation=128
876:
859:
856:
853:
852:
847:
844:
841:
837:
836:
831:
828:
825:
821:
820:
815:
812:
809:
805:
804:
799:
796:
793:
790:
786:
785:
782:
781:
776:
773:
770:
766:
765:
760:
757:
754:
750:
749:
744:
741:
738:
735:
731:
730:
727:
726:
721:
718:
715:
711:
710:
705:
702:
699:
696:
692:
691:
688:
687:
684:
681:
676:
671:
654:
653:
648:
645:
642:
639:
635:
634:
631:
630:
627:
624:
619:
614:
606:
605:
596:
589:
588:
587:
586:192.168.251.15
584:
583:192.168.250.15
581:
578:
577:192.168.249.15
562:
561:
556:
555:192.168.251.15
553:
550:
546:
545:
540:
539:192.168.250.15
537:
534:
530:
529:
524:
521:
518:
514:
513:
508:
507:192.168.249.15
505:
502:
499:
495:
494:
491:
490:
485:
482:
479:
475:
474:
469:
466:
463:
460:
456:
455:
452:
451:
446:
443:
440:
437:
433:
432:
429:
428:
425:
422:
417:
412:
404:
403:
402:192.168.251.15
400:
399:192.168.250.15
397:
394:
393:192.168.249.15
381:
372:
369:
368:
367:
360:
357:
354:
351:
342:
341:
334:
327:
318:
317:
314:
311:
305:
304:
301:
294:
291:
282:
281:
278:
272:
271:
259:
256:
250:
249:
246:
243:
237:
236:
233:
226:
223:
214:
213:
210:
207:
198:
197:
183:
173:
153:
129:
126:
122:
121:
112:
111:
77:
76:
74:
73:
66:Module:IPblock
62:
55:
17:
16:
13:
10:
9:
6:
4:
3:
2:
1370:
1359:
1356:
1355:
1353:
1343:
1339:
1331:
1323:
1319:
1314:
1307:
1303:
1297:
1293:
1289:
1288:documentation
1278:
1274:
1273:
1267:
1264:
1260:
1259:
1252:
1249:
1246:
1243:
1240:
1239:
1236:
1233:
1230:
1227:
1224:
1223:
1220:
1217:
1214:
1211:
1208:
1204:
1200:
1197:
1194:
1191:
1188:
1185:
1184:
1181:
1178:
1175:
1172:
1169:
1165:
1161:
1158:
1155:
1152:
1149:
1146:
1142:
1138:
1134:
1131:
1126:
1121:
1116:
1115:
1112:
1109:
1108:
1100:
1097:
1094:
1091:
1088:
1087:
1084:
1081:
1078:
1075:
1072:
1071:
1068:
1065:
1062:
1059:
1056:
1052:
1048:
1045:
1042:
1039:
1036:
1033:
1032:
1029:
1026:
1023:
1020:
1017:
1013:
1009:
1005:
1002:
997:
992:
987:
986:
983:
980:
979:
971:
968:
965:
962:
959:
958:
955:
952:
949:
946:
943:
939:
935:
931:
928:
923:
918:
913:
912:
909:
906:
905:
901:
895:
892:
877:
866:
865:
864:
857:
851:
848:
845:
842:
839:
838:
835:
832:
829:
826:
823:
822:
819:
816:
813:
810:
807:
806:
803:
800:
797:
794:
791:
787:
783:
780:
777:
774:
771:
768:
767:
764:
761:
758:
755:
752:
751:
748:
745:
742:
739:
736:
732:
728:
725:
722:
719:
716:
713:
712:
709:
706:
703:
700:
697:
693:
689:
685:
682:
677:
672:
667:
666:
663:
660:
652:
649:
646:
643:
640:
636:
632:
628:
625:
620:
615:
610:
609:
603:
602:
601:
595:
585:
582:
579:
576:
575:
574:
571:
560:
557:
554:
551:
548:
547:
544:
541:
538:
535:
532:
531:
528:
525:
522:
519:
516:
515:
512:
509:
506:
503:
500:
496:
492:
489:
486:
483:
480:
477:
476:
473:
470:
467:
464:
461:
457:
453:
450:
447:
444:
441:
438:
434:
430:
426:
423:
418:
413:
408:
407:
401:
398:
395:
392:
391:
390:
387:
380:
378:
370:
362:For example,
361:
358:
355:
352:
349:
344:
343:
339:
336:No more than
335:
332:
328:
325:
320:
319:
315:
312:
307:
306:
302:
299:
295:
292:
289:
284:
283:
279:
274:
273:
269:
260:
257:
252:
251:
247:
244:
239:
238:
234:
231:
227:
224:
221:
216:
215:
211:
208:
203:
202:
201:
184:
174:
166:
163:
160:
154:
146:
142:
138:
132:
131:
127:
125:
117:
116:
115:
107:
106:
105:
103:
98:
96:
95:block a range
92:
91:CIDR notation
88:
84:
71:
67:
64:
63:
60:
56:
49:
48:
42:
38:
34:
30:
1269:
1110:
1106:
1105:
981:
977:
976:
907:
903:
902:
899:
893:
889:
880:|results=all
861:
661:
657:
599:
593:
572:
565:
388:
384:
377:your sandbox
374:
347:
337:
330:
323:
309:|results=all
297:
287:
286:|allocation=
229:
219:
199:
164:
161:
158:
144:
140:
136:
123:
113:
102:your sandbox
99:
80:
1292:transcluded
1147:>64G /64
1144:>64G /64
1107:results=all
329:The number
296:The number
228:The number
39:] [
35:] [
31:] [
1286:The above
1272:categories
364:|comment=#
266:gadget in
1340:subpage.
1153:2604::/14
1135:Contribs
1129:addresses
1124:addresses
1006:Contribs
1000:addresses
995:addresses
932:Contribs
926:addresses
921:addresses
686:Contribs
680:addresses
675:addresses
629:Contribs
623:addresses
618:addresses
427:Contribs
421:addresses
416:addresses
346:|comment=
322:|results=
1352:Category
1251:contribs
1235:contribs
1219:contribs
1196:contribs
1180:contribs
1157:contribs
1122:Affected
1119:affected
1099:contribs
1083:contribs
1067:contribs
1044:contribs
1028:contribs
993:Affected
990:affected
970:contribs
954:contribs
919:Affected
916:affected
891:detail.
850:contribs
834:contribs
818:contribs
802:contribs
779:contribs
763:contribs
753:512M /64
747:contribs
734:512M /64
724:contribs
708:contribs
673:Affected
670:affected
651:contribs
616:Affected
613:affected
559:contribs
543:contribs
527:contribs
511:contribs
488:contribs
472:contribs
449:contribs
414:Affected
411:affected
371:Examples
218:|months=
165:address3
162:address2
159:address1
145:address3
141:address2
137:address1
1320:|
1313:sandbox
1306:history
1304:|
904:Default
254:|nonote
241:|nolist
70:sandbox
37:history
1334:pages.
1330:create
698:2G /64
695:2G /64
143:|
139:|
128:Syntax
1294:from
1186:1 /64
1167:1 /64
1132:Range
1127:Given
1117:Total
1034:1 /64
1015:1 /64
1003:Range
998:Given
988:Total
960:1 /64
944:1 /64
941:2 /64
929:Range
924:Given
914:Total
840:1 /64
824:1 /64
808:1 /64
792:1 /64
789:4 /64
769:1 /64
737:1 /64
714:1 /64
683:Range
678:Given
668:Total
641:1 /64
638:1 /64
626:Range
621:Given
611:Total
568:|text
424:Range
419:Given
409:Total
276:|text
43:]
41:purge
27:[
1338:/doc
1322:diff
1318:edit
1302:edit
878:Use
867:Use
858:IPv6
439:1024
436:1024
348:text
191:Use
87:IPv6
83:IPv4
33:edit
29:view
1290:is
478:512
462:256
459:768
205:|ok
85:or
59:Lua
1354::
1298:.
843:72
772:72
717:72
379:.
193:1=
61::
1344:.
1332:)
1328:(
1324:)
1316:(
1308:)
1300:(
1244:1
1241:1
1228:4
1225:4
1212:1
1209:1
1206:6
1189:5
1173:1
1170:1
1150:6
1092:1
1089:1
1076:4
1073:4
1060:1
1057:1
1054:6
1037:5
1021:1
1018:1
963:5
947:1
886:.
827:1
811:1
795:1
756:2
740:1
701:3
644:1
552:1
549:1
536:1
533:1
520:1
517:1
504:1
501:1
498:4
481:2
465:2
442:4
338:n
331:n
324:n
298:n
288:n
270:.
230:n
220:n
72:)
68:(
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.