From: "Andriy Dobrovol's'kii" <dobr@iop.kiev.ua> To: community@altlinux.ru Subject: Re: [Comm] Drakgw not worked propertly Date: Fri, 16 May 2003 16:59:14 +0300 Message-ID: <3EC4EEB2.8020202@iop.kiev.ua> (raw) In-Reply-To: <3EC4DC01.9020705@progroup.ru> Valery V. Inozemtsev wrote: > Andriy Dobrovol's'kii пишет: >> >> Валерий, нет там никаких проблем. Только неделю назад всё сделал без >> всяких дрейков. Настройте iptables, настройте bind и dhcp. И вперед. >> > у меня времени нет разбираться с iptables, а задачка такая: > машина с двумя сетевухами - одна во внутреннюю сетку (домен вин2000, на > нем дшсп и днс), вторая в инет. нуна настроить маскарадинг и одних > пущать, других нет. > > Так в чем проблема-то? Ну пролистни хоть iptables tutorial. И тут это только в начале недели обсуждалось и приведены конкретные рецепты. Например от 14.05.2003, Александр Симернин : > echo 1 > proc/sys/net/ipv4/ip_dynaddr > echo 1 > proc/sys/net/ipv4/ip_forward > потом в iptables в таблице nat цепи POSTROUTING пишешь что-то > типа/sbin/iptables -t nat -A POSTROUTING -o <внещний_интерфейс> > -j MASQUERADE Ну и естественно на вин-машине шлюзом должен быть > указан внутренний интерфейс Linux'a, и Linux должен разрешать > входящие пакеты от вин-машины... В смысле разрешить все установленные исходящие: $IPTABLES -A FORWARD -i $LAN_IFACE -j ACCEPT $IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT Например так. Цитата прямо из учебника. Там несколько работающих скриптов примеров плюс тут ответят на конкретные вопросы... -- Rgrds, Andriy ********************************************************************* email: dobr at iop dot kiev dot ua Kyiv, Ukraine Phone: (380-44) 265-7824 Department of Gas Electronics Fax: (380-44) 265-2329 Institute of Physics of NASU *********************************************************************
next prev parent reply other threads:[~2003-05-16 13:59 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-05-16 10:10 dda 2003-05-16 11:00 ` Andriy Dobrovol's'kii 2003-05-16 11:10 ` Valery V. Inozemtsev 2003-05-16 12:10 ` Andriy Dobrovol's'kii 2003-05-16 12:39 ` Valery V. Inozemtsev 2003-05-16 13:59 ` Andriy Dobrovol's'kii [this message] 2003-05-16 18:09 ` Valery V. Inozemtsev 2003-05-16 19:51 ` Maria Shakhova 2003-05-17 4:14 ` Alexandr R. Ogurtzoff 2003-05-17 4:13 ` Alexandr R. Ogurtzoff 2003-05-17 7:41 ` Andriy Dobrovol's'kii
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=3EC4EEB2.8020202@iop.kiev.ua \ --to=dobr@iop.kiev.ua \ --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