ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Alexei V. Mezin" <alexei_vm@micmedia.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Помогите с iptables
Date: Mon, 09 Jul 2007 22:57:03 +0400
Message-ID: <469284FF.8040901@micmedia.ru> (raw)
In-Reply-To: <468FE2B3.8010902@micmedia.ru>

Alexei V. Mezin пишет:

> 
> Хочется инет+локалка на втором компе. Запускаю вот такой скрипт:
> 
> WAN1_IFACE="akado"
> WAN2_IFACE="mm"
> LAN_IFACE="lan"
> LAN_IP="172.1.1.0/24"
> 
> IPTABLES="/sbin/iptables"
> 
> echo "1" > /proc/sys/net/ipv4/ip_forward
> 
> $IPTABLES -P FORWARD ACCEPT
> $IPTABLES -t nat -A POSTROUTING -s $LAN_IP -o $WAN1_IFACE -j MASQUERADE
> $IPTABLES -t nat -A POSTROUTING -s $LAN_IP -o $WAN2_IFACE -j MASQUERADE
> 

Ну вот, сам себе отвечаю: загрузив livecd с redWall firewall и запустив 
там эти команды, получил __работающий__ НАТ. Ядро там 2.6.17.

А на наших ядрах wks/std ничего не работает. Это у нас кривые iptables 
получаются? Или что-то им мешает работать? Как определить, что именно 
мешает?


  parent reply	other threads:[~2007-07-09 18:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-07 19:00 Alexei V. Mezin
2007-07-07 21:06 ` Alexei V. Mezin
2007-07-08  5:08   ` Eugene Ostapets
2007-07-07 22:27 ` Alexei V. Mezin
2007-07-08  6:58   ` Serge
2007-07-08 12:25   ` Aleksey Avdeev
2007-07-08 14:48     ` Alexei V. Mezin
2007-07-09 18:57 ` Alexei V. Mezin [this message]
2007-07-09 19:13   ` Sergey
2007-07-09 19:23     ` Alexei V. Mezin
2007-07-09 19:26 ` Artem Zolochevskiy
2007-07-09 19:41   ` Alexei V. Mezin
2007-07-09 19:59     ` Artem Zolochevskiy
2007-07-10  6:44     ` ABATAPA
2007-07-10 12:46       ` [Sysadmins] akado Sergey S. Skulachenko
2007-07-10 12:55         ` Alexei V. Mezin

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=469284FF.8040901@micmedia.ru \
    --to=alexei_vm@micmedia.ru \
    --cc=alex783@hotbox.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