LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Two networks with two internet connections on same machine. (http://www.linuxquestions.org/questions/linux-networking-3/two-networks-with-two-internet-connections-on-same-machine-664007/)

lhrimunda 08-20-2008 04:10 AM

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

TB0ne 08-20-2008 08:56 AM

Quote:

Originally Posted by lhrimunda (Post 3253538)
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.

lhrimunda 08-21-2008 03:52 AM

Quote:

Originally Posted by TB0ne (Post 3253752)
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.

lhrimunda 08-21-2008 04:27 AM

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

TB0ne 08-21-2008 08:38 AM

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.


All times are GMT -5. The time now is 12:15 AM.