LinuxQuestions.org
Review your favorite Linux distribution.
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 11-25-2003, 10:54 PM   #1
joson
LQ Newbie
 
Registered: Nov 2003
Location: India
Posts: 5

Rep: Reputation: 0
Sharing Proxy server by another Linux machine to configure sendmail


I have 2 Linux servers. One is having RH 8.0 and another one with RH 9.0. The first machine is having 2 ethernet card and eth1 is connected to internet via cable modem. IP address of eth0 is 192.168.1.1 and other machine's IP is 192.168.1.2. The first machine is also loaded with squid for proxy. All clients PCs in local network is accessing 192.168.1.1 for internet access.

The other Linux machine (192.168.1.2) is used for file server (samba), mail server (sendmail), intranet (apache) and all clients login to this machine for their mails and file access.

I have also set gateway on 192.168.1.2 as follows:

route add -net default gw 192.168.1.1 netmask 0.0.0.0 metric 1

Also mentioned the nameserver ip address on /etc/resolv.conf

Everything is working fine when the cable line is up. Whenever the cable modem is off or the connectivity to internet is absent on gateway machine (192.168.1.1) clients are unable to login to 192.168.1.2 machine. This happens when any client machine try to login else whoever has logged in have no problem, they can still work with their shareable files or folders. Cable lines goes down 2-3 times a day that creats a lot of problem to us.

Can anyone help me? Thanks in advance. Joson
 
Old 11-26-2003, 12:53 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you post your routing table at both points, when it does work and when it doesn't work:
route -n

Does it work if you try to connect with the ip address rather than the server name?
 
Old 11-26-2003, 10:57 PM   #3
joson
LQ Newbie
 
Registered: Nov 2003
Location: India
Posts: 5

Original Poster
Rep: Reputation: 0
Dear David-ross,

Thank you for your prompt response:


route -n result from 192.168.1.2 is as follows:

Destination Gateway Genmask Flag Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.55.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 1 0 0 eth0

In the other machine (192.168.1.1) :

203.194.96.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 203.194.196.1 0.0.0.0 UG 0 0 0 eth1

And the status is same always.

Additional Information: When my cable line is up everything works fine. The user login problem happens only when cabe line is down. Similarly, the moment the line come up, it again starts working as normal. Also during the time when the cabe modem is down, the people who have already logged into the system have no problem, they can still work. Problem happens to the users who try to login to the server (192.168.1.2) when the cable modem is down. Hope I have clarified.

Regards,

Joson

Last edited by joson; 11-26-2003 at 10:59 PM.
 
Old 11-27-2003, 12:24 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by david_ross
Does it work if you try to connect with the ip address rather than the server name?
 
Old 11-27-2003, 11:30 PM   #5
joson
LQ Newbie
 
Registered: Nov 2003
Location: India
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Not tried. Users are trying to login thru samba login where we are using workgroup name for access. Therefore, I don't know whether I can try this option. Any how I shall try and come back to u. Other-wise is there any clue why this is happening?

My doubt is when the default gatway is down, why login to the server is not allowed. Will it be a setting problem? Basically what I want is to set my server to have that default gateway setting but even when the gateway is not on, local people should be able to login to the server.

May be someone can help me ????

Joson
 
Old 11-28-2003, 01:14 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
My only assumption was some sort of name resolution hence why I suggested using the IP.

Can you ping the server when the gateway is down?

Is there any record of a conection attempt in the samba logs? You may want to increase the logging level.
 
Old 12-15-2003, 10:17 PM   #7
joson
LQ Newbie
 
Registered: Nov 2003
Location: India
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Sorry for the delay. I was busy on some other issues.

To reply to your query - I can ping to the server when the gateway is down. And I tried connecting thru IP address, but it was not working. I dont think the samba config is the problem as our clients cannot download their e-mails also from the server during the time when gateway is down.
Any clue?
 
Old 12-16-2003, 01:05 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What do your clients use as the name of the e-mail server? If iy is a DNS entry then try it with the IP address.

What about the log I mentioned before?
 
  


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
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
How to configure a proxy server in linux ? indian Linux - Networking 4 08-24-2005 01:28 PM
Transperant Proxy and web server on one machine = issue ... sys7em Linux - Networking 2 06-16-2005 02:29 PM
Proxy server- sharing internet between Win98 and Linux nemesix Linux - Networking 1 12-21-2004 10:31 AM
How to configure Squid to communicate with another proxy server? davidas Linux - Networking 1 05-19-2004 04:23 PM

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

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