ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Polovnikov Denis <altlinux@lg-support.ru>
To: Alexey Morsov <community@altlinux.ru>
Subject: Re[2]: [Comm] iptables
Date: Thu, 8 Apr 2004 16:38:50 +0400
Message-ID: <525249993.20040408163850@lg-support.ru> (raw)
In-Reply-To: <40753442.5080505@ricom.ru>

Здравствуйте, Alexey.

Вы писали 8 апреля 2004 г., 15:15:14:



AM> Polovnikov Denis wrote:
>> Здравствуйте, Nikita.
>> 
>> Вы писали 8 апреля 2004 г., 10:21:55:
>> 
>> 
>> Добил я всетаки iptables пакеты он теперь перекидывает на Сквид
>> :-)Всем спасибо за советы.
AM> А не скажите в чем было дело - интересно 8-)
В iptables 2 страки следующего содержания прописать надо было.

-A PREROUTING -s 192.168.12.0/24 -d ! 192.168.12.1 -p tcp -m multiport --dport 80 -j REDIRECT --to-port 3128
-A PREROUTING -s 192.168.12.0/24 -d ! 192.168.12.1 -p udp -m multiport --dport 80 -j REDIRECT --to-port 3128

>> 
>> Трабла с правами доступа у сквида написал ACL не пущает... разрешаю
>> доступ для всех пущает. Подскажите в чем я не прав.
AM> Правила (естественно) обрабатывають до первого совпадения,
AM> т.е. скажем если написано

AM> acl src mynet 192.168.130.0/28
AM> http_access allow mynet
AM> http_access deny all

AM> то все из mynet сетки пройдут - остальные нет
AM> А вот если написать
AM> http_access deny all
AM> http_access allow mynet - то конено (посколько all = 0/0) mynet 
AM> тоже удйет курить бамбук

Спасибо что разьяснил этого нюанса я не знал :-)))

AM> Могу поделить примерами если надо - работает именно как и должно

-- 
С уважением,
 Polovnikov                          mailto:altlinux@lg-support.ru



  reply	other threads:[~2004-04-08 12:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06  9:01 Polovnikov Denis
2004-04-06  9:01 ` Nikita Semenov
2004-04-06  9:09   ` Gennadiy Redko
2004-04-06 11:55 ` Alexey Morsov
2004-04-06 13:35   ` Re[2]: " Polovnikov Denis
2004-04-06 13:56     ` Alexey Morsov
2004-04-07  4:24     ` Re[2]: " Mike Lykov
2004-04-07  9:22       ` Re[4]: " Polovnikov Denis
2004-04-07 10:20       ` Polovnikov Denis
2004-04-07 10:29         ` Mike Lykov
2004-04-07 10:36           ` Alexey Morsov
2004-04-07 10:55         ` Re[5]: " Nikita Semenov
2004-04-08  5:55           ` Re[6]: " Polovnikov Denis
2004-04-08  6:21             ` Re[7]: " Nikita Semenov
2004-04-08  9:57               ` Re[8]: " Polovnikov Denis
2004-04-08 11:15                 ` Alexey Morsov
2004-04-08 12:38                   ` Polovnikov Denis [this message]
2004-04-08 12:46                     ` Alexey Morsov
2004-04-08 15:40                       ` Roman Savochenko
2004-04-09  3:38                         ` Mike Lykov
2004-05-06  9:09                         ` 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=525249993.20040408163850@lg-support.ru \
    --to=altlinux@lg-support.ru \
    --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