From: "Мерзляков Евгений Анатольевич" <hj@acoustics.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] помогите настроить сеть.
Date: Tue, 28 Mar 2006 19:17:54 +0600
Message-ID: <20060328191754.2b6e4cbb@hj.acoustics.ru> (raw)
In-Reply-To: <e0bas3$q2m$1@sea.gmane.org>
On Tue, 28 Mar 2006 15:40:32 +0300
dolgov <dolgov@mail.zp.ua> wrote:
> Здравствуйте.
>
> Не получается настроить сеть.
> Есть машинка со свежеустановленным Compact-2.3 (пока, может обнослю до
> 2.4)
> Два интерфейса: eth0 (к провайдеру), eth1 внутрь в свич (5 портов).
> Два клиента WinXP.
>
> Что надо сделать, чтобы клиенты могли ходить в интернет? Пока хотябы.
> samba, iptables это потом. Надо сейчас срочно дать возможность работать.
>
> Где что прописать? Чего показать?
>
> Я еще не разу сервер не настраивал, и опыта в этом ноль.
>
> Заранее благодарен.
батенька, ну как-же енто вы за такое дело взялись и без опыта :)
енто вам не виндовс, тут надо документацию читать, хотя-бы иногда
вкратце:
предположим:
внутренняя сеть: 192.168.0.0/24
внешний IP: 1.2.3.4
IP шлюза провайдера: 1.2.3.5
от рута:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to-source 1.2.3.4
посмотреть вывод команды route
должна быть строчка:
default 1.2.3.5 0.0.0.0 UG 0 0 0 eth0
если ее нету, то добавит маршрут по умолчанию
route add default gw 1.2.3.5
в принципе после этого должно все завестись и из виндей будет видно интернет
при решении дальнейших вопросов вам поможет http://google.ru/linux
--
ПКБ Акустика
Мерзляков Е.А. icq #115657846
next prev parent reply other threads:[~2006-03-28 13:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-28 12:40 dolgov
2006-03-28 13:07 ` Dmitriy L. Kruglikov
2006-03-28 13:17 ` Мерзляков Евгений Анатольевич [this message]
2006-03-28 13:38 ` [Comm] РПНПЗЙФЕ ОБУФТПЙФШ УЕФШ Oleg Dolgov
2006-03-28 13:47 ` Dmitriy L. Kruglikov
2006-03-28 13:48 ` [Comm] помогите настроить сеть Sergey
2006-03-28 13:59 ` [Comm] РПНПЗЙФЕ ОБУФТПЙФШ УЕФШ Vitaly Gorshkov
2006-03-28 13:33 ` [Comm] помогите настроить сеть Vitaly Gorshkov
2006-03-28 13:36 ` Sergey
2006-03-28 13:44 ` Vitaly Gorshkov
2006-03-28 13:44 ` Шенцев Алексей Владимирович
2006-03-28 13:52 ` Dmitriy L. Kruglikov
2006-03-28 15:45 ` Anton Gorlov
2006-03-28 13:43 ` Dmitriy L. Kruglikov
2006-03-28 15:40 ` Aleksander N. Gorohovski
2006-03-28 14:01 ` Sergey
2006-03-28 21:29 ` Aleksander N.Gorohovski
2006-03-28 19:56 ` Sergey
2006-03-30 10:52 ` ÐÏÍÏÇÉÔÅ ÎÁÓÔÒÏÉÔØ ÓÅÔØ Oleg Dolgov
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=20060328191754.2b6e4cbb@hj.acoustics.ru \
--to=hj@acoustics.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