From: Alex Savvin <savvin@apexgroup.ru> To: community@altlinux.ru Subject: [Comm] Маршрутизация ??? Date: Mon, 14 Jul 2003 15:16:42 +0400 Message-ID: <200307141516.59577.savvin@apexgroup.ru> (raw) [-- Attachment #1: signed data --] [-- Type: text/plain, Size: 1522 bytes --] Возникла проблема с маршрутизацией, что-то не могу сообразить как поступить. Ситуация такая, есть хост с ALM2.2 с двумя интерфейсами в инет: eth0 (217.107.168.10) и ppp0 (80.237.19.20) каждый интерфейс подключен к разным провайдерам. В качестве основного используется eth0, дальше имеется шлюз 217.107.168.1. Вот таблица маршрутизации: Destination Gateway Genmask Flags Metric Ref Use Iface 80.237.19.20 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 217.107.168.0 0.0.0.0 255.255.255.192 U 0 0 0 eth0 80.237.19.0 0.0.0.0 255.255.255.0 U 0 0 0 ppp0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lo 0.0.0.0 217.107.168.1 0.0.0.0 UG 0 0 0 eth0 Т.е. я хочу, чтобы все пакеты по умолчанию уходили через eth0 на шлюз 217.107.168.1, но пакеты в сеть 80.237.19.0 уходили через ppp0. В принципе работает. Но... Если с машины в сети 80.237.19.0 (например, 80.237.19.30) пинговать порт eth0 сервера (217.107.168.10), пинг не проходит, т.е. icmp-запросы tcpdump'ом ловятся, а icmp-ответы не уходят ни с eth0, ни с ppp0. Соответственно не устанавливается соединение ни с одним сервисом. Добавление дополнительного маршрута на эту сеть через eth0 с метрикой 1 не помогает. Если из таблицы маршрутизации убрать третий маршрут (на сеть 80.237.19.0), то работа восстанавливается. Как сделать, чтобы сервер инициировал исходящие соединения в сеть 80.237.19.0 через ppp0, но мог отвечать на запросы из этой сети, приходящие через eth0? -- Александр Саввин [-- Attachment #2: signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
reply other threads:[~2003-07-14 11:16 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200307141516.59577.savvin@apexgroup.ru \ --to=savvin@apexgroup.ru \ --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