ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Morsov <samurai@ricom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] iptables
Date: Tue, 06 Apr 2004 17:56:55 +0400
Message-ID: <4072B727.7010407@ricom.ru> (raw)
In-Reply-To: <1673404065.20040406173501@lg-support.ru>


Polovnikov Denis wrote:
> Здравствуйте, Alexey.
> 
> Вы писали 6 апреля 2004 г., 15:55:59:
> 
> Вот что у меня щас . И нефига нат не работает.
> eth0 это локалка
> eth1 это инет.
> 
> *mangle
> :PREROUTING ACCEPT [0:0]
> :OUTPUT ACCEPT [0:0]
> #-A PREROUTING -p tcp --dport 22 -j TOS --set-tos 0x10
Вот это вообще не понял?
Зачем?

> COMMIT
> *filter
> :FORWARD ACCEPT [0:0]
> :INPUT ACCEPT [0:0]
> :OUTPUT ACCEPT [0:0]
> :net - [0:0]
> COMMIT
Ох... ну не люблю я формат iptables-save - тяжко читать его ;-)

> 
> *nat
> :PREROUTING ACCEPT [0:0]
> :OUTPUT ACCEPT [0:0]
> :POSTROUTING ACCEPT [0:0]
> -A POSTROUTING -s 192.168.12.0/24 -o eth1 -j SNAT --to-source 195.124.1.1
> COMMIT
ну вроде так должно работать

а дайте вывод команд
route
и
cat /proc/sys/net/ipv4/ip_forward

А еще лучше вбейте свои iptables в скрипт и на нем отлаживайте а 
то через командную строку все время вбивать - или редактировать 
то что насейвил iptables-save - заколебаетесь
> http://lists.altlinux.ru/mailman/listinfo/community

-- 
С наилучшими пожеланиями,
Алексей.


  reply	other threads:[~2004-04-06 13:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06  9:01 Polovnikov Denis
2004-04-06  9:01 ` Nikita Semenov
2004-04-06  9:09   ` Gennadiy Redko
2004-04-06 11:55 ` Alexey Morsov
2004-04-06 13:35   ` Re[2]: " Polovnikov Denis
2004-04-06 13:56     ` Alexey Morsov [this message]
2004-04-07  4:24     ` Mike Lykov
2004-04-07  9:22       ` Re[4]: " Polovnikov Denis
2004-04-07 10:20       ` Polovnikov Denis
2004-04-07 10:29         ` Mike Lykov
2004-04-07 10:36           ` Alexey Morsov
2004-04-07 10:55         ` Re[5]: " Nikita Semenov
2004-04-08  5:55           ` Re[6]: " Polovnikov Denis
2004-04-08  6:21             ` Re[7]: " Nikita Semenov
2004-04-08  9:57               ` Re[8]: " Polovnikov Denis
2004-04-08 11:15                 ` Alexey Morsov
2004-04-08 12:38                   ` Re[2]: " Polovnikov Denis
2004-04-08 12:46                     ` Alexey Morsov
2004-04-08 15:40                       ` Roman Savochenko
2004-04-09  3:38                         ` Mike Lykov
2004-05-06  9:09                         ` Alexey Morsov

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=4072B727.7010407@ricom.ru \
    --to=samurai@ricom.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