Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 114011 Details for
Bug 171719
net-firewall/firehol - "group with dst" creates backwards rules
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
check "group with" direction to create correct firewall rules
firehol.patch (text/plain), 1008 bytes, created by
Marshal Newrock
on 2007-03-21 20:12:39 UTC
(
hide
)
Description:
check "group with" direction to create correct firewall rules
Filename:
MIME Type:
Creator:
Marshal Newrock
Created:
2007-03-21 20:12:39 UTC
Size:
1008 bytes
patch
obsolete
>--- /usr/sbin/firehol 2007-02-27 13:17:40.000000000 -0500 >+++ firehol 2007-03-21 16:02:34.000000000 -0400 >@@ -3040,6 +3040,7 @@ > > case $type in > with|start|begin) >+ local direction="${1}" > # increase the counter > FIREHOL_GROUP_COUNTER=$[FIREHOL_GROUP_COUNTER + 1] > >@@ -3053,8 +3054,14 @@ > mychain="group${FIREHOL_GROUP_COUNTER}" > > # create the new chain >- create_chain filter "in_${mychain}" "in_${work_name}" in "$@" || return 1 >- create_chain filter "out_${mychain}" "out_${work_name}" out reverse "$@" || return 1 >+ if [ "$direction" = "src" ] >+ then >+ create_chain filter "in_${mychain}" "in_${work_name}" in "$@" || return 1 >+ create_chain filter "out_${mychain}" "out_${work_name}" out reverse "$@" || return 1 >+ else >+ create_chain filter "in_${mychain}" "in_${work_name}" out reverse "$@" || return 1 >+ create_chain filter "out_${mychain}" "out_${work_name}" in "$@" || return 1 >+ fi > > # set a new name for new rules > work_name=${mychain}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 171719
: 114011