Bug 1954749 - mod_remoteip not working
Summary: mod_remoteip not working
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: apache-parent
Version: 34
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-28 17:51 UTC by Jeff Sadowski
Modified: 2021-04-29 13:00 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-29 13:00:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jeff Sadowski 2021-04-28 17:51:25 UTC
Description of problem:
using $_SERVER['REMOTE_ADDR'] in a php script returns the server ip address not the address of the client.

Version-Release number of selected component (if applicable):
Package httpd-2.4.46-10.fc34.x86_64 is installed.

How reproducible:
Easy

Steps to Reproduce:
1.install apache and php
2.create a simple php script that uses $_SERVER['REMOTE_ADDR']
3. access the php page from a client computer

Actual results:
ip address of server

Expected results:
ip address of client

Additional info:

Comment 1 Jeff Sadowski 2021-04-29 13:00:38 UTC
It was because I had masquerading on the interface I was testing on.


Note You need to log in before you can comment on or make changes to this bug.