File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2927,7 +2927,7 @@ let apply_updates ~__context ~self ~hash =
29272927 warnings
29282928
29292929let set_https_only ~__context ~self ~value =
2930- Db.Host. set_https_only ~__context ~self ~value ;
29312930 let state = match value with true -> " close" | false -> " open" in
29322931 ignore
2933- @@ Helpers. call_script ! Xapi_globs. firewall_port_config_script [state; " 80" ]
2932+ @@ Helpers. call_script ! Xapi_globs. firewall_port_config_script [state; " 80" ] ;
2933+ Db.Host. set_https_only ~__context ~self ~value
Original file line number Diff line number Diff line change @@ -16,9 +16,17 @@ set -e
1616OP=" $1 "
1717PORT=" $2 "
1818PROTOCOL=" ${3:- tcp} "
19- CHAIN=" xapi-INPUT"
2019RULE=" -p $PROTOCOL -m conntrack --ctstate NEW -m $PROTOCOL --dport $PORT -j ACCEPT"
2120
21+ case " $PORT " in
22+ 80)
23+ CHAIN=" RH-Firewall-1-INPUT"
24+ ;;
25+ * )
26+ CHAIN=" xapi-INPUT"
27+ ;;
28+ esac
29+
2230case " ${OP} " in
2331 open)
2432 if ! iptables -C $CHAIN $RULE 2> /dev/null
You can’t perform that action at this time.
0 commit comments