ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Motsyo Gennadi aka Drool <motsyo@gmail.com>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] непонятки с прозрачным прокси (ALS4.0.1)
Date: Wed, 15 Aug 2007 12:33:43 +0300
Message-ID: <46C2C877.6020407@gmail.com> (raw)
In-Reply-To: <20070815092002.GD16907@xeon.vladregion.ru>

Alexander Volkov пишет:
> GaD> 		echo -n "Starting NAT: "
> MGaD> 			iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport www -i ppp0 -j DNAT --to 192.168.1.14:3128 \
> MGaD> 			&& iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport www -i ppp0 -j DNAT --to 192.168.2.1:3128 \
> Ну, обычно делается -j REDIRECT в случае локальной системы.
> У Вас что-то сильно сложнее? squid на localhost не висит?

	У шлюза IP динамический, работает через ADSL-соединение, к нему 
подключаются на ppp0.

> MGaD> 			&& echo 1 > /proc/sys/net/ipv4/ip_forward \
> MGaD> 			&& iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE \
> MGaD> 			&& success



  reply	other threads:[~2007-08-15  9:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14  8:43 Alexander Yereschenko
2007-08-14 15:59 ` Motsyo Gennadi aka Drool
2007-08-14 17:34   ` Grigory Batalov
2007-08-14 18:05     ` Motsyo Gennadi aka Drool
2007-08-14 17:35   ` Alexander Yereshenko
2007-08-14 17:51     ` Motsyo Gennadi aka Drool
2007-08-15  6:07       ` Alexander Volkov
2007-08-15  8:44         ` Motsyo Gennadi aka Drool
2007-08-15  9:20           ` Alexander Volkov
2007-08-15  9:33             ` Motsyo Gennadi aka Drool [this message]
2007-08-15  9:25           ` Alexander Yereschenko
2007-08-15  9:56             ` Motsyo Gennadi aka Drool
2007-08-15 10:14               ` Alexander Yereschenko

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=46C2C877.6020407@gmail.com \
    --to=motsyo@gmail.com \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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