ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Linux Gate
@ 2003-11-25 12:41 Alexey Morsov
  2003-11-25 13:16 ` Dmitry Nechaev
  2003-11-26  7:52 ` [Comm] " Денис Смирнов
  0 siblings, 2 replies; 33+ messages in thread
From: Alexey Morsov @ 2003-11-25 12:41 UTC (permalink / raw)
  To: community

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Привет,

Есть необходимость настроить на базе linux-машины gate для
небольшой (30-40 компьютеров) сетки с выходом как в интеренет
через ADSL.
Сейчас сетка выходит в  инет через cisco текущего провайдера
(ADSL будем брать у другого).

Теоритические исследования привели к слудующему порядку действий:
1. На linux-машине ставим две сетевые карты. Одной даем фэйковый
адрес и втыкаем в локальную сеть, другой даем внешний адрес
(который дадут нам с ADSL) и втыкаем в нее ADSL.
2. Поднимаем и настроаиваем iptables так что бы все порты извне
кроме http, ftp и https были закрыты.
3. Указываем в правилах iptables так что бы все запросы из
феёкового пространства адресов форвардились на второй интерфейс.
4. Заводим все http, ftp и  https запросы пользователй на прокси.

И вот тут у меня непонятки... Как можно закинуть (и можно ли) все
запросы по http, ftp, https на прокси (без transparent_proxy)?
Или можно как-то запретить http-трафик в обход прокси (ну т.е.
если у юзера в браузере прописаны настйроки прокси - милости
просим, а если нет - гуляй)?
И еще один вопрос возникает - в машине с двумя сетевыми картами
на какую из них будет посылать обработанный запрос squid? Там
есть опция tcp_outgoing_address но я не уверен что это оно...

Буду очень благодарен за любую помощь ибо мои мозги уже
окончательно плавяться (а покупать еще одну двухзпортовую cisco с
настройкой под ключ не хочется да и дороговато)..

- --
Заранее благодарен,
Алексей
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/w03lanU3DZdZEiwRAgJ6AJ91bidIp20CQSbx1HECEOqnQjUAHACfddWa
x6ofZynJiA/BRsaGuajfuoc=
=DnbO
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Linux Gate
  2003-11-25 12:41 [Comm] Linux Gate Alexey Morsov
@ 2003-11-25 13:16 ` Dmitry Nechaev
  2003-11-26  7:52 ` [Comm] " Денис Смирнов
  1 sibling, 0 replies; 33+ messages in thread
From: Dmitry Nechaev @ 2003-11-25 13:16 UTC (permalink / raw)
  To: community

В сообщении от Вторник 25 Ноябрь 2003 15:41 Alexey Morsov написал(a):

>
> Есть необходимость настроить на базе linux-машины gate для
> небольшой (30-40 компьютеров) сетки с выходом как в интеренет
> через ADSL.
> Сейчас сетка выходит в  инет через cisco текущего провайдера
> (ADSL будем брать у другого).
>
> Теоритические исследования привели к слудующему порядку действий:
> 1. На linux-машине ставим две сетевые карты. Одной даем фэйковый
> адрес и втыкаем в локальную сеть, другой даем внешний адрес
> (который дадут нам с ADSL) и втыкаем в нее ADSL.
> 2. Поднимаем и настроаиваем iptables так что бы все порты извне
> кроме http, ftp и https были закрыты.
У тебя есть необходимость держать у себя http/ftp сервера?

> 3. Указываем в правилах iptables так что бы все запросы из
> феёкового пространства адресов форвардились на второй интерфейс.
> 4. Заводим все http, ftp и  https запросы пользователй на прокси.
iptables -A PREROUTING....

>
> И вот тут у меня непонятки... Как можно закинуть (и можно ли) все
> запросы по http, ftp, https на прокси (без transparent_proxy)?
Просто закрываешь форвард по портам 20, 21, 80 и 443.

> Или можно как-то запретить http-трафик в обход прокси (ну т.е.
> если у юзера в браузере прописаны настйроки прокси - милости
> просим, а если нет - гуляй)?
Так и выйдет.

> И еще один вопрос возникает - в машине с двумя сетевыми картами
> на какую из них будет посылать обработанный запрос squid? Там
> есть опция tcp_outgoing_address но я не уверен что это оно...
squid послыает запрос на хост, а пакеты на этот хост идут в соответствии с 
таблицей маршрутизации ядра. Плясать с бубном тут вовсе не нужно.

>
> Буду очень благодарен за любую помощь ибо мои мозги уже
> окончательно плавяться (а покупать еще одну двухзпортовую cisco с
> настройкой под ключ не хочется да и дороговато)..
ничего трудного тут нет.

-- 
2.4.20-alt5-up GNU/Linux

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-25 12:41 [Comm] Linux Gate Alexey Morsov
  2003-11-25 13:16 ` Dmitry Nechaev
@ 2003-11-26  7:52 ` Денис Смирнов
  2003-11-26  8:14   ` Andrey Rahmatullin
  2003-11-26  9:40   ` Alexey Morsov
  1 sibling, 2 replies; 33+ messages in thread
From: Денис Смирнов @ 2003-11-26  7:52 UTC (permalink / raw)
  To: community

On Tue, Nov 25, 2003 at 03:41:09PM +0300, Alexey Morsov wrote:

 > Есть необходимость настроить на базе linux-машины gate для
 > небольшой (30-40 компьютеров) сетки с выходом как в интеренет
 > через ADSL.

Ключевые слово для поиска документации -- NAT, MASWUERADE.
 
 > 2. Поднимаем и настроаиваем iptables так что бы все порты извне
 > кроме http, ftp и https были закрыты.

Зачем открывать http, ftp, https? Это нужно только если на этой машине
есть соответствующие сервера. Обычно снаружи бывает смысл держать smtp, и,
если админ удалённый, то ssh.
 
 > 3. Указываем в правилах iptables так что бы все запросы из
 > феёкового пространства адресов форвардились на второй интерфейс.

_Форвардились_ это указывается в route. А в iptables нужно настроить NAT.
 
 > 4. Заводим все http, ftp и  https запросы пользователй на прокси.

С ftp, AFAIK, малореально, да и ненужно чаще всего. Пусть лучше через NAT
ходят. Или нужно журналировать все посещения?
 
-- 
С уважением, Денис

http://dimline.ru/


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-11-26  7:52 ` [Comm] " Денис Смирнов
@ 2003-11-26  8:14   ` Andrey Rahmatullin
  2003-11-26  9:40   ` Alexey Morsov
  1 sibling, 0 replies; 33+ messages in thread
From:  @ 2003-11-26  8:14 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-11-26  7:52 ` [Comm] " Денис Смирнов
  2003-11-26  8:14   ` Andrey Rahmatullin
@ 2003-11-26  9:40   ` Alexey Morsov
  2003-11-26 12:56     ` Денис Смирнов
  1 sibling, 1 reply; 33+ messages in thread
From:  @ 2003-11-26  9:40 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-26  9:40   ` Alexey Morsov
@ 2003-11-26 12:56     ` Денис Смирнов
  2003-11-26 15:02       ` Alexey Morsov
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-26 12:56 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-11-26 12:56     ` Денис Смирнов
@ 2003-11-26 15:02       ` Alexey Morsov
  2003-11-27  3:02         ` Денис Смирнов
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-26 15:02 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-26 15:02       ` Alexey Morsov
@ 2003-11-27  3:02         ` Денис Смирнов
  2003-11-27  3:30           ` aek
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-27  3:02 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-11-27  3:02         ` Денис Смирнов
@ 2003-11-27  3:30           ` aek
  2003-11-27  4:04             ` Денис Смирнов
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-27  3:30 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-27  3:30           ` aek
@ 2003-11-27  4:04             ` Денис Смирнов
  2003-11-27  7:52               ` aek
  2003-11-27  8:07               ` Michael Shigorin
  0 siblings, 2 replies; 33+ messages in thread
From:  @ 2003-11-27  4:04 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-11-27  4:04             ` Денис Смирнов
@ 2003-11-27  7:52               ` aek
  2003-11-27  8:07                 ` Michael Shigorin
  2003-11-27 11:45                 ` Денис Смирнов
  2003-11-27  8:07               ` Michael Shigorin
  1 sibling, 2 replies; 33+ messages in thread
From:  @ 2003-11-27  7:52 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-27  4:04             ` Денис Смирнов
  2003-11-27  7:52               ` aek
@ 2003-11-27  8:07               ` Michael Shigorin
  2003-11-27 11:49                 ` Денис Смирнов
                                   ` (2 more replies)
  1 sibling, 3 replies; 33+ messages in thread
From:  @ 2003-11-27  8:07 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-27  7:52               ` aek
@ 2003-11-27  8:07                 ` Michael Shigorin
  2003-11-27 11:45                 ` Денис Смирнов
  1 sibling, 0 replies; 33+ messages in thread
From:  @ 2003-11-27  8:07 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-27  7:52               ` aek
  2003-11-27  8:07                 ` Michael Shigorin
@ 2003-11-27 11:45                 ` Денис Смирнов
  1 sibling, 0 replies; 33+ messages in thread
From:  @ 2003-11-27 11:45 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-27  8:07               ` Michael Shigorin
@ 2003-11-27 11:49                 ` Денис Смирнов
  2003-11-28 21:59                   ` Michael Shigorin
  2003-11-27 15:52                 ` [Comm] DROP vs. REJECT (was: Linux Gate) Andrey Rahmatullin
  2003-11-30 14:32                 ` [Comm] Re: Linux Gate Maxim Tyurin
  2 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-27 11:49 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] DROP vs. REJECT (was: Linux Gate)
  2003-11-27  8:07               ` Michael Shigorin
  2003-11-27 11:49                 ` Денис Смирнов
@ 2003-11-27 15:52                 ` Andrey Rahmatullin
  2003-11-28  8:02                   ` [Comm] Re: DROP vs. JECT " Денис Смирнов
  2003-11-30 14:32                 ` [Comm] Re: Linux Gate Maxim Tyurin
  2 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-27 15:52 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: DROP vs. JECT (was: Linux Gate)
  2003-11-27 15:52                 ` [Comm] DROP vs. REJECT (was: Linux Gate) Andrey Rahmatullin
@ 2003-11-28  8:02                   ` Денис Смирнов
  2003-11-28  8:14                     ` Dmytro O. Redchuk
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-28  8:02 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: DROP vs. JECT (was: Linux Gate)
  2003-11-28  8:02                   ` [Comm] Re: DROP vs. JECT " Денис Смирнов
@ 2003-11-28  8:14                     ` Dmytro O. Redchuk
  0 siblings, 0 replies; 33+ messages in thread
From:  @ 2003-11-28  8:14 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-27 11:49                 ` Денис Смирнов
@ 2003-11-28 21:59                   ` Michael Shigorin
  2003-11-29  5:00                     ` Денис Смирнов
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-28 21:59 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-28 21:59                   ` Michael Shigorin
@ 2003-11-29  5:00                     ` Денис Смирнов
  2003-11-29 10:29                       ` Michael Shigorin
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-29  5:00 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-29  5:00                     ` Денис Смирнов
@ 2003-11-29 10:29                       ` Michael Shigorin
  2003-11-30  8:04                         ` Денис Смирнов
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-29 10:29 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-29 10:29                       ` Michael Shigorin
@ 2003-11-30  8:04                         ` Денис Смирнов
  0 siblings, 0 replies; 33+ messages in thread
From:  @ 2003-11-30  8:04 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-11-27  8:07               ` Michael Shigorin
  2003-11-27 11:49                 ` Денис Смирнов
  2003-11-27 15:52                 ` [Comm] DROP vs. REJECT (was: Linux Gate) Andrey Rahmatullin
@ 2003-11-30 14:32                 ` Maxim Tyurin
  2003-11-30 21:46                   ` Денис Смирнов
  2 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-11-30 14:32 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-11-30 14:32                 ` [Comm] Re: Linux Gate Maxim Tyurin
@ 2003-11-30 21:46                   ` Денис Смирнов
  2003-12-01  4:24                     ` Gosha
  2003-12-01  7:52                     ` Maxim Tyurin
  0 siblings, 2 replies; 33+ messages in thread
From:  @ 2003-11-30 21:46 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-11-30 21:46                   ` Денис Смирнов
@ 2003-12-01  4:24                     ` Gosha
  2003-12-01  9:43                       ` Denis Smirnov
  2003-12-01  7:52                     ` Maxim Tyurin
  1 sibling, 1 reply; 33+ messages in thread
From:  @ 2003-12-01  4:24 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-11-30 21:46                   ` Денис Смирнов
  2003-12-01  4:24                     ` Gosha
@ 2003-12-01  7:52                     ` Maxim Tyurin
  2003-12-01 11:17                       ` Денис Смирнов
  1 sibling, 1 reply; 33+ messages in thread
From:  @ 2003-12-01  7:52 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-12-01  4:24                     ` Gosha
@ 2003-12-01  9:43                       ` Denis Smirnov
  2003-12-01 11:33                         ` Maxim Tyurin
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-12-01  9:43 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-12-01  7:52                     ` Maxim Tyurin
@ 2003-12-01 11:17                       ` Денис Смирнов
  2003-12-01 18:10                         ` Maxim Tyurin
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-12-01 11:17 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-12-01  9:43                       ` Denis Smirnov
@ 2003-12-01 11:33                         ` Maxim Tyurin
  2003-12-01 19:04                           ` Денис Смирнов
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-12-01 11:33 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-12-01 11:17                       ` Денис Смирнов
@ 2003-12-01 18:10                         ` Maxim Tyurin
  0 siblings, 0 replies; 33+ messages in thread
From:  @ 2003-12-01 18:10 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-12-01 11:33                         ` Maxim Tyurin
@ 2003-12-01 19:04                           ` Денис Смирнов
  2003-12-01 19:50                             ` Maxim Tyurin
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-12-01 19:04 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [Comm] Re: Linux Gate
  2003-12-01 19:04                           ` Денис Смирнов
@ 2003-12-01 19:50                             ` Maxim Tyurin
  2003-12-02  7:57                               ` Денис Смирнов
  0 siblings, 1 reply; 33+ messages in thread
From:  @ 2003-12-01 19:50 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

* [Comm] Re: Linux Gate
  2003-12-01 19:50                             ` Maxim Tyurin
@ 2003-12-02  7:57                               ` Денис Смирнов
  0 siblings, 0 replies; 33+ messages in thread
From:  @ 2003-12-02  7:57 UTC (permalink / raw)




^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2003-12-02  7:57 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25 12:41 [Comm] Linux Gate Alexey Morsov
2003-11-25 13:16 ` Dmitry Nechaev
2003-11-26  7:52 ` [Comm] " Денис Смирнов
2003-11-26  8:14   ` Andrey Rahmatullin
2003-11-26  9:40   ` Alexey Morsov
2003-11-26 12:56     ` Денис Смирнов
2003-11-26 15:02       ` Alexey Morsov
2003-11-27  3:02         ` Денис Смирнов
2003-11-27  3:30           ` aek
2003-11-27  4:04             ` Денис Смирнов
2003-11-27  7:52               ` aek
2003-11-27  8:07                 ` Michael Shigorin
2003-11-27 11:45                 ` Денис Смирнов
2003-11-27  8:07               ` Michael Shigorin
2003-11-27 11:49                 ` Денис Смирнов
2003-11-28 21:59                   ` Michael Shigorin
2003-11-29  5:00                     ` Денис Смирнов
2003-11-29 10:29                       ` Michael Shigorin
2003-11-30  8:04                         ` Денис Смирнов
2003-11-27 15:52                 ` [Comm] DROP vs. REJECT (was: Linux Gate) Andrey Rahmatullin
2003-11-28  8:02                   ` [Comm] Re: DROP vs. JECT " Денис Смирнов
2003-11-28  8:14                     ` Dmytro O. Redchuk
2003-11-30 14:32                 ` [Comm] Re: Linux Gate Maxim Tyurin
2003-11-30 21:46                   ` Денис Смирнов
2003-12-01  4:24                     ` Gosha
2003-12-01  9:43                       ` Denis Smirnov
2003-12-01 11:33                         ` Maxim Tyurin
2003-12-01 19:04                           ` Денис Смирнов
2003-12-01 19:50                             ` Maxim Tyurin
2003-12-02  7:57                               ` Денис Смирнов
2003-12-01  7:52                     ` Maxim Tyurin
2003-12-01 11:17                       ` Денис Смирнов
2003-12-01 18:10                         ` Maxim Tyurin

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