Révision 94888223
Plugin ipt_basic_: convert documentation to perlpod format
| plugins/network/ipt_basic_ | ||
|---|---|---|
| 1 | 1 |
#!/bin/sh |
| 2 |
#$Id: ipt-basic_ 96 2005-10-12 16:54:19Z grin $ |
|
| 3 |
# |
|
| 4 |
# (C)Copyright Peter grin at grin dot hu Gervai, 2005 |
|
| 5 |
# Released undel GPL v2. |
|
| 6 |
# |
|
| 7 |
# Plugin to monitor traffic through iptables. |
|
| 8 |
# This plugin was designed to monitor FORWARDING interfaces |
|
| 9 |
# on a router with only one-to-one forwarding (traffic goes into |
|
| 10 |
# one interface goes out to the other). |
|
| 11 |
# |
|
| 12 |
# You can initialise the required iptables by running it manually: |
|
| 13 |
# |
|
| 14 |
# ipt-basic_ initialise |
|
| 15 |
# |
|
| 16 |
# You should create two symlinks to this module: |
|
| 17 |
# ln -s ipt-basic_ ipt-basic_bytes |
|
| 18 |
# ln -s ipt-basic_ ipt-basic_pkts |
|
| 19 |
# |
|
| 20 |
# This plugin is based on the ip_ plugin. |
|
| 21 |
# |
|
| 22 |
# Revisions: |
|
| 23 |
# 2006.01.00 - First release. |
|
| 24 |
# 2006.11.26 - Use -j RETURN in rules, and sort interfaces |
|
| 25 |
# |
|
| 26 |
# |
|
| 27 |
# Magic markers (optional - used by munin-config and some installation |
|
| 28 |
# scripts): |
|
| 29 |
# |
|
| 30 |
#%# family=auto |
|
| 31 |
#%# capabilities=autoconf |
|
| 2 |
|
|
| 3 |
: <<=cut |
|
| 4 |
|
|
| 5 |
=head1 NAME |
|
| 6 |
|
|
| 7 |
ipt_basic_ - monitor traffic through iptables |
|
| 8 |
|
|
| 9 |
|
|
| 10 |
=head1 APPLICABLE SYSTEMS |
|
| 11 |
|
|
| 12 |
This plugin was designed to monitor FORWARDING interfaces |
|
| 13 |
on a router with only one-to-one forwarding (traffic goes into |
|
| 14 |
one interface goes out to the other). |
|
| 15 |
|
|
| 16 |
|
|
| 17 |
=head1 CONFIGURATION |
|
| 18 |
|
|
| 19 |
You can initialise the required iptables by running it manually: |
|
| 20 |
|
|
| 21 |
ipt-basic_ initialise |
|
| 22 |
|
|
| 23 |
You should create two symlinks to this module: |
|
| 24 |
ln -s ipt-basic_ ipt-basic_bytes |
|
| 25 |
ln -s ipt-basic_ ipt-basic_pkts |
|
| 26 |
|
|
| 27 |
This plugin is based on the ip_ plugin. |
|
| 28 |
|
|
| 29 |
|
|
| 30 |
=head1 REVISIONS |
|
| 31 |
|
|
| 32 |
=over 4 |
|
| 33 |
|
|
| 34 |
=item 2006.01.00 - First release. |
|
| 35 |
|
|
| 36 |
=item 2006.11.26 - Use -j RETURN in rules, and sort interfaces |
|
| 37 |
|
|
| 38 |
=back |
|
| 39 |
|
|
| 40 |
|
|
| 41 |
=head1 AUTHORS |
|
| 42 |
|
|
| 43 |
Copyright (C) 2005 Peter Gervai |
|
| 44 |
|
|
| 45 |
|
|
| 46 |
=head1 LICENSE |
|
| 47 |
|
|
| 48 |
GNU Library General Public License v2 only |
|
| 49 |
|
|
| 50 |
SPDX-License-Identifier: GPL-2.0-only |
|
| 51 |
|
|
| 52 |
|
|
| 53 |
=head1 MAGIC MARKERS |
|
| 54 |
|
|
| 55 |
#%# family=auto |
|
| 56 |
#%# capabilities=autoconf |
|
| 57 |
|
|
| 58 |
=cut |
|
| 32 | 59 |
|
| 33 | 60 |
# ipt_bytes, ipt_pkts |
| 34 | 61 |
TYPE=`basename $0 | sed 's/^ipt-basic_//g'` |
Formats disponibles : Unified diff