Make Documentation page refer to 3.x and 4.x equally

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6855 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-13 21:12:23 +00:00
parent 7554183e03
commit a3f78b51e7
4 changed files with 280 additions and 263 deletions

View File

@ -203,7 +203,11 @@ sub timestamp() {
sub progress_message { sub progress_message {
if ( $verbose > 1 ) { if ( $verbose > 1 ) {
timestamp if $timestamp; timestamp if $timestamp;
my $line = join( ' ', @_ ); #
# We use this function to display messages containing raw config file images which may contains tabs (including multiple tabs in succession).
# The following makes such messages look more readable and uniform
#
my $line = "@_";
$line =~ s/\s+/ /g; $line =~ s/\s+/ /g;
print "$line\n"; print "$line\n";
} }

View File

@ -103,9 +103,6 @@ sub setup_route_marking() {
add_rule $chainref, "-m mark ! --mark 0/$mask -j CONNMARK --save-mark --mask $mask"; add_rule $chainref, "-m mark ! --mark 0/$mask -j CONNMARK --save-mark --mask $mask";
} }
sub setup_providers() {
my $providers = 0;
sub copy_table( $$ ) { sub copy_table( $$ ) {
my ( $duplicate, $number ) = @_; my ( $duplicate, $number ) = @_;
@ -246,6 +243,10 @@ sub setup_providers() {
} }
$providers{$table} = {}; $providers{$table} = {};
#
# Setup_Providers() Starts Here....
#
$providers{$table}{number} = $number; $providers{$table}{number} = $number;
$providers{$table}{mark} = $val; $providers{$table}{mark} = $val;
@ -301,7 +302,11 @@ sub setup_providers() {
" ${iface}_up=" " ${iface}_up="
); );
} else { } else {
emit " fatal_error \"ERROR: Interface $interface is not configured -- Provider $table ($number) Cannot be Added\""; emit " fatal_error \"ERROR: Interface $interface is not configured --
#
# Setup_Providers() Starts Here....
#
Provider $table ($number) Cannot be Added\"";
} }
emit "fi\n"; emit "fi\n";
@ -353,9 +358,10 @@ sub setup_providers() {
); );
progress_message " Routing rule \"$currentline\" $done"; progress_message " Routing rule \"$currentline\" $done";
} }
#
# Setup_Providers() Starts Here.... sub setup_providers() {
# my $providers = 0;
my $fn = open_file 'providers'; my $fn = open_file 'providers';
while ( read_a_line ) { while ( read_a_line ) {
@ -422,6 +428,10 @@ sub setup_providers() {
emit_unindented join( "\n", emit_unindented join( "\n",
'#', '#',
#
# Setup_Providers() Starts Here....
#
'# reserved values', '# reserved values',
'#', '#',
"255\tlocal", "255\tlocal",

View File

@ -71,8 +71,9 @@
<member><ulink url="manpages/shorewall-hosts.html">hosts</ulink> - <member><ulink url="manpages/shorewall-hosts.html">hosts</ulink> -
Define multiple zones accessed through a single interface</member> Define multiple zones accessed through a single interface</member>
<member><ulink url="shorewall-interfaces.html">interfaces</ulink> - <member><ulink
Define the interfaces on the system and optionally associate them with url="manpages/shorewall-interfaces.html">interfaces</ulink> - Define the
interfaces on the system and optionally associate them with
zones.</member> zones.</member>
<member><ulink url="manpages/shorewall-maclist.html">maclist</ulink> - <member><ulink url="manpages/shorewall-maclist.html">maclist</ulink> -
@ -140,8 +141,8 @@
- Specify values for global Shorewall options.</member> - Specify values for global Shorewall options.</member>
<member><ulink <member><ulink
url="manpages/shorewall.conf.html">shorewall-lite.conf</ulink> - Specify url="manpages/shorewall-lite.conf.html">shorewall-lite.conf</ulink> -
values for global Shorewall Lite options.</member> Specify values for global Shorewall Lite options.</member>
<member><ulink url="manpages/shorewall-vardir.html">vardir</ulink> - <member><ulink url="manpages/shorewall-vardir.html">vardir</ulink> -
Redefine the directory where Shorewall keeps its state Redefine the directory where Shorewall keeps its state

View File

@ -6,7 +6,7 @@
</head> </head>
<body> <body>
<h1 style="text-align: left;">Shorewall 3.x Documentation<br> <h1 style="text-align: left;">Shorewall Documentation<br>
</h1> </h1>
<span style="font-weight: bold;">Tom Eastep<br> <span style="font-weight: bold;">Tom Eastep<br>
<br> <br>
@ -22,44 +22,49 @@ href="GnuCopyright.htm" target="_self">GNU Free Documentation
License</a></span>”.<br> License</a></span>”.<br>
</p> </p>
<p>2007-06-23<br> <p>2007-07-13<br>
</p> </p>
<hr style="width: 100%; height: 2px;"> <hr style="width: 100%; height: 2px;">
<br> <br>
<ul> <ul>
<li><a href="Documentation_Index.html">Alphabetical <span <li><strong>Alphabetical Index</strong> -- Over 70 articles with topics
style="font-weight: bold;">Index</span> of all Articles</a> <a ranging from Accounting to Xen
href="http://gomix.homelinux.net/gomix/shorewall/">(En Español)</a> -- <p><a href="Documentation_Index.html">Shorewall 3.x</a></p>
Over 70 articles with topics ranging from Accounting to Xen<br> <p><a href="4.0/Documentation_Index.html">Shorewall 4.x</a></p>
</li> </li>
<li><a href="FAQ.htm"><span style="font-weight: bold;">FAQ</span>s</a> -- <li><strong>FAQs</strong> -- Answers to the most commonly asked questions.
Answers to the most commonly asked questions.<br> <p><a href="FAQ.htm">Shorewall 3.x</a></p>
<p><a href="4.0/FAQ.htm">Shorewall 4.x</a></p>
</li>
<li><strong>Getting Started</strong> -- Introductory Articles and Beginner
HOWTOs
<p><span style="font-weight: bold;"></span><a
href="shorewall_quickstart_guide.htm">Shorewall 3.x</a></p>
<p><a href="4.0/shorewall_quickstart_guide.htm">Shorewall 4.x</a></p>
</li> </li>
<li><a href="GettingStarted.html"><span
style="font-weight: bold;"></span>Getting Started</a> -- Introductory
Articles and Beginner HOWTOs</li>
<li>PPPPPPPS ( or, Paul's Principles for Practical Provision of Packet <li>PPPPPPPS ( or, Paul's Principles for Practical Provision of Packet
Processing with Shorewall ) <a Processing with Shorewall ) <a
href="http://linuxman.wikispaces.com/PPPPPPS">http://linuxman.wikispaces.com/PPPPPPS</a> href="http://linuxman.wikispaces.com/PPPPPPS">http://linuxman.wikispaces.com/PPPPPPS</a>
-- Some very useful tips for dealing with Shorewall from Paul Gear<br> -- Some very useful tips for dealing with Shorewall from Paul Gear<br>
</li> </li>
<li><a href="manpages/Manpages.html">Shorewall 3.4 <span <li>Man Pages -- Online version of the manpages released with Shorewall
style="font-weight: bold;">Manpages</span></a> -- Online version of the 3.4.0 and later
manpages released with Shorewall 3.4.0 and later<br> <p><a href="manpages/Manpages.html">Shorewall 3.x</a></p>
<p><a href="4.0/Manpages.html">Shorewall 4.x</a></p>
</li> </li>
<li><a href="shorewall_features.htm">Shorewall <span <li><a href="4.0/shorewall_features.htm">Shorewall <span
style="font-weight: bold;">Features</span></a> -- What it can do<br> style="font-weight: bold;">Features</span></a> -- What it can do<br>
</li> </li>
<li><a href="Shorewall_Doesnt.html"><span <li><a href="4.0/Shorewall_Doesnt.html"><span
style="font-weight: bold;">Limitations</span></a> -- Some things that it style="font-weight: bold;">Limitations</span></a> -- Some things that it
cannot do<br> cannot do<br>
</li> </li>
<li><a href="troubleshoot.htm"><span <li><a href="4.0/troubleshoot.htm"><span
style="font-weight: bold;">Troubleshooting</span> Guide</a> -- Look here style="font-weight: bold;">Troubleshooting</span> Guide</a> -- Look here
when "it doesn't work"<br> when "it doesn't work"<br>
</li> </li>
<li><a href="upgrade_issues.htm"><span <li><a href="4.0/upgrade_issues.htm"><span
style="font-weight: bold;">Upgrade</span> Issues</a> -- avoid problems style="font-weight: bold;">Upgrade</span> Issues</a> -- avoid problems
when upgrading your Shorewall installation</li> when upgrading your Shorewall installation</li>
</ul> </ul>
@ -67,10 +72,7 @@ License</a></span>”.<br>
<div style="margin-left: 40px;"> <div style="margin-left: 40px;">
<a href="2.0/">Shorewall 2.x Documentation</a> <a href="2.0/">Shorewall 2.x Documentation</a> </div>
<p><a href="4.0/index.html">Shorewall 4.0 Documentation</a></p>
</div>
<br> <br>
</body> </body>
</html> </html>