ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] iptables/nat и несколько одинаковых сетей
Date: Mon, 20 Nov 2006 09:57:08 +0300
Message-ID: <456151C4.4020107@stc.donpac.ru> (raw)
In-Reply-To: <200611200947.38091.pvl@pskb.com>

Arkadiy Pavlik пишет:
> В сообщении от Сб 18 ноя 2006 17:32 Eugene Prokopiev написал(a):
> 
> 
>>Что криминального в этой строке и отчего она не работает:
>>
>># iptables -t nat -A PREROUTING -d 10.0.0.0/24 -i eth0.61 -j SNAT
>>--to-source 192.168.199.88
>>iptables: Unknown error 4294967295
> 
> 
> криминально то, что SNAT можно использовать только на стадии POSTROUTING. а 
> для PREROUTING есть DNAT.

# iptables -t nat -A POSTROUTING -d 10.0.0.0/24 -i eth0.61 -j SNAT 
--to-source 192.168.199.88
iptables v1.3.5: Can't use -i with POSTROUTING

использовать -s вместо -i я не могу, причины описаны выше :(

-- 
С уважением, Прокопьев Евгений



  reply	other threads:[~2006-11-20  6:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-18  7:32 Eugene Prokopiev
2006-11-18  8:28 ` Dmitriy L. Kruglikov
2006-11-18 17:23   ` Eugene Prokopiev
2006-11-19  9:19     ` Dmitriy L. Kruglikov
2006-11-20  7:12       ` Eugene Prokopiev
2006-11-20  7:25         ` Dmitriy L. Kruglikov
2006-11-20 10:17           ` Eugene Prokopiev
2006-11-20 10:27             ` Dmitriy L. Kruglikov
2006-11-20 10:36               ` Eugene Prokopiev
2006-11-18  9:03 ` Nikolay A. Fetisov
2006-11-18 16:37   ` Eugene Prokopiev
2006-11-19  9:13 ` Kaydannik Alex
2006-11-19 23:47 ` Arkadiy Pavlik
2006-11-20  6:57   ` Eugene Prokopiev [this message]
2006-11-20  8:11     ` Dmitry Lebkov
2006-11-20 11:26 ` ABATAPA
2006-11-20 14:57   ` Alexey I. Froloff

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=456151C4.4020107@stc.donpac.ru \
    --to=prokopiev@stc.donpac.ru \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git