Changeset 03dc5e370ef4fbf66e34cbe5bc5b878ed764149c for tools/firewall.sh.in
- Timestamp:
- 06/08/09 11:19:03 (3 years ago)
- Children:
- 2f0141c49bb55157f24738404aa77367a6a45fed
- Parents:
- 96808c5450804cf9cc6a590500ccce6131c2b937
- git-committer:
- Neutron Soutmun <neo.neutron@…> (06/08/09 11:19:03)
- Files:
-
- 1 modified
-
tools/firewall.sh.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tools/firewall.sh.in
r9679928 r03dc5e3 536 536 # SQUID Cache-Proxy 537 537 ## 538 if [ "$PROXY" = "yes" -o"$PROXY" = "transparent" ]; then539 if [ "$PROXY_HOST" = "localhost" -o"$PROXY_HOST" = "127.0.0.1" ]; then538 if [ "$PROXY" = "yes" ] || [ "$PROXY" = "transparent" ]; then 539 if [ "$PROXY_HOST" = "localhost" ] || [ "$PROXY_HOST" = "127.0.0.1" ]; then 540 540 $IPTABLES -A $CHAIN_INPUT_AUTH -p tcp --dport $PROXY_PORT -j ACCEPT 541 541 fi 542 542 543 543 if [ "$PROXY" = "transparent" ]; then 544 if [ "$PROXY_HOST" = "localhost" -o"$PROXY_HOST" = "127.0.0.1" ]; then544 if [ "$PROXY_HOST" = "localhost" ] || [ "$PROXY_HOST" = "127.0.0.1" ]; then 545 545 $IPTABLES -t nat -A $CHAIN_NAT_PREROUTING -p tcp --dport http \ 546 -d ! $VSERVER_IP \ 546 547 -m connmark --mark 2/2 -j REDIRECT --to-ports $PROXY_PORT 547 548 else 548 549 $IPTABLES -t nat -A $CHAIN_NAT_PRETROUTING -p tcp --dport http \ 550 -d ! $VSERVER_IP \ 549 551 -m connmark --mark 2/2 \ 550 552 -j DNAT --to-destination $PROXY_HOST:$PROXY_PORT
