Forum Moderators: phranque

Message Too Old, No Replies

access_log showing only one ip address

         

aneirin

10:45 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



Current setup:
I'm running Apache 1.3.27 on Solaris 8 with a SMC router that forwards all web access (Port 80) to the Solaris server.

Problem I'm having:
I was checking my apache access_log a few days ago and found it reporting only one ip address in the client ip address section for all access.

The ip address showing is the cable modem's IP address.
No matter where I access it from, it logs the client ip address as the one on the cable modem. It used to report correct ip addresses and I'm not quite sure if I had made any changes that would've caused this.

I tried rebooting the server but the problem persists. Nothing on the router setting indicates that there's some feature I've set or unset.

I haven't been able to find a similar problem on the net via search engine.

Can anyone help me with this problem?

Thanks

[edited by: aneirin at 11:12 pm (utc) on Feb. 13, 2004]

bakedjake

10:47 pm on Feb 13, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld, aneirin!

You running ipchains? If so, tell it to stop masquerading your source IP on incoming connections.

There was a thread in either here or Website Technology about a month ago on this, too.

aneirin

11:14 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



Thanks for your quick reply, jd. But I'm not running ipchains

lemat

10:37 am on Feb 14, 2004 (gmt 0)

10+ Year Member



then you're using iptables or other stuff to forward port 80 to the host inside your LAN.
the problem is not in apache server.

aneirin

1:05 am on Feb 23, 2004 (gmt 0)

10+ Year Member



It seems like the router was the problem. my SMC Broadband router 7004ABR is not forwarding the client ip address. I tested with a Linksys router and it was forwarding them correctly.