ALT Linux Bugzilla
– Attachment 6134 Details for
Bug 30286
Неработоспособность human syntax и ipset
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Исправление неработоспособности human syntax и ipset
etcnet.patch (text/plain), 2.69 KB, created by
Вадим Илларионов
on 2014-09-04 10:51:22 MSK
(
hide
)
Description:
Исправление неработоспособности human syntax и ipset
Filename:
MIME Type:
Creator:
Вадим Илларионов
Created:
2014-09-04 10:51:22 MSK
Size:
2.69 KB
patch
obsolete
>--- etc/net/scripts/config-fw.old 2014-08-26 19:50:34.000000000 +0900 >+++ etc/net/scripts/config-fw 2014-09-04 14:55:04.388200175 +0900 >@@ -94,7 +94,8 @@ > unset IPTABLES_SYNTAX IPTABLES_SED_RULES > } > } >- xtables_${ACTION} "$NAME" >+ xtables_preload >+ xtables_${ACTION}Â "$NAME" > ;; > "ip6tables") > # FIXME Does ip6tables support only IPv6? >@@ -115,7 +116,8 @@ > unset IP6TABLES_SYNTAX IP6TABLES_SED_RULES > } > } >- xtables_${ACTION} "$NAME" >+ xtables_preload >+ xtables_${ACTION}Â "$NAME" > ;; > "ebtables") > profiled_filename_dir cfwdir "$MYIFACEDIR/fw/$CFW_TYPE" || >@@ -125,7 +127,8 @@ > print_error "$EBTABLES not found. Please, install ebtables package" > continue > } >- xtables_${ACTION} "$NAME" >+ xtables_preload >+ xtables_${ACTION}Â "$NAME" > ;; > > *) >--- etc/net/scripts/functions-fw-old 2014-08-26 19:50:34.000000000 +0900 >+++ etc/net/scripts/functions-fw 2014-08-29 09:22:03.522038299 +0900 >@@ -421,11 +421,11 @@ > > [ -n "$HEADER" ] || return 0 > print_message -e "\tCreating the \"$SET\" set of the \"$TYPE\" type" >- eval "$IPSET -N $SET $TYPE $HEADER" || print_error "$IPSET -N $SET $TYPE $HEADER" >+ eval "$IPSET create $SET $TYPE" || print_error "$IPSET create $SET $TYPE" > > [ -n "$MEMBERS" ] || return 0 > while read; do >- eval "$IPSET -A $SET $REPLY" || print_error "$IPSET -A $SET $REPLY" >+ eval "$IPSET add $SET $REPLY" || print_error "$IPSET add $SET $REPLY" > done <<<"$MEMBERS" > } > >@@ -439,7 +439,7 @@ > > [ -n "$RULE" ] || return 0 > print_message -e "\tDestroying the \"$SET\" set of the \"$TYPE\" type" >- eval "$IPSET -X $SET" || print_error "$IPSET -X $SET" >+ eval "$IPSET destroy $SET" || print_error "$IPSET destroy $SET" > } > > ipset_start() >--- etc/net/ifaces/default/fw/iptables/syntax.old 2014-08-26 19:50:34.000000000 +0900 >+++ etc/net/ifaces/default/fw/iptables/syntax 2014-09-04 15:08:22.064312826 +0900 >@@ -175,9 +175,12 @@ > physdev-is-out: -mphysdev --physdev-is-out > physdev-is-bridged: -mphysdev --physdev-is-bridged > pkttype: -mpkttype --pkt-type >-random: -mrandom --average >+random: -mrandom --average > realm: -mrealm --realm >-set: -mset --set >+set: -mset --match-set >+in-set: -mset --match-set >+out-set: -mset ! --match-set >+not-in-set: -mset ! --match-set > state: -mstate --state > tcp-source-port: -mtcp --source-port > tcp-src-port: -mtcp --source-port >@@ -212,10 +215,8 @@ > > # Parameters > from: --src >-src: --src > source: --src > to: --dst >-dst: --dst > destination: --dst > sport: --source-port > src-port: --source-port >@@ -234,6 +235,7 @@ > udp: --protocol UDP > icmp: --protocol ICMP > gre: --protocol GRE >+ospf: --protocol OSPF > jump: -j > jump-to: -j > any: 0.0.0.0/0
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 30286
: 6134