Results 1 to 10 of 12
hi every one
I have a router at home which is connected to the isp and my linux box and other computer are connect from that routher.
I configured router ...
- 04-19-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 14
Internal Networking
hi every one
I have a router at home which is connected to the isp and my linux box and other computer are connect from that routher.
I configured router as IP 192.168.1.5
Windows 2003 server 192.168.1.2 , Gateway-192.168.1.1,dns1 192.168.1.1 dns2 : isp dns address(because if i dont give isp dns address it dont find out internet.may be my linux box gateway is not configured as a router.
Linux box is 192.168.1.1 gateway 192.168.1.1, dns1-192.168.1.1 dns2 : isp dns address ( still after configuring this i cant browse from linux may be i need to configure IPtable - advise me pls)
I want to use my Linux box to use a network gateway and router to pass all traffic to outside world from internal network.
i put extra LAN card , so that my other computer ( windows 2003 , laptop ) they can communicate via internal LAN card.
i can understand, i have to configure Linux box as router and i have to Enable forwarding and masquerading which have to do from IPtable.
My question is , do i need to give separate IP range to the internal network because i am using 2 network Card or will it work if i use 192.168.1.X series to every computer.
As i said, in Linux box, i am using 2 Internet card.
one will be connected from router to Linux box which is 192.168.1.1
and other would be from Linux box to inernal network
which ip and gate way i will use for internal network ?? which ip address i will provide to second lancard of Linux box ??
same 192.168.1.X or i have to use diffrent IP address like 193.132.234.1
Please Advise
Or can i use one LAN card at Linux box so that other can share from that lan card ??(which i don't think will work)
- 04-19-2007 #2Just Joined!
- Join Date
- Mar 2007
- Location
- Newcastle, Australia
- Posts
- 80
Well as I see it you can specify whatever port you want between the linux box and the router, unless of course you need specific ports open for certain services torrent etc.
I would merely specify an IP range on the 2nd card and the windows server ie 192.168.1.200 - 192.168.1.300 and of course and other specific ports the same as the the 1st nic and router.
Do you currently have service on your linux box ? when you use ifconfig do you see both nic's ?
- 04-19-2007 #3Just Joined!
- Join Date
- Apr 2007
- Posts
- 14
More explanation (internal networking)
I have router which is connected to my Isp,
Router is getting IP address via Dhcp from isp.
And my other internal pc is connected via router.
This is my Current configuration
IP configuration:
Router: 192.168.1.1
Windows 2003 server: 192.168.1.2
Linux box: 192.168.1.3
Other Pc : 192.168.1.X
What I am trying to do is :
All pc (internal network) will get internet access via my Linux box ( IP is 192.168.1.3)
For this,
1. Do I need 2 lan card ?? one from router to linux box and other from linux to internal lan card ?? or one lan card will work for this ??
2. if I need 2 lan card what IP address I will use for Second land card(from linux box to internal network ? Because from router to linux box is using 192.168.1.3
Do I need to configure the Iptable and route table ??
Please help me.
- 04-20-2007 #4Just Joined!
- Join Date
- Apr 2007
- Posts
- 14
Check the diagram
I am tryied to explain as much as i can.
tel me, if my diagram is right or wrong ??
I dont have any Static IP address, i am using a router configured as DDNS
Can i make my linux box as a public dns server ??
- 04-20-2007 #5Just Joined!
- Join Date
- Mar 2007
- Location
- Newcastle, Australia
- Posts
- 80
I don't see anyhing particularly wrong with the diagram. Troubleshooting may be better, when you put it together what is the problem you are having ? It will be much simpler to take it bit by bit.
- 04-20-2007 #6Just Joined!
- Join Date
- Apr 2007
- Posts
- 14
internal networking
Originally Posted by flebber
What i want to know initially is
Since I dont have any Static IP from my ISp ,
Can I make my linux box public server ??
Can i host my own web site in my linux box?
As I said, i configure my router box(Not linux box) as DDNS.
- 04-20-2007 #7Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
DDNS will look after your name resolving for you updating your account as your IP changes.
You may have trouble with the Windows server having both network cards on the 10.0.0.x subnet if that is what you intend. It might make more sense to have the Linux and Windows servers plug directly into the router unless the Windows server is DMZ. Personally I would use two LAN cards on the Linux box - one on the 192.168.1.x subnet in its role as Firewall etc, the other on the 10.0.0.x subnet into the internal network.
- 04-20-2007 #8Just Joined!
- Join Date
- Apr 2007
- Posts
- 14
internal networking
Thanks bigtomrodney
Yes you are right, In my linux box i have two land card
one is from router to linux and other is linux to internal.
I am trying to implement linux box as router, firewall, public server for internal and external network.
but you did not answer my question-
Since I dont have any static Ip from isp.
Can i make my linux box as public server ??
If yes, CAn you just explain me little bit , what step should i take .. exmaple -
at first configure Dns... then...
- 04-20-2007 #9Just Joined!
- Join Date
- Apr 2007
- Posts
- 14
I want to use windows 2003 server as a Dhcp server ,Active directory, exchange server for internel user. but all request to internet from windows 2003 will go via linux box.
Originally Posted by bigtomrodney
- 04-27-2007 #10Just Joined!
- Join Date
- Apr 2007
- Posts
- 14
Solved
I Solved this problem
Thanks every one


Reply With Quote