I wrote the following iptables rules.
My main intention was to do these things
allow ssh traffic to any machine
allow web traffic(http,https, and some ssh) to a select number of websites(effectively a whitelist)
allow all traffic to 192.168.0.x (machines in my subnet)
allow all traffic with the loopback interface
don't mess up the current connections
Im trying to track whether some ports are being used, and what by, as I want to close them. I have made some iptables traffic counters, and have worked out is a small amount of traffic, coming into a java prcess. Now i want to know what is consuming it. How can I get iptables to log the IP of the client (to syslog or similar) ?
I'm running DD-WRT firmware on my router, version DD-WRT v24-sp2 (12/12/11) std.
I'm trying to port forward http traffic on port 80 to my PC's local IP, 192.168.2.97, and although I can browse my hosted site on my LAN, when I try from a remote IP offsite I get "The Connection has timed out".