From: "Arcady V. Ivanov" <arc@help0.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Howto Share internet connection ???
Date: Tue, 09 Jan 2007 07:13:23 +1200
Message-ID: <45A297D3.2030009@help0.ru> (raw)
In-Reply-To: <644f4db90701051632g66c52faevac29d8997e14cfce@mail.gmail.com>
Dmitrii Shevchenko пишет:
> 05.01.07, *dmitriy* <itadmin@mail.ru <mailto:itadmin@mail.ru>>
> написал(а):
>
> Всех приветствую !
>
>
> Привет.
>
> Подскажите каким образом можно расшарить модем на общий доступ к
> инету (ICS)
>
>
> Во-первых, нужно включить флаг ip-форвардинга:
> # echo 1 > /proc/sys/net/ipv4/ip_forward
>
> Во-вторых, нам поможет маскарадинг:
> # iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
> Вроде бы, так. ppp0 - интерфейс модема, eth0 - интерфейс сетевой
> карты, которая в локальную сеть. Удачи.
>
Строка с указанием исходящих пакетов через интерфейс для локальной сети
(eth0) не нужна.
--
С уважением. Иванов Аркадий
Зам.директора ООО "Хелп"
mailto: arc@help0.ru
web:http://www.help0.ru
------------------------------------
I use stable soft:
Linux, Mozilla and OpenOffice.
And recommend them for you too.
prev parent reply other threads:[~2007-01-08 19:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-05 19:03 ` Motsyo Gennadi aka Drool
2007-01-05 19:35 ` dmitriy
2007-01-05 19:57 ` Damir Shayhutdinov
2007-01-06 22:22 ` [Comm] [faq] " Michael Shigorin
2007-01-08 19:13 ` Arcady V. Ivanov [this message]
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=45A297D3.2030009@help0.ru \
--to=arc@help0.ru \
--cc=community@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 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