mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-08 14:01:47 +01:00
More IFB changes
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8297 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
693dc4ae37
commit
a6354f9748
@ -532,6 +532,16 @@ if [ -z "$CYGWIN" -a ! -f ${PREFIX}/etc/shorewall/tcdevices ]; then
|
|||||||
echo "TC Devices file installed as ${PREFIX}/etc/shorewall/tcdevices"
|
echo "TC Devices file installed as ${PREFIX}/etc/shorewall/tcdevices"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Install the tcfilters file
|
||||||
|
#
|
||||||
|
run_install $OWNERSHIP -m 0644 tcfilters ${PREFIX}/usr/share/shorewall/configfiles/tcfilters
|
||||||
|
|
||||||
|
if [ -z "$CYGWIN" -a ! -f ${PREFIX}/etc/shorewall/tcfilters ]; then
|
||||||
|
run_install $OWNERSHIP -m 0600 tcfilters ${PREFIX}/etc/shorewall/tcfilters
|
||||||
|
echo "TC Filters file installed as ${PREFIX}/etc/shorewall/tcfilters"
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install the rfc1918 file
|
# Install the rfc1918 file
|
||||||
#
|
#
|
||||||
|
@ -112,6 +112,7 @@ fi
|
|||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/route_rules
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/route_rules
|
||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/tcclasses
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/tcclasses
|
||||||
%attr(0600,root,root) %config(noreplace) /etc/shorewall/tcdevices
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/tcdevices
|
||||||
|
%attr(0600,root,root) %config(noreplace) /etc/shorewall/tcfilters
|
||||||
%attr(0600,root,root) /etc/shorewall/Makefile
|
%attr(0600,root,root) /etc/shorewall/Makefile
|
||||||
|
|
||||||
%attr(0755,root,root) /sbin/shorewall
|
%attr(0755,root,root) /sbin/shorewall
|
||||||
|
11
Shorewall-common/tcfilters
Normal file
11
Shorewall-common/tcfilters
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - Tcfilters File
|
||||||
|
#
|
||||||
|
# For information about entries in this file, type "man shorewall-tcfilters"
|
||||||
|
#
|
||||||
|
# See http://shorewall.net/traffic_shaping.htm for additional information.
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
#INTERFACE: SOURCE DEST PROTO DEST SOURCE
|
||||||
|
#CLASS PORT(S) PORT(S)
|
||||||
|
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
|
@ -56,6 +56,7 @@ our %EXPORT_TAGS = ( internal => [ qw( create_temp_object
|
|||||||
finalize_object
|
finalize_object
|
||||||
numeric_value
|
numeric_value
|
||||||
in_hex
|
in_hex
|
||||||
|
in_hex4
|
||||||
in_hex8
|
in_hex8
|
||||||
emit
|
emit
|
||||||
emit_unindented
|
emit_unindented
|
||||||
@ -529,6 +530,10 @@ sub in_hex( $ ) {
|
|||||||
sprintf '0x%x', $_[0];
|
sprintf '0x%x', $_[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub in_hex4( $ ) {
|
||||||
|
sprintf '0x%04x', $_[0];
|
||||||
|
}
|
||||||
|
|
||||||
sub in_hex8( $ ) {
|
sub in_hex8( $ ) {
|
||||||
sprintf '0x%08x', $_[0];
|
sprintf '0x%08x', $_[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user