LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-13-2004, 11:08 PM   #1
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Rep: Reputation: 2
Apache Log broke using iptables and port forwarding


Ok, here is one that has me stumped... I was using an inexpensive ADSL/Cable router/firewall for my home ADSL connection. I am hosting a non-profit website from the connection. I have tried two different vendors routers and each had issues that prevented good service from them. One would stop forwarding to port 80 on the webserver address if IM was fired up on any other internal machine and the other would simply go to sleep for no reason and need a power cycle. SO, I ended up taking an old laptop, plugging in two PCIMIA NIC cards (3Coms) and setting it up as a router/firewall using Linux 2.4.20 and iptables. That has worked better than anything so far. Fantastic to be exact... Those two routers you ask? They are now simply fast Ethernet switches. (sorry for the ramble...)

Ok so now the current issue/challenge... before, apache access logs tracked the proper IP address of the Internet user accessing the website. Now with the Linux-iptables port forwarding setup, only the IP address of the PPP0 port of the laptop/firewall is listed in the access log for every connection made. Obviously every httpd request is stamped coming from the firewall as it is after all "forwarding" the traffic.

Any ideas on how to set up iptables and port forwarding to enable apache logs to capture the end users IP information? Please let me know if this is in the wrong area... seems to fit this forum, but I wasn't 100% sure...


Thanks in advance...

Last edited by rwyarbrough; 01-13-2004 at 11:22 PM.
 
Old 01-14-2004, 09:32 AM   #2
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Original Poster
Rep: Reputation: 2
moving to the top hoping someone will see and respond, at least give some leads where else to look... I'd love to read the manual, just don't know where to turn for one....

Thanks in advance...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 08:35 PM
iptables - port forwarding midiguy732 Linux - Networking 1 11-24-2005 02:40 AM
iptables port forwarding jefmwols Linux - Networking 9 05-20-2005 05:08 PM
IPTABLES port forwarding sal_paradise42 Linux - Networking 5 10-25-2003 05:11 PM
iptables and port forwarding jamesws Linux - Networking 0 02-10-2002 07:57 PM

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

All times are GMT -5. The time now is 07:09 AM.

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