Topic: Ip not detected

I'm unsure if it is or not a bug.

Since last week I was running PunBB in a machine with a public address.

Now I moved PunBB to a machine inside the LAN. The router is forwarding port 80 to this local machine.
Now, in every post, PunBB says the sender IP is 172.26.0.3 which belongs to the router instead of registering the real user IP.

Any suggestion?

Re: Ip not detected

Sounds like instead of forwarding the connection your router acts as a proxy server and receives the data and passes it on to the user.

Re: Ip not detected

Sorry, rereading my post I realized I wrote a mistake. Its not the router address which is registered in punBB but the IP of the server
172.26.0.3 is the address of the server whilst the router has the IP 72.26.0.1
So punBB remembers the IP of the server ( 172.26.0.3) in which it is installed instead of the users IP

Again... any suggestion? (And my apologies for my mistake)

Re: Ip not detected

Still the same thing wink Your router works as a proxy, so every user that comes through has that IP wink

Re: Ip not detected

elbekko wrote:

Still the same thing wink Your router works as a proxy, so every user that comes through has that IP wink

The IP of the machine in which the punBB resides?
My router has NAT activated and a DMZ defined, DMZ is 172.26.0.3 the router is 172.26.0.1
So the solution is to use NAT and opening ports into the server instead of using a DMZ IP?

Until last week I had two NIC cards in the server, one connected to the WAN and the other to the LAN. The server was doing NAT (via "divert" rues from ipfw) and no problem at all.
I changed it 'cause the spare machine I have just in case the main server fails, is a small 1U rack machine with only one Ethernet interface.

Re: Ip not detected

can we say m0n0wall? hehehe...

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Ip not detected

If you feel comfortable doing so, I'd suggest that you simply make your router act as a bridge (i.e. transparently foward all requests to your server) assuming it's your gateway box as well as your server.

8 (edited by expertdecisions 2006-07-04 12:21)

Re: Ip not detected

pepolez wrote:

If you feel comfortable doing so, I'd suggest that you simply make your router act as a bridge (i.e. transparently foward all requests to your server) assuming it's your gateway box as well as your server.

That's what I did:

Now the router is transparent, the server has two NICs and is the server itself which is acting as a router (via ipwv divert and nat -Mac Os X Server-) between the world and my LAN. Now PunBB records correct user  IPs.