OK, more info. My belief is that the packets are not being DNAT’d properly. I added this to that chain:
-A PREROUTING -j LOG --log-prefix "test" --log-level 7
And was able to log all the incoming HTTP packets. I then added these two:
-A FORWARD -p tcp -m tcp --dport 80 -j LOG --log-prefix "test" --log-level 7 -A OUTPUT -p tcp -m tcp --dport 80 -j LOG --log-prefix "test" --log-level 7
A properly DNAT’d packet should pass through FORWARD and then OUTPUT, but I found nothing in the log. Is it possible that the DNAT module isn’t loaded?
I’ve done tcpdump and the firewall definitely always receives the internet-incoming message and the web server never receives it.
Any clues?
-----Original Message-----
What debugging have you done? tcpdump, iptables logging, anything?
Does your web server have a default gateway of the firewall? Thanks,
|