ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] Чертовщина с iptables :-(
@ 2001-10-11 21:36 S. Budnevitch
  2001-10-12 22:29 ` lenya
  2001-10-14  0:13 ` [mdk-re] " S. Budnevitch
  0 siblings, 2 replies; 4+ messages in thread
From: S. Budnevitch @ 2001-10-11 21:36 UTC (permalink / raw)
  To: mandrake-russian

   Настраиваю ipaq и свой desktop, чтобы вылезти с помощью ipaq'а в
интернет. Что делаю: поднимаю ppp между настольным компьютером и
ipaq'ом, потом звоню, подключаюсь. Таблица маршрутизации на данный
момент такая:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.3     *               255.255.255.255 UH    0      0        0 ppp1
APAS10.mtu.ru   *               255.255.255.255 UH    0      0        0 ppp0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         APAS10.mtu.ru   0.0.0.0         UG    0      0        0 ppp0

192.168.1.3 - это ipaq, 192.168.1.1 и 62.118.134.251 - настольный
компьютер.

Далее:

iptables -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.1.3 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -s 192.168.1.3 -j ACCEPT
iptables -A FORWARD -d 192.168.1.3 -j ACCEPT

Проверяю, как работает. Со стороны ipaq'а видно 192.168.1.1 и
62.118.134.251, но ничего больше.
Что еще интересно: реакции на iptables -L и iptables -t nat -L
приходится ждать больше минуты.

Раньше, кажется, с ядром 2.4.5 все работало нормально, правда тогда на
ipaq'е был WinCE, но проблема, похоже не в нем. Сейчас kernel24-up-2.4.9-alt5.
В чем проблема?




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-14  2:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-11 21:36 [mdk-re] Чертовщина с iptables :-( S. Budnevitch
2001-10-12 22:29 ` lenya
2001-10-14  2:17   ` [mdk-re] [JT] iPAQ Was: " S. Budnevitch
2001-10-14  0:13 ` [mdk-re] " S. Budnevitch

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