On Thu, Dec 12, 2002 at 08:56:32AM +0530, mukund wrote:
> In one cyber cafe there are 40 machines, one debian box, and router
> connected to a switch.
> The router is also connected to leased line of 64 kbps. The debian box is
> running squid.
> Another ISDN line is connected to serial port of debian box.
> My questions are,
> 1. The routing table shows two default route, which route squid will use for
> proxy?

1. The route with lower metric value has higher priority.
2. If two routes has the same metric value, then the first one encountered
(when the table is traversed from top to bottom) is used.

> 2. Which takes the precedence, iptables or routing table?

Depends. If your iptables rules are POSTROUTING, then of course,
routing table.

ie, for output rules/NAT rules, the SNAT IP address is selected
after determining the route of the packet (and hence, the outgoing
interface). You cannot do SNAT in PREROUTING.

> 3. Suppose I want 10 machine out of 40 to use ISDN (with nating ), is it
> possible? How?

You need to have policy routing configured. Read the documentation
accompanying the iproute2 package.

Binand

-- 
If you found this helpful, please take some time off to rate it:
http://svcs.affero.net/rm.php?r=binand


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to