From: Maxim Savrilov <Maxim.Savrilov@novocybersk.ru> To: "mandrake-russian@altlinux.ru" <mandrake-russian@altlinux.ru> Subject: [mdk-re] routing question Date: Thu Jul 19 13:51:11 2001 Message-ID: <3B56B284.179D0F9D@novocybersk.ru> (raw) Привет всем. Вопрос такой возник. Ситуация: есть 3 сетки, одна из которых внутренняя (с реальными ip), а другая Интернет ;)(провайдер, вернее) и третья. Обозначим их Инет- net0, Внутрення - net1, третья - net2 у net1 есть машина-шлюз(у которой есть 3 интерфейса: eth1 смотрит в net1, eth0 выходит на провайдера и eth2, смотрит в одну из подсетей net2). Так вот, за трафик net0->net1 берут деньги (странно, правда?), за net2->net1 денег не берут. На шлюзе поднят маскарадинг from net1 to net2 (так как денег не берут только за трафик net2->Шлюз, а надо чтоб все машины могли ходить в бесплатную сеть) и прописаны static_routes from net1 to net2 via eth2 (то-есть в бесплатную сеть ходить принудительно через бесплатный интерфейс) Проблема собственно: сервер имеет ip в каждой из указанных сетей и когда из net2 пытаешься достучаться до него по ip из net0 или net1, то ничего не приходит обратно, так как он получает пакеты на один интерфейс, а отвечает через другой, как ему и прописано в static routes. Петля возникает, софтина из net2 посылает пакеты на один ip, а ответы ей приходят с другово, а тот ip, что по ее мнению должен ответить, молчит. tcpdump показывает, например, что icmp: echo request пакеты приходят на eth0, например, и тут же показывает что с eth2 уходят icmp echo reply И вопрос собственно, как можно на шлюзе добиться того, чтобы на пакеты, которые пришли из net2 на eth0 ответы уходили тоже через eth0, несмотря на static routes? -- "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)." (By Matt Welsh) Novocybersk, отделение системного администрирования Новосибирск, проспект К. Маркса-20, корпус 1, палата 310. тел. (383-2) 46-13-84 (31-19) --
next reply other threads:[~2001-07-19 13:51 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-07-19 13:51 Maxim Savrilov [this message] 2001-07-19 14:36 ` Vyt 2001-07-19 15:36 ` Maxim Savrilov 2001-07-19 17:26 ` Vyt 2001-07-20 16:49 ` Maxim Savrilov 2001-07-20 17:34 ` Vyt
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=3B56B284.179D0F9D@novocybersk.ru \ --to=maxim.savrilov@novocybersk.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