From: Alexandr R Ogurtzoff <iscander@mercuri.mk.ua>
To: community@altlinux.ru
Subject: Re: [Comm] Настройка Роутера Compact 2.3
Date: Fri, 25 Jun 2004 10:18:48 +0300
Message-ID: <200406251018.48603.iscander@mercuri.mk.ua> (raw)
In-Reply-To: <1146287720.20040625100203@vostok.net.ua>
> ну если наоборот, то:
> echo "1" > /proc/sys/net/ipv4/ip_forward
> iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -d 0/0 -j MASQUERADE
> если я правильно понял, что тебе нужно
MASQUERADE - это при динамическом назначении внешнего адреса, при постоянных
адресах достаточно трансляции, работать будет быстрее
$IPTABLES -t nat -A POSTROUTING -o $INET_IFACE -j SNAT --to-source $INET_IP
Включить маршрутизацию пакетов
echo "1" > /proc/sys/net/ipv4/ip_forward
Всё верно, но в отличии от уже предложеного варианта
FORWARD_IPV4=yes в /etc/sysconfig/network
Сейчас за это отвечает
net.ipv4.ip_forward = 1 в /etc/sysctl.conf
--
С наилучшими пожеланиями
With best regards
Александр Огурцов
Alexandr Ogurtzoff
prev parent reply other threads:[~2004-06-25 7:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-25 8:55 ilya
2004-06-25 7:02 ` Alexey S. Kuznetsov
2004-06-25 7:11 ` Artem K. Jouravsky
2004-06-25 7:20 ` Alexandr R Ogurtzoff
2004-06-25 7:41 ` Artem K. Jouravsky
2004-06-25 7:39 ` Alexandr R Ogurtzoff
2004-06-25 7:44 ` Mike Lykov
2004-06-25 7:18 ` Alexandr R Ogurtzoff [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=200406251018.48603.iscander@mercuri.mk.ua \
--to=iscander@mercuri.mk.ua \
--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