ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Nizamov Shavkat" <shawkat@samdu.uz>
To: community@altlinux.ru
Subject: Re: [Comm] Iptables и https
Date: Wed, 29 Sep 2004 17:48:59 +0500 (UZT)
Message-ID: <58330.194.67.216.221.1096462139.squirrel@www.samdu.uz> (raw)
In-Reply-To: <415AAC4F.6090806@elan.com.ua>

> Alexey Morsov пишет:
>
>>
>> Slava Dubrovskiy wrote:
>>
>>>> ну а в PREROUTING то 443 добавлен?
>>>>
>>> Если я хочу его завернуть на сквид, то вот так:
>>> $IPTABLES -t nat -A PREROUTING -s $LAN_IP_RANGE -p tcp --dport 443 -j
>>> REDIRECT --to-port 3128
>>> Но для начала я хочу без сквида заставить его работать.
>>
>> А ты его открыл в FORWARD чтобы оно работало? И зачем кстати OUTPUT в
>> DROP?
>>
>> Попробуй на нашем https://www.ricom.ru
>
> Вот открыл вот так
>  $IPTABLES -A FORWARD -p tcp --dport 443 -s $LAN_IP_RANGE -j ACCEPT
>  $IPTABLES -A FORWARD -p tcp --sport 443 -s $LAN_IP_RANGE -j ACCEPT
> и вроде заработало. :-)
>
> Ошибка была в том, что я открывал или --sport или --dport. Объясните это
> правильно указывать их оба?

правильно открывать dport - это порт назначения. sport - исходящий порт на
клиенте, он обычно произвольно выбирается самим клиентским ПО.

и кстати не надо заворачивать 443 порт на сквид.


  reply	other threads:[~2004-09-29 12:48 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-29 10:28 Slava Dubrovskiy
2004-09-29 10:37 ` Alexey Morsov
2004-09-29 10:40   ` Slava Dubrovskiy
2004-09-29 10:43     ` Alexey Morsov
2004-09-29 10:47       ` Slava Dubrovskiy
2004-09-29 10:51         ` Slava Dubrovskiy
2004-09-29 10:57           ` Alexey Morsov
2004-09-29 10:52         ` Alexey Morsov
2004-09-29 10:56           ` Slava Dubrovskiy
2004-09-29 11:04             ` Alexey Morsov
2004-09-29 11:14               ` Slava Dubrovskiy
2004-09-29 11:30                 ` Alexey Morsov
2004-09-29 12:36                   ` Slava Dubrovskiy
2004-09-29 12:48                     ` Nizamov Shavkat [this message]
2004-09-29 13:04                       ` Slava Dubrovskiy
2004-09-29 12:49                   ` Slava Dubrovskiy
2004-09-29 12:51                     ` Nizamov Shavkat
2004-09-29 13:29                     ` Alexey Morsov
2004-09-30  6:20                       ` Slava Dubrovskiy
2004-09-30  6:34                         ` Alexey Morsov
2004-09-30  6:46                           ` Slava Dubrovskiy
2004-09-30  6:50                             ` Alexey Morsov
2004-09-30  6:58                               ` Slava Dubrovskiy
2004-09-29 13:03 ` [Comm] Iptables É https Peter Teslenko
2004-09-29 13:06   ` [Comm] Iptables и https Slava Dubrovskiy
2004-09-29 13:30     ` Alexey Morsov

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=58330.194.67.216.221.1096462139.squirrel@www.samdu.uz \
    --to=shawkat@samdu.uz \
    --cc=community@altlinux.ru \
    /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