Browse Source

Andreas V. Meier:


			
			
				rocklinux
			
			
		
Andreas V. 'netrunner' Meier 20 years ago
parent
commit
249c567122
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      package/base/iptables/rocknet_iptables.sh

+ 10
- 2
package/base/iptables/rocknet_iptables.sh

@ -21,8 +21,16 @@ iptables_parse_conditions() {
shift
;;
tcp|udp)
iptables_cond="$iptables_cond -p $1 --dport $2"
shift; shift
case "$2" in
from)
iptables_cond="$iptables_cond -p $1 --sport $3"
shift; shift; shift;
;;
*)
iptables_cond="$iptables_cond -p $1 --dport $2"
shift; shift
;;
esac
;;
icmp)
iptables_cond="$iptables_cond -p icmp --icmp-type $2"

Loading…
Cancel
Save