From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: "ALT Linux Community" References: Message-ID: Date: Tue, 28 Mar 2006 15:40:59 -0000 From: "Aleksander N. Gorohovski" Organization: DonNTU Content-Type: multipart/mixed; boundary=----------FS6Wz6nTHjbg7rpIHVPnx6 MIME-Version: 1.0 In-Reply-To: User-Agent: Opera M2/8.50 (Linux, build 1358) Subject: Re: [Comm] =?koi8-r?b?0M/Nz8fJ1MUgzsHT1NLPydTYINPF1Ngu?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2006 13:47:30 -0000 Archived-At: List-Archive: List-Post: ------------FS6Wz6nTHjbg7rpIHVPnx6 Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r Content-Transfer-Encoding: 8bit On Tue, 28 Mar 2006 12:40:32 -0000, dolgov wrote: > Здравствуйте. > > Не получается настроить сеть. > Есть машинка со свежеустановленным Compact-2.3 (пока, может обнослю до > 2.4) > Два интерфейса: eth0 (к провайдеру), eth1 внутрь в свич (5 портов). > Два клиента WinXP. > > Что надо сделать, чтобы клиенты могли ходить в интернет? Пока хотябы. > samba, iptables это потом. Надо сейчас срочно дать возможность работать. > > Где что прописать? Чего показать? 1. Включить iptables # chkconfig --add iptables 2. Для автомаскарадинга в файле /etc/sysctl.conf установить параметр net.ipv4.ip-forward = 1 3. Просмотри, немного отредактируй IP (он очень простой) и запусти сценарий из атача. 4. Если всё работает сохранить правила # service iptables save ------------FS6Wz6nTHjbg7rpIHVPnx6 Content-Disposition: attachment; filename=NEW.firewall.sh Content-Type: application/octet-stream; name=NEW.firewall.sh Content-Transfer-Encoding: Base64 IyEvYmluL3NoCgpJTkVUX0lGQUNFPSJldGgwIgoKI1RVTl9JRkFDRT0iaXB0dW4w IgojVFVOX0lQPSIxOTQuNDQuMTgzLjE4MiIK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