cable linux wrote:
>Dear all folk,
>
>I have below network configuration,
>
>
>eth0 203.1.1.1/24 (first dsl link)
>eth1 204.1.1.1/24 (first dsl link)
>eth2 205.1.1.1/24 (first dsl link)
>eth3 206.1.1.1/24 (first dsl link)
>
>eth4 192.168.1.1/24 (first ethernet link)
>eth5 192.168.2.1/24 (second ethernet link)
>eth6 192.168.3.0/24 (third ethernet link)
>eth7 192.168.4.0/24 (four ethernet link)
>
>
>i have following department in my office
>
>dept vishnu 192.168.1.0/24 (first dept)
>dept deepak 192.168.2.0/24 (second dept)
>dept parsad 192.168.3.0/24 (third dept)
>dept pirtvi 192.168.4.0/24 (fourht dept)
>
>i want to use all dsl links in a single machien, it it
>possible .
>
>
Yes. See http://lartc.org/howto/lartc.rpdb.multiple-links.html or
http://linux-ip.net/html/adv-multi-internet.html
>what do you suggest to separate all DSL system's and
>separate a LAN Server that have four ethernet cards.
>What's best ?
>
>how can i assign dsl of first,second,third,fourth in
>squid.conf file.
>
>i want to share 203.1.1.1/24 to 192.168.1.0/24 lan
>i want to share 204.1.1.1/24 to 192.168.2.0/24 lan
>i want to share 205.1.1.1/24 to 192.168.3.0/24 lan
>i want to share 206.1.1.1/24 to 192.168.4.0/24 lan
>
>what iptables commands required for that purpose.
>
>and how to setup ACL.
>
>How can i define acl that
>
>192.168.1.0/24 will only use dsl link 1
>192.168.2.0/24 will only use dsl link 2
>192.168.3.0/24 will only use dsl link 3
>192.168.4.0/24 will only use dsl link 4
>
>
>
Assuming the squid server is assigned the following IP addresses:
192.168.0.1, 192.168.1.1, 203.1.1.1, 204.1.1.1
acl dotOne src 192.168.1.0/24
acl dotTwo src 192.168.2.0/24
etc.
tcp_outgoing_address 203.1.1.1 dotOne
tcp_outgoing_address 204.1.1.1 dotTwo
etc.
>for separe machines
>
>
>machine - A that contains 203.1.1.1/24
> 204.1.1.1/24
> 205.1.1.1/24
> 206.1.1.1/24
>
>machine - B that contains 192.168.1.0/24
> 192.168.2.0/24
> 192.168.3.0/24
> 192.168.4.0/24
>
>how to redirect request of port 80 of 192.168.1.0/24
>to redirect to 203.1.1.1:3128
>
>how to redirect request of port 80 of 192.168.2.0/24
>to redirect to 204.1.1.1:3128
>
>how to redirect request of port 80 of 192.168.3.0/24
>to redirect to 205.1.1.1:3128
>
>how to redirect request of port 80 of 192.168.4.0/24
>to redirect to 206.1.1.1:3128
>
>what iptables command required for that purpose.
>
>
I have no idea why you would use two computers. The only way I could
see to perform this would be to SNAT the traffic between the two...
http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-6.html
>Regards
>Linux Lover
>
Chris
Received on Thu Jun 15 2006 - 17:16:40 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:01 MDT