Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-20-2008, 04:10 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2008
Posts: 3
Rep:
|
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
|
|
|
|
08-20-2008, 08:56 AM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,778
|
Quote:
Originally Posted by lhrimunda
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.
|
|
|
|
08-21-2008, 03:52 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2008
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
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.
|
|
|
|
08-21-2008, 04:27 AM
|
#4
|
|
LQ Newbie
Registered: Aug 2008
Posts: 3
Original Poster
Rep:
|
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
|
|
|
|
08-21-2008, 08:38 AM
|
#5
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,778
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:04 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|