Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FreeBSD Firewall

Status
Not open for further replies.

awevibe

Technical User
Jan 12, 2005
1
US
I've got a Win2K box with Apache 2.0 installed running my webserver. It is on a private network 192.168.x.x behind a FreeBSD firewall running IPFW. The firewall passes port 80 and 443, and works just fine. The firewall has only two subnets connected to it, an internal (192.168.x.x) and the public internet. However, as I'm looking through the logs on the webserver, the only visitor to my website has been the firewall? If I run a javascript or SSI on the website calling the REMOTE_ADDR from the client, all I ever see is the firewall outside IP address? The ipfw firewall does have NATD installed and is forwarding all port 80 requests to the internal webserver
IPFW firewall syntax:

$fwcmd add pass tcp from any to any 80 in recv ${oif} setup limit src-addr 3
NATD port forwarding:
redirect_port tcp 192.168.1.2:http 80


What gives? How can I get the IP address from the Client on the server?

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top