From: Eray Aslan <eray.aslan@caf.com.tr>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Gentoo router for multiple ISPs?
Date: Sun, 13 Apr 2008 04:55:26 +0300 [thread overview]
Message-ID: <4801680E.5040903@caf.com.tr> (raw)
In-Reply-To: <5bdc1c8b0804121111n1b80c393q60b7c6bb486e5029@mail.gmail.com>
On 12.04.2008 21:11, Mark Knecht wrote:
> Hi all,
> I need to get a second ISP line into the house. I currently have a
> cable modem but it goes down once in a while and my work requires
> higher reliability so I was thinking of getting a DSL line to
> supplement it. I'd like to investigate creating some sort of
> firewall/router that could do the following:
1. Load balancing is easy. Just read up on it. http://lartc.org/ is a
good start. Basically, you will have to modify your iptables and
routing table rules.
2. Check the time extension of iptables. Also many services and daemons
have in built facility for day and time based access control. For
example xinetd offers data and time based access control. You might
want to go that route depending on what service you want to control.
3. Automatic failover is the hard part. AFAIK, Linux can determine if
the next hop is down and do automatic switch over. But if you have a
problem further down the line, kernel won't detect it. For DSL, you
might want to use your modem as a bridge and connect directly with PPP
to your ISP so that you can detect if the link goes down (that seems to
be most common case). I do not know if the same is possible with cable
modems as I have not used one in a long time. Another alternative is to
run a cron job that pings a certain host(s) on the internet and
depending on the result adjusts the routing the table accordingly.
HTH
--
Eray
> 1) Load balance between the two lines during the day. I get download
> speeds of about 6Mb/S from my current Cable Modem and supposedly about
> 3Mb/S from the DSL. I'd like to get something like 8-9Mb/S aggregate
> from the two together if possible.
>
> 2) I need rules that keep certain machines off of the cable modem
> during specific hours.
>
> 3) I MUST have some sort of AUTOMATIC switch over such that if one
> line goes down the second line takes over and runs everything while at
> the same time informing me that a line is down. This machine must be
> able to test, once a minute or faster, that both lines are up and take
> action immediately if something is wrong. It must then correct if the
> down line comes back up.
>
> 4) I can either use this same machine as a firewall or I can simply
> hook it to my existing LinkSys since I'll still need wireless to get
> around the house. I figure I'll run the LinkSys inside this Gentoo
> machine anyway. I figure I'll want a firewall on this machine since it
> will be directly on the net anyway.
>
> Are features like this available in some sort of package from portage?
>
> Note that I'd be perfectly happy buying some box for less than
> $100-$200 that could do all of this automatically but I haven't found
> one yet.
>
> Thanks,
> Mark
--
gentoo-user@lists.gentoo.org mailing list
prev parent reply other threads:[~2008-04-13 1:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-12 18:11 [gentoo-user] Gentoo router for multiple ISPs? Mark Knecht
2008-04-12 20:18 ` [gentoo-user] " James
2008-04-13 0:09 ` Mark Knecht
2008-04-13 23:09 ` James
2008-04-14 0:29 ` Mark Knecht
2008-04-13 1:55 ` Eray Aslan [this message]
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=4801680E.5040903@caf.com.tr \
--to=eray.aslan@caf.com.tr \
--cc=gentoo-user@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox