LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2006, 02:33 AM   #1
nomankhn
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
squid + iptables


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 .

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


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.

Regards
Linux Lover
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables+squid alcor Linux - Networking 1 11-02-2005 05:13 PM
squid management with IPtables shamza Linux - Networking 1 07-08-2005 03:13 PM
squid + iptables varun_saa Mandriva 10 02-11-2005 09:27 PM
iptables and squid batfink Linux - Networking 3 09-15-2003 02:51 PM
Iptables / Squid Configuration aushtosh Linux - Security 2 04-09-2002 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration