From: Pavel Tsybulin <pvtcomm@39871.copi.ru> To: community@altlinux.ru Subject: Re: [Comm] домашняя сеть Date: Tue, 15 Jun 2004 20:03:41 +0400 Message-ID: <20040615160341.GA3028@pasha.alkorn.net> (raw) In-Reply-To: <200406152144.38716.lomov@math.nsc.ru> On Tue, Jun 15, 2004 at 09:44:38PM +0700, Andrei Lomov wrote: > > > Адрес машины 192.168.1.200 маска подсети ? дальнейшее указано для 255.255.255.0 > У второй домашней машины адрес 10.1.1.2 > Допустим, пока нет желания со второй машины > ходить в локалку. > Что мне прописать вместо вопросов: > ifcfg-eth1: DEVICE=eth1 BOOTPROTO=static IPADDR=10.1.1.1 NETMASK=255.255.255.0 BROADCAST=10.1.1.255 NETWORK=10.1.1.0 ONBOOT=yes > ifcfg-eth0: DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.1.200 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255 ONBOOT=yes > > И на второй домашней машине: Отличие только в этой строке > IPADDR=10.1.1.2 > > И могу ли в таком случае отгородиться от нежелательных > заходов из локалки на свои ненаглядные домашние машины? > Вторую машину в такой ситуации защитить достаточно просто: выключить форвардинг пакетов на первой. в /etc/sysctl.conf проверить это: # Disables packet forwarding net.ipv4.ip_forward = 0 для первой - сложнее, но в большинстве случаев достаточно выключить ненужные демоны, для нужных установить в список IPs, с которых можно ими пользоваться. Для большей гарантии можно настроить iptables -- - Мама, мама, я не хочy видеть бабyшкy! -- Заткнись, дypа, и копай!
next prev parent reply other threads:[~2004-06-15 16:03 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-06-15 14:44 Andrei Lomov 2004-06-15 15:23 ` Alexey Morsov 2004-06-15 16:03 ` Pavel Tsybulin [this message] 2004-06-15 16:21 ` Andrei Lomov 2004-06-15 18:20 ` Pavel Tsybulin 2004-06-16 11:11 ` Andrei Lomov 2004-06-16 2:51 ` Anton Kvashin 2004-06-16 11:17 ` Andrei Lomov 2004-06-16 12:22 ` Andrei Lomov 2004-06-16 12:34 ` Mike Lykov 2004-06-16 12:35 ` Re[2]: " Alexey S. Kuznetsov 2004-06-16 12:51 ` Andrei Lomov 2004-06-16 17:16 ` Pavel Tsybulin 2004-06-17 15:14 ` Andrei Lomov 2004-06-17 15:34 ` [Comm] домашняя сеть -- КОНЕЦ ТЕМЫ, спасибо! Andrei Lomov 2004-06-16 18:06 ` [Comm] Re: домашняя сеть Michael Shigorin 2004-06-17 14:52 ` Andrei Lomov 2004-06-17 15:40 ` Andrei Lomov
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=20040615160341.GA3028@pasha.alkorn.net \ --to=pvtcomm@39871.copi.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