From: "Шишков Евгений Витальевич" <evgen@tulanews.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Помогите plz с iptables
Date: Wed, 12 Jul 2006 09:10:26 +0400
Message-ID: <44B48442.4070203@tulanews.ru> (raw)
In-Reply-To: <44B34EC0.8090801@altlinux.ru>
Anton Gorlov пишет:
> Шишков Евгений Витальевич пишет:
>
>> Возникла потребность.
>> Есть локальная сеть. Инет есть не у всех.
>> Всех у кого нет инета нужно выпустить только до одного хоста.
>> В качестве разрешалки/считалки инета установлен stargazer.
>> Нужно написать цепочку, чтоб без авторизации и т.п. с любого компа внутри сети
>> можно было зайти на единственный хост в инете.
>> Пока что-то не получается.
>
> iptables -t filter -N PHOTOPNZ
> iptables -t filter -A PHOTOPNZ -p tcp -d photo.pnz.ru --dport ftp -j ACCEPT
> iptables -t filter -A PHOTOPNZ -p tcp -d photo.pnz.ru --dport ftp-data
> -j ACCEPT
> iptables -t filter -A FORWARD -s host.local -j PHOTOPNZ
Все решил двумя строчками в /etc/sysconfig/iptables
в секции *filter
[0:0] -A FORWARD -s 192.168.1.0/24 -d 12.34.56.7 -j ACCEPT
[0:0] -A FORWARD -s 12.34.56.7 -d 192.168.1.0/24 -j ACCEPT
[0:0] -A INPUT -s 192.168.1.0/24 -p tcp -m tcp -i eth1 -d 12.34.56.7 -j ACCEPT
Насколько это правильно/криво?
--
С уважением,
Шишков Евгений (evgen[собак]tulanews[тчк]ru)
next prev parent reply other threads:[~2006-07-12 5:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 6:58 Шишков Евгений Витальевич
2006-07-11 7:06 ` Alexey Sidorov
2006-07-11 7:09 ` Anton Gorlov
2006-07-12 5:10 ` Шишков Евгений Витальевич [this message]
2006-07-12 5:17 ` Шенцев Алексей Владимирович
2006-07-12 5:38 ` Шишков Евгений Витальевич
2006-07-12 5:42 ` Шенцев Алексей Владимирович
2006-07-12 5:56 ` Шишков Евгений Витальевич
2006-07-12 6:02 ` Dmitriy L. Kruglikov
2006-07-12 9:10 ` Шишков Евгений Витальевич
2006-07-12 9:40 ` Dmitriy L. Kruglikov
2006-07-12 10:50 ` Шишков Евгений Витальевич
2006-07-12 12:03 ` Dmitriy L. Kruglikov
2006-07-12 12:09 ` Шишков Евгений Витальевич
2006-07-18 8:48 ` Roman Lesnichenko
2006-07-18 9:27 ` Шишков Евгений Витальевич
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=44B48442.4070203@tulanews.ru \
--to=evgen@tulanews.ru \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git