From: Чужой <kisan2@yandex.ru>
To: <mandrake-russian@altlinux.ru>
Subject: [mdk-re] Re: [mdk-re] Ликбез
Date: Wed Feb 27 18:01:06 2002
Message-ID: <017e01c1bfa0$34e9e1a0$c8df36c3@LocalHost> (raw)
In-Reply-To: <467208825.20020227150910@mail.ru>
> Объясните пожалуйста барану (мне) основы настройки маскарада
>
> У меня имеется скрипт в котором описаны правила ipchains
> нужно собрать на другой машине систему и привинтить те же правила
> +подсчет трафика.
>
> Скрипты что у меня есть были написаны не ручками (и не мной)
> а сгенерированы какой-то программой . (Вроде pmfirewall но я не
> уверен )
>
> Скачал/установил ipchains включил в ядре маскарад ,привинтил
> ppp (к провайдеру) соединился и скормил ipchains кучу правил.
>
> Сказал ipchains-save >x . Результат привожу ниже
>
> :input ACCEPT
> :forward DENY
Зачем сюда DENY воткнуто? когда в цепочках input и output должно
фильтроваться лишнее!
> :output ACCEPT
> :acctboth -
>
> -A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j acctboth
> -A input -s 192.168.0.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -j ACCEPT
> -A forward -s 192.168.0.0/255.255.255.0 -d 192.168.0.0/255.255.255.0 -j
ACCEPT
> -A forward -s 80.80.107.179/255.255.255.255 -d 0.0.0.0/0.0.0.0 -j ACCEPT
Че-то вот эти 2 верхние строчки ИМХО лишние! Или вы хотите через них
трафик считать?
> -A forward -s 192.168.0.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -j MASQ
> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j acctboth
> -A output -s 192.168.0.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -j ACCEPT
> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 80:80 -p 6 -t 01 10
> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 22:22 -p 6 -t 01 10
> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 23:23 -p 6 -t 01 10
> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 21:21 -p 6 -t 01 10
> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 110:110 -p 6 -t 01 10
> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 25:25 -p 6 -t 01 10
> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 20:20 -p 6 -t 01 08
По верхним 7 строчкам могу сказать одно - БОЖЕ - КТО ЭТО ПИСАЛ? КТО
ПИСАЛ ПРОГУ АВТОМАТИЧЕСКИ ГЕНЕРЯЩУЮ ТАКОЕ??? Я вот о чем: стоит -d
0.0.0.0/0.0.0.0 20:20, означает, что получатель кто угодно, при условии что
используется дипазон портов от 20 и до 20!!! Это зачем такой изврат? Ладно
там понимаю такой вариант: -d 0.0.0.0/0.0.0.0 20:80.
> -A output -s 192.168.0.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -p 1 -j ACCEPT
> -A acctboth -s 80.80.111.230/255.255.255.255 -d 0.0.0.0/0.0.0.0
> -A acctboth -s 0.0.0.0/0.0.0.0 -d 80.80.111.230/255.255.255.255
> -A acctboth -s 80.80.111.230/255.255.255.255 -d 0.0.0.0/0.0.0.0
> -A acctboth -s 0.0.0.0/0.0.0.0 -d 80.80.111.230/255.255.255.255
> -A acctboth -s 80.80.111.230/255.255.255.255 -d 0.0.0.0/0.0.0.0
> -A acctboth -s 0.0.0.0/0.0.0.0 -d 80.80.111.230/255.255.255.255
> -A acctboth -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0
А цепочка acctboth что дает? Так и не понял - ACCEPT или DENY?
next prev parent reply other threads:[~2002-02-27 18:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-27 15:02 roman_tutov
2002-02-27 15:18 ` cornet
2002-02-28 10:33 ` [mdk-re] Re[2]: " roman_tutov
2002-02-28 11:00 ` "Баталов Григорий"
2002-02-28 13:47 ` [mdk-re] Ликбе cornet
2002-02-28 14:42 ` [mdk-re] " roman_tutov
2002-02-28 15:29 ` cornet
2002-02-28 16:40 ` [mdk-re] Re[2]: " roman_tutov
2002-02-28 12:14 ` [mdk-re] Re[2]: [mdk-re] Ликбез roman_tutov
2002-02-27 18:01 ` Чужой [this message]
2002-02-28 10:42 ` [mdk-re] Re: [mdk-re] " roman_tutov
2002-02-28 11:44 ` [mdk-re] Re: [mdk-re] Dmitry Lebkov
2002-02-28 19:54 ` [mdk-re] Re: [mdk-re] Re: [mdk-re] Re: [mdk-re] Ликб Чужой
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='017e01c1bfa0$34e9e1a0$c8df36c3@LocalHost' \
--to=kisan2@yandex.ru \
--cc=mandrake-russian@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