ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vladimir Karpinsky <vkarpinsky@mail.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] iptables и port masquerade
Date: Sun, 18 Dec 2005 16:34:43 +0300
Message-ID: <1497137930.20051218163443@mail.ru> (raw)
In-Reply-To: <20051206173945.42ed97e2@hj.acoustics.ru>

Здравствуйте!

Вы писали 6 декабря 2005 г., 15:39:45:

МЕА> На счет макарада не знаю, а вот переадресация портов
МЕА> (прозрачный прокси) у меня сделана так:
МЕА> $ipt -t nat -A PREROUTING -s 192.168.1.0/24 -d !
МЕА> 192.168.4.10 -p tcp --dport 80 -j REDIRECT --to-ports 3128
МЕА> запрос приходящий на машину на 80 порт перенаправляется
МЕА> сквиду на 3128 и затем со сквида уходит в и-нет

Скажите, пожалуйста, а не приходилось делать аналогичную вещь, но
в случае, когда squid стоит на другой машине? Т.е. сеть:
192.168.1.0, шлюз: 192.168.1.1 (iptables там же), proxy:
192.168.1.2; хочется чтобы все пакеты идущие на 80 порт со всех
машин кроме 192.168.1.2 отправлялись на 192.168.1.2:3128, а
оттуда уже наружу. Несколько раз пробовал такую штуку написать,
но заставить работать (т.е. правильно написать) так и не смог.


-- 
С уважением,
 Vladimir                          



  reply	other threads:[~2005-12-18 13:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 15:49 Olvin
2005-11-29 17:56 ` Dmitry Marochko
2005-11-30  7:29   ` Olvin
2005-11-30 20:12     ` Dmitry Marochko
2005-12-01  7:59       ` Olvin
2005-12-06 12:39         ` Мерзляков Евгений Анатольевич
2005-12-18 13:34           ` Vladimir Karpinsky [this message]
2005-12-19  4:41             ` Мерзляков Евгений Анатольевич
2005-12-19  8:08             ` Peter Volkov
2005-12-19 11:23               ` Vladimir Karpinsky

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=1497137930.20051218163443@mail.ru \
    --to=vkarpinsky@mail.ru \
    --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