All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] xtables-addons: geoip: install and document xt_geoip_fetch
@ 2020-04-30 22:15 Philip Prindeville
  2020-05-01 21:09 ` Jan Engelhardt
  0 siblings, 1 reply; 2+ messages in thread
From: Philip Prindeville @ 2020-04-30 22:15 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Jan Engelhardt, Philip Prindeville

From: Philip Prindeville <philipp@redfish-solutions.com>

Add a man page for xt_geoip_fetch.1 and include it as part of
the installed scripts.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
---
 geoip/Makefile.am      |  2 ++
 geoip/xt_geoip_fetch.1 | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/geoip/Makefile.am b/geoip/Makefile.am
index aa28c3d21c6e489bb20c8165ecfec2259e0ee438..32048a21e8069a2b865ef6600aed63f6b7d53446 100644
--- a/geoip/Makefile.am
+++ b/geoip/Makefile.am
@@ -1,5 +1,7 @@
 # -*- Makefile -*-
 
+bin_SCRIPTS = xt_geoip_fetch
+
 pkglibexec_SCRIPTS = xt_geoip_build xt_geoip_dl
 
 man1_MANS = xt_geoip_build.1 xt_geoip_dl.1
diff --git a/geoip/xt_geoip_fetch.1 b/geoip/xt_geoip_fetch.1
new file mode 100644
index 0000000000000000000000000000000000000000..7280c74b9ab520e61293a304207dfafee07cbe47
--- /dev/null
+++ b/geoip/xt_geoip_fetch.1
@@ -0,0 +1,35 @@
+.TH xt_geoip_fetch 1 "2020-04-30" "xtables-addons" "xtables-addons"
+.SH Name
+.PP
+xt_geoip_fetch \(em dump a country database to stdout
+.SH Syntax
+.PP
+\fBxt_geoip_fetch\fP [\fB\-D\fP
+\fIdatabase_dir\fP] [\fB-4\fP] [\fB-6\fP] \fIcc\fP [ \fIcc\fP ... ]
+.SH Description
+.PP
+xt_geoip_fetch unpacks a country's IPv4 or IPv6 databases and dumps
+them to standard output as a sorted, non-overlaping list of ranges (which
+is how they're represented in the database) suitable for browsing or
+further processing.
+.PP Options
+.TP
+\fB\-D\fP \fIdatabase_dir\fP
+Specifies the directory into which the files have been put. Defaults to ".".
+.TP
+\fB-4\fP
+Specifies IPv4 data only.
+.TP
+\fB-6\fP
+Specifies IPv6 data only.
+.TP
+\fIcc\fP [ \fIcc\fP ... ]
+The ISO-3166 country code names of the desired countries' databases.
+.SH Application
+.PP
+Shell command to dump the list of Swiss IPv6 address ranges:
+.PP
+xt_geoip_fetch \-D /usr/share/xt_geoip \-6 ch
+.SH See also
+.PP
+xt_geoip_build(1)
-- 
2.17.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1 1/1] xtables-addons: geoip: install and document xt_geoip_fetch
  2020-04-30 22:15 [PATCH v1 1/1] xtables-addons: geoip: install and document xt_geoip_fetch Philip Prindeville
@ 2020-05-01 21:09 ` Jan Engelhardt
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Engelhardt @ 2020-05-01 21:09 UTC (permalink / raw)
  To: Philip Prindeville; +Cc: netfilter-devel

On Friday 2020-05-01 00:15, Philip Prindeville wrote:

>From: Philip Prindeville <philipp@redfish-solutions.com>
>
>Add a man page for xt_geoip_fetch.1 and include it as part of
>the installed scripts.

Done.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-01 21:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 22:15 [PATCH v1 1/1] xtables-addons: geoip: install and document xt_geoip_fetch Philip Prindeville
2020-05-01 21:09 ` Jan Engelhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.