ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vlad Drakula <sib_drakula@intramail.ru>
To: Dmitry <mandrake-russian@altlinux.ru>
Subject: [mdk-re] Re[2]: [mdk-re] Re: [mdk-re] Помогите настроить NAT в IPTABLES
Date: Fri Oct 12 12:16:26 2001
Message-ID: <391793799.20011012142056@intramail.ru> (raw)
In-Reply-To: <171322125091.20011012112640@onlinx.prime-tass.ru>

Hello Dmitry,

Friday, October 12, 2001, 1:26:40 PM, you wrote:


D> INET_IFACE="eth0"
D> LAN_IFACE="eth1"
D> IPTABLES="/sbin/iptables"
D> LAN_IP_RANGE="192.168.0.0/24"

D> $IPTABLES -t nat -A POSTROUTING -s $LAN_IP_RANGE -o $INET_IFACE -j MASQUERADE
D> $IPTABLES -t nat -A PREROUTING -p tcp -i $INET_IFACE --dport 80 -j DNAT --to-destination 192.168.1.100:80
D> $IPTABLES -t filter -A FORWARD -p tcp -d 192.168.1.100 --dport 80 -j ACCEPT

$IPTABLES -t nat -A PREROUTING -p tcp -i $INET_IFACE --dport 80 -j
REDICECT --to-destination 192.168.1.100:80

по идее должно хватить такой строчки, соотвественно данные
возвращаемые сервером должны нормально маскарадиться.
-- 
Best regards,
 Vlad                            mailto:sib_drakula@intramail.ru




      reply	other threads:[~2001-10-12 12:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-11 14:38 [mdk-re] ðÏÍÏÇÉÔÅ ÎÁÓÔÒÏÉÔØ NAT × IPTABLES Dmitry
2001-10-11 15:40 ` [mdk-re] Re: [mdk-re] Помогите настроить NAT в IPTABLES Vlad Drakula
2001-10-12 11:25   ` [mdk-re] Re: [mdk-re] ðÏÍÏÇÉÔÅ ÎÁÓÔÒÏÉÔØ NAT × IPTABLES Dmitry
2001-10-12 12:16     ` Vlad Drakula [this message]

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=391793799.20011012142056@intramail.ru \
    --to=sib_drakula@intramail.ru \
    --cc=mandrake-russian@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