From: Alexander Simernin <simernin@maxus.ru> To: community@altlinux.ru Subject: Re: [Comm] NAT+iptables+динамический IP Date: Wed, 14 May 2003 10:08:49 +0400 Message-ID: <200305141008.49613.simernin@maxus.ru> (raw) In-Reply-To: <20030514095801.5f949b32.alt_unit@pisem.net> В сообщении от Среда 14 Май 2003 09:58 Unit написал(a): > Hello, Community! > > Есть выделенный канал в инет. Машине (Linux) присваивается каждый раз, при > загрузке, при помощи DHCP, IP`шник. Вопрос в следующем: как использовать > связку NAT+iptables с динамическим IP? > 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 должен разрешать входящие пакеты от вин-машины... > ЗЫ: Задача: вывести win-клиента в сеть. -- Best regards, mailto:simernin@maxus.ru Alexander!
next prev parent reply other threads:[~2003-05-14 6:08 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-05-14 5:58 Unit 2003-05-14 6:08 ` Alexander Simernin [this message] 2003-05-14 7:21 ` Sergey S. Skulachenko
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=200305141008.49613.simernin@maxus.ru \ --to=simernin@maxus.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