ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey S. Kuznetsov" <buster@kuznetsov.org.ua>
To: community@altlinux.ru
Subject: [Comm] TROUBLE WITH MASQURADING
Date: Mon, 21 Mar 2005 11:16:50 -0800
Message-ID: <75485982.20050321111650@kuznetsov.org.ua> (raw)

Привет всем!
       У меня такая странная проблема....стоит сервер на нём:
       ALT Linux Castle (build 20010806)
       Kernel 2.4.7-alt2-up on an i686
Он служит роутером для пользователей локальной сети..
в этом сервере стоит 2 сетевые карты:

# ifconfig
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:XXX.XXX.XXX.XXX  Bcast:XXX.XXX.XXX.XXX  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:483229 errors:0 dropped:0 overruns:0 frame:0
          TX packets:428862 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:355752537 (339.2 Mb)  TX bytes:71221956 (67.9 Mb)
          Interrupt:11 Base address:0xb000

eth1      Link encap:Ethernet  HWaddr 00:02:44:6D:4E:FD
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:455832 errors:0 dropped:0 overruns:0 frame:0
          TX packets:525389 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:78712480 (75.0 Mb)  TX bytes:350367889 (334.1 Mb)
          Interrupt:10 Base address:0xd000
       

Стоит ipchains c таким вот правилом: ipchains -I forward -s 192.168.2.0/24 -j MASQ
Работает cbq:
К КЛИЕТУ:
DEVICE=eth1,10Mbit,1Mbit
RATE=32Kbit
WEIGHT=32Kbit
PRIO=5
RULE=,192.168.2.14

ОТ КЛИЕНТА:
DEVICE=eth1,10Mbit,1Mbit
RATE=32Kbit
WEIGHT=32Kbit
PRIO=5
RULE=,192.168.2.14

В общем вроде всё работает, трафик зажимает....НО
# trafshow -i eth1 -n
показывает всё нормально: от удалённых узлов на локальные адреса идёт
трафик

# trafshow -i eth0 -n
показывает трафик НЕЗАШЕЙПЕНЫЙ и опять же с удалённых адреов на
локальные....хотя должно показывать только коннекты на мой реальный
IP. Раньше так и было. Каким образом вообще на внешнем интерфейсы
могут оказаться внутренние ip??

Кто-нибудь сталкивался с такой ситуацией??

-- 
Sincerely,
Alexey S. Kuznetsov
AK2351-RIPE




             reply	other threads:[~2005-03-21 19:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-21 19:16 Alexey S. Kuznetsov [this message]
2005-03-21 11:02 ` Alexandr R. Ogurtzoff
2005-03-21 21:19   ` Re[2]: " Alexey S. Kuznetsov
2005-03-21 11:38 ` Dmytro O. Redchuk

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=75485982.20050321111650@kuznetsov.org.ua \
    --to=buster@kuznetsov.org.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