LinuxQuestions.org
Help answer threads with 0 replies.
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-21-2017, 05:30 AM   #1
vagkouts
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 0
Question multiple lan - multiple gateways - squid


I have a lan where my main connection is 10.10.10.0/23 with default gateway 10.10.10.1.
There is and an adsl with lan 172.16.100.0/24
To take advantage of it I set up a linux Ubuntu server 16.04 with a network card eth0 = 172.16.100.250/24 gw 172.16.100.1
I then set up a proxy and defined a 2nd ip to some clients(no dhcp server in the network) and I setup proxy server on them.
I put a second network card on linux and set ip eth1=10.10.10.250/23
I did this because I want to use proxy server and for the network 10.10.10.0 i want also traffic coming from this network to go from the gateway 10.10.10.1
I do not know what to do ... can you help me?

Thank you in advance
 
Old 06-21-2017, 12:58 PM   #2
vagkouts
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
so far no luck...

i made the following changes in squid.conf in order το be able to use squid and for 10.10.10.0 network
acl lan172 src 172.16.100.0/24
acl lan10 src 10.10.10.0/23

http_access allow lan172
http_access allow lan10

http_port 172.16.100.250:8080 name=8080
http_port 10.10.10.250:8090 name=8090

acl net172 myportname 8080 src 172.16.100.0/24
acl net10 myportname 8090 src 10.10.10.0/23

http_access allow net172
tcp_outgoing_address 172.16.100.250 net172
http_access allow net10
tcp_outgoing_address 10.10.10.250 net10

so now i can setup a client with proxy 172.16.100.250 port 8080 or with proxy 10.10.10.250 8090

the problem is that all the traffic is routed through 172.16.100.1

my routing table is

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.16.100.1 0.0.0.0 UG 0 0 0 eth0
10.10.10.0 10.10.10.1 255.255.254.0 UG 0 0 0 eth1
10.10.10.0 0.0.0.0 255.255.254.0 U 0 0 0 eth1
172.16.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

How traffic coming from computers using 172.16.100.250 as proxy go through 172.16.100.1 and the computers using 10.10.10.250 go through 10.10.10.1?

Thanks in advance
 
Old 06-23-2017, 12:17 AM   #3
vagkouts
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
No idea what to do next...for what I should be looking for???
 
Old 06-27-2017, 12:37 AM   #4
vagkouts
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
As it seems this is a very weird scenario to implement and no one knows what to do.
 
  


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
Multiple gateways pradhanparas Linux - Networking 3 09-09-2009 12:50 AM
multiple gateways Laurkin Linux - Server 15 07-12-2007 03:26 AM
Multiple Gateways inforlinx Linux - Networking 1 02-22-2005 08:28 PM
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 05:01 PM
multiple ips, multiple gateways, one interface drpixel Linux - Networking 6 12-04-2002 12:56 AM

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

All times are GMT -5. The time now is 05:04 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