ipfw - natd - squid - 3 Nic's - 1 FBSD 5.1 server and routing question

fbsdquestions at worldinternet.org fbsdquestions at worldinternet.org
Mon Aug 4 06:24:43 PDT 2003

I could sure use an idea for solving the following.  We have a perfectly
functional but saturated ds0 with our telco that is very expensive.  We
have squid running with transparent proxy for our LAN that consists of
about 10-15 users.  [ fwd,3128 tcp from to any 80 ]
It works fine but still not enough bandwidth so we contracted a connection
with a cable company that we plan to use for all outgoing requests for
port 80 from squid.  The problem is that I can't get the outgoing requests
from squid to use the nic that is connected to the cable company.

Squid is setup to use the Cable companies IP
but since the default gateway is to the telco interface, the request is sent
to the telco.

I'm not sure how to make this work.  Our three nic's are set up as follows

rl1   ---
Internal Network     \
                      \        rl0 [TelCo]
                       ------  200.79.x.0/28    --- INTERNET
                      /        natd-ipfw-squid
rl2                  /         routing: default 200.79.x.1 ---
Cable Network

Our firewall configuration has been reduced to the following until we can
get this to work.

00100 allow ip from any to any via lo0
00200 deny ip from any to
00300 deny ip from to any
00400 fwd,3128 tcp from to any 80
65100 divert 8668 ip from any to any via rl0
65500 allow ip from any to any
65535 allow ip from any to any

Everything works great with rl1 -> rl0 but rl2 is basically useless.
I have tried many different approaches and none have worked.  I'm probably
complicating it too much.

Any help or suggestions will be appreciated.




More information about the freebsd-questions mailing list