ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vitaly Gorshkov <vita55555@mail.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] помогите настроить сеть.
Date: Tue, 28 Mar 2006 17:33:17 +0400
Message-ID: <44293B1D.9080007@mail.ru> (raw)
In-Reply-To: <e0bas3$q2m$1@sea.gmane.org>

dolgov пишет:
> Здравствуйте.
>
> Не получается настроить сеть.
> Есть машинка со свежеустановленным Compact-2.3 (пока, может обнослю до 
> 2.4)
> Два интерфейса: eth0 (к провайдеру), eth1 внутрь в свич (5 портов).
> Два клиента WinXP.
>
> Что надо сделать, чтобы клиенты могли ходить в интернет? Пока хотябы.
> samba, iptables это потом. Надо сейчас срочно дать возможность работать.
>
> Где что прописать? Чего показать?
>   
1. тут  /etc/sysctl.conf
net.ipv4.ip_forward = 1
это чтобы линух как шлюз работал.

2. ну а дальше нужно iptables,
вот кусочек у меня
/etc/sysconfig/iptables
*nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -p tcp -m tcp -s 172.16.0.0/24 -o ppp0 -j SNAT
--to-source х.х.31.150

ppp0 это интерфейс в инет.
172.16.0.0/24 - это локальная сетка.
этот (/etc/sysconfig/iptables) файл ручками нельзя редактировать !!!!

3. я поставил webmin - управление серваком через броузер, хоть многие
его тут ругают - но имхо для начала пойдет.





  parent reply	other threads:[~2006-03-28 13:33 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 ` Мерзляков Евгений Анатольевич
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 ` Vitaly Gorshkov [this message]
2006-03-28 13:36   ` [Comm] помогите настроить сеть 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=44293B1D.9080007@mail.ru \
    --to=vita55555@mail.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