ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Pavel <p2n@ya.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Squid и Apache не работают
Date: Wed, 14 Nov 2012 16:05:27 +0400
Message-ID: <k801e6$nat$1@ger.gmane.org> (raw)
In-Reply-To: <op.wm5ctafr3gk07y@mb1>

> iptables -I PREROUTING -t nat -s 192.168.2.0/24 -p tcp --dport 80 -j
> DNAT --to 192.168.2.1:3128

Если нет необходимости из локальной сети на apache ходить через squid, 
то замените на:
iptables -t nat -I PREROUTING -s 192.168.2.0/24 ! -d 192.168.2.1 -p tcp 
--dport 80 -j DNAT --to 192.168.2.1:3128


-- 
Pavel



      parent reply	other threads:[~2012-11-14 12:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02 12:59 waryhint
2012-11-03 15:47 ` Michael Shigorin
2012-11-14 12:05 ` Pavel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='k801e6$nat$1@ger.gmane.org' \
    --to=p2n@ya.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git