From: Nikolay <slavitsky@gmail.com> To: sysadmins@lists.altlinux.org Subject: [Sysadmins] Два канала и 6й дистрибутив Date: Thu, 26 Jan 2012 14:52:34 +0200 Message-ID: <201201261452.34259.slavitsky@gmail.com> (raw) Доброго дня коллеги. Прошу помощи ещё раз в вопросе работы роутера о двух каналах. Имеем 3-и интерфейса 2-а инет канала и внутрення подсеть. -1й инет eth0 - 192.168.0.9 -2й инет thq - 192.168.0.201 и внутреннюю подсеть cross - 10.0.0.1 ip ru s 0: from all lookup local 32762: from 192.168.0.201 lookup ozon 32763: from all fwmark 0x2 lookup ozon 32764: from 192.168.0.9 lookup under 32765: from all fwmark 0x1 lookup under 32766: from all lookup main 32767: from all lookup default ip r s t ozon default via 192.168.0.5 dev thq ip r s t under default via 192.168.0.5 dev eth0 И соответственно правила для внутренней сети Метка iptables -t mangle -A PREROUTING -s 10.0.0.2 -p tcp -m tcp -j MARK --set-mark 0x2 и сам нат iptables -t -A POSTROUTING -s 10.0.0.2 -p icmp -m icmp -o thq -j SNAT --to-source 192.168.0.201 Ситуация в том , что через один из каналов нат работает а чарез в-й упорно нежелеает. Пакет возвращается к внешнему интерфейсу - но к внутреннему отправителю уже не отправляется. Если же уложить один из каналов всё начинает работать на ура. система - как последний сизиф на 6ке альфа так и 6-ка сервер. ядра как 2.6 так и 3.1.2 и 3.2.1 iptables -V iptables v1.4.10 Рядом стоит роутер установленный на 4м сервере и подтянутый к 5.1 бранч iptables -V iptables v1.4.7 На нём чудесно живёт 3-и инет канала. Если можно подскажите что не так ....
next reply other threads:[~2012-01-26 12:52 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-26 12:52 Nikolay [this message] 2012-01-27 4:51 ` Anton Farygin 2012-01-27 8:10 ` Nikolay
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=201201261452.34259.slavitsky@gmail.com \ --to=slavitsky@gmail.com \ --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