LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-20-2008, 04:10 AM   #1
lhrimunda
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Post Two networks with two internet connections on same machine.


Hi below is the detail of my Question, can anyone help me to set this up...

Eth0 ISP1 DSL
Eth1 LAN 1 with IP Scheme 172.16.1.0 (DHCP)
Eth2 ISP2 WiMax with IP Scheme 192.168.15.0
Eth3 LAN 2 with IP Scheme 172.16.2.0 (DHCP)

I have a Two networks, on Two LAN Cards i.e eth1 with IP address 172.16.1.0 and eth3 with IP address 172.16.2.0. Both networks are running on DHCP using Single DHCPD.CONF file with MAC and Fix IP Addresses.
I have Two other LAN Cards for two different ISPsí DSL Internet Connections. One on eth0 With IP Scheme 192.168.1.0 and gateway is 192.168.1.1 and the DNS of this ISP are 203.99.163.240 and 203.135.0.70.
Second on eth2 with IP Scheme 192.168.15.0 and gateway is 192.168.15.1 and the DNS of this ISP are 10.1.1.16 and 10.1.1.17.

I want to configure my both internet connections on both networks separately asÖ
I want to route 172.16.1.0 eth1 to 192.168.1.0 eth0
And 172.16.2.0 eth2 to 192.168.15.0 eth3
I have all thatís want a complete step by step configuration of this setup.
IP tables Configuration (Routing and security)
DHCP Configuration (single file with both networks)
Squid Transparent Configuration


Thanks in advance.
LHRIMUNDA
 
Old 08-20-2008, 08:56 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,473

Rep: Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540
Quote:
Originally Posted by lhrimunda View Post
Hi below is the detail of my Question, can anyone help me to set this up...

Eth0 ISP1 DSL
Eth1 LAN 1 with IP Scheme 172.16.1.0 (DHCP)
Eth2 ISP2 WiMax with IP Scheme 192.168.15.0
Eth3 LAN 2 with IP Scheme 172.16.2.0 (DHCP)

I want to configure my both internet connections on both networks separately asÖ
I want to route 172.16.1.0 eth1 to 192.168.1.0 eth0
And 172.16.2.0 eth2 to 192.168.15.0 eth3

I have all thatís want a complete step by step configuration of this setup.
IP tables Configuration (Routing and security)
DHCP Configuration (single file with both networks)
Squid Transparent Configuration
So you'd like someone to configure all this for you, and send you complete documentation, along with a written step-by-step guide? Almost sounds like you want to hire a consultant to get your machine going for you.

Routing the addresses to different networks can be done by using the route command (type in "man route", and read the instructions)

You don't say what you want for security, so no one can just guess and give you an answer for the iptables rules. You also don't say what DHCP ranges you'd like set up, for which interfaces, so again, we can't guess as to what you'd like there. Also, you don't say how you want squid set up, with what features, and with what parameters.

Tell us what you've done so far, and what errors you're getting, along with what version of Linux and what distribution you're using, and we'll be glad to help.
 
Old 08-21-2008, 03:52 AM   #3
lhrimunda
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
So you'd like someone to configure all this for you, and send you complete documentation, along with a written step-by-step guide? Almost sounds like you want to hire a consultant to get your machine going for you.

Routing the addresses to different networks can be done by using the route command (type in "man route", and read the instructions)

You don't say what you want for security, so no one can just guess and give you an answer for the iptables rules. You also don't say what DHCP ranges you'd like set up, for which interfaces, so again, we can't guess as to what you'd like there. Also, you don't say how you want squid set up, with what features, and with what parameters.

Tell us what you've done so far, and what errors you're getting, along with what version of Linux and what distribution you're using, and we'll be glad to help.

Thanks for your quick reply.. infect I have already tried to configured the followings.

Dhcpd.conf for eht1 172.16.1.0 and for eth3 172.16.2.0 but even mentioning the specific interface for the network, in arp -nv it mixes the interfaces sometimes shows the 172.16.1.0 on eth 3 and same with the eth1.

Secondly I configured transparent squid running successfully for two lan cards.

third I configured rc.local for Nat and redirection of squid port. its working find for two LAN cards.

Now i want the above mentioned scenario... kindly help me.

if you want i can send you the configuration files of me.

Last edited by lhrimunda; 08-21-2008 at 03:55 AM.
 
Old 08-21-2008, 04:27 AM   #4
lhrimunda
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your quick reply.. infect I have already tried to configured the followings.

Dhcpd.conf for eht1 172.16.1.0 and for eth3 172.16.2.0 but even mentioning the specific interface for the network, in arp -nv it mixes the interfaces sometimes shows the 172.16.1.0 on eth 3 and same with the eth1.

Secondly I configured transparent squid running successfully for two lan cards.

third I configured rc.local for Nat and redirection of squid port. its working find for two LAN cards.

Now i want the above mentioned scenario... kindly help me.

Route I have added, using route command it shows in routing table but second internet was not working.

i have routed eth2 with ip scheme 192.168.15.0 gw 192.168.15.1 (modem's) IP. but the browsing was not started.

ISP 1 ISP2
192.168.1.1 (Modemís IP) 192.168.15.1 (Modemís IP)

SQUID

172.16.1.0 172.16.2.0



want to configure separately two networks if a request comes from 172.168.1.0 it should be treated by ISP1
and
if a request comes from 172.16.2.0 it should be treated by ISP2


Security.. just need the mac based addresses could get the network, (but in my scenario if anyone put manual ip it accept and allow it network, internet)

hope u got my points.

Thanks
 
Old 08-21-2008, 08:38 AM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,473

Rep: Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540
Quote:
Now i want the above mentioned scenario... kindly help me.
if you want i can send you the configuration files of me.
As I said in my first post, I'm not going to configure your system for you. Perhaps someone else here would like to do your work for free, but I won't.

Your posts are very hard to follow, and not very clear on what you've done, or what errors you're getting. Good luck.
 
  


Reply

Tags
help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
share internet between 2 other networks -Srict- Linux - Networking 11 10-06-2005 05:20 PM
Squid+2 Networks+2 Gateways+same Machine?! pin_bk Linux - Networking 6 09-03-2005 02:22 PM
2 networks and 2 internet connections on linux router seer_tenedos Linux - Networking 6 03-27-2005 07:24 AM
Samba with multiple connections from single XP machine jqcaducifer Linux - Networking 11 11-17-2004 02:53 PM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration