From: Alexander Volkov <alt@vladregion.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] Файрвол+роутинг Date: Wed, 11 Apr 2007 14:14:12 +0400 Message-ID: <20070411101410.GG18825@xeon.vladregion.ru> (raw) In-Reply-To: <e12fd2db0704110307i47aae27ahbf64ae09db641a62@mail.gmail.com> On 2007-04-11 13:07:36 +0300, Eugene Ostapets wrote: EO> 11.04.07, Alexander Volkov<alt vladregion.ru> написал(а): EO> > On 2007-04-11 10:30:03 +0300, Eugene Ostapets wrote: EO> > EO> Всем доброго дня! EO> > EO> > EO> Что-то читал, но за ненадобностью забыл... EO> > EO> Как у нас правильно организовать ответ сервиса по тому же интерфейсу, EO> > EO> с которого пришел запрос? EO> > У нас - имеется в виду сейчас и на etcnet? EO> Не обязательно, с etcnet я уже как-нибудь сам разберусь:) EO> > Про последний не скажу, а на 2.4 у меня до сих пор скрипт работает для 3 EO> > провайдеров. EO> Можно на него взглянуть? зАпросто. Это rc.local. ip кое-как поменял P1="8.13.8.118" P2="8.49.89.97" P3="8.5.199.1" P0_NET="192.168.2.0/25" P03_NET="192.168.3.0/27" P1_NET="8.13.8.116/30" P2_NET="8.49.89.96/27" P3_NET="8.5.199.0/24" IF0="eth0" IF1="eth1" IF2="eth2" IF3="eth3" IP1="89.113.8.117" IP2="85.249.89.102" IP3="84.53.199.236" ip route add $P1_NET dev $IF1 src $IP1 table link1 ip route add default via $P1 table link1 ip route add $P2_NET dev $IF2 src $IP2 table link2 ip route add default via $P2 table link2 ip route add $P3_NET dev $IF3 src $IP3 table link3 ip route add default via $P3 table link3 ip route add 127.0.0.0/8 dev lo table link1 ip route add $P0_NET dev $IF0 table link1 ip route add $P03_NET dev $IF0 table link1 ip route add $P2_NET dev $IF2 table link1 ip route add $P3_NET dev $IF3 table link1 ip route add 127.0.0.0/8 dev lo table link2 ip route add $P0_NET dev $IF0 table link2 ip route add $P03_NET dev $IF0 table link2 ip route add $P1_NET dev $IF1 table link2 ip route add $P3_NET dev $IF3 table link2 ip route add 127.0.0.0/8 dev lo table link3 ip route add $P0_NET dev $IF0 table link3 ip route add $P03_NET dev $IF0 table link3 ip route add $P2_NET dev $IF2 table link3 ip route add $P1_NET dev $IF1 table link3 ip route add default via $P1 ip rule add from $IP1 table link1 ip rule add from $IP2 table link2 ip rule add from $IP3 table link3 -- Regards, Alexander
next prev parent reply other threads:[~2007-04-11 10:14 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-04-11 7:30 Eugene Ostapets 2007-04-11 8:28 ` Marat Khayrullin 2007-04-11 8:33 ` Eugene Ostapets 2007-04-11 8:53 ` Serge Polkovnikov 2007-04-11 10:05 ` Eugene Ostapets 2007-04-11 10:15 ` Dmitriy L. Kruglikov 2007-04-11 10:20 ` Alexander Volkov 2007-04-11 12:18 ` Евгений Терешков 2007-04-11 9:37 ` Marat Khayrullin 2007-04-11 9:42 ` Alexander Volkov 2007-04-11 10:07 ` Eugene Ostapets 2007-04-11 10:14 ` Alexander Volkov [this message] 2007-04-11 12:15 ` Marat Khayrullin
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=20070411101410.GG18825@xeon.vladregion.ru \ --to=alt@vladregion.ru \ --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