diff --git a/Shorewall/Perl/Shorewall/Compiler.pm b/Shorewall/Perl/Shorewall/Compiler.pm index b4c2af66e..5fc887f19 100644 --- a/Shorewall/Perl/Shorewall/Compiler.pm +++ b/Shorewall/Perl/Shorewall/Compiler.pm @@ -89,7 +89,12 @@ sub generate_script_1( $ ) { emit "#!$config{SHOREWALL_SHELL}\n#\n# Compiled firewall script generated by Shorewall $globals{VERSION} - $date\n#"; - copy $globals{SHAREDIRPL} . 'prog.header'; + if ( $family == F_IPV4 ) { + copy $globals{SHAREDIRPL} . 'prog.header'; + } else { + copy $globals{SHAREDIRPL} . 'prog.header6'; + } + copy2 $globals{SHAREDIRPL} . '/lib.core', 0; copy2 $globals{SHAREDIRPL} . '/lib.common', 0; } diff --git a/Shorewall/Perl/prog.header6 b/Shorewall/Perl/prog.header6 new file mode 100644 index 000000000..3dc9a2d32 --- /dev/null +++ b/Shorewall/Perl/prog.header6 @@ -0,0 +1,26 @@ +# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt] +# +# (c) 1999-2012 - Tom Eastep (teastep@shorewall.net) +# +# Options are: +# +# -n Don't alter Routing +# -v and -q Standard Shorewall Verbosity control +# -t Timestamp progress messages +# -p Purge conntrack table +# -r Recover from failed start/restart +# -V Set verbosity level explicitly +# -R Overrides RESTOREFILE setting +# +# Commands are: +# +# start Starts the firewall +# refresh Refresh the firewall +# restart Restarts the firewall +# reload Reload the firewall +# clear Removes all firewall rules +# stop Stops the firewall +# status Displays firewall status +# version Displays the version of Shorewall that +# generated this program +#