A
Anonymous
Guest
My network is set up such that: (client)-->(router/nat)-->(ipfw firewall/nat)-->(internet)
On the ipfw machine I have apache listening on internal socket 192.168.1.1:1187
I have the following rule set up and it appears to be grabbing outgoing traffic on port 80 since no http traffic is going through the router but everything else is working.
So I'm pretty sure the "from any to any dst-port 80" part is correct.
But I tried putting 127.0.0.1:1187 as the location to divert to and it truncates it to 127. I'm guessing somehow that rule is expecting just a port number or something but I want to be more specific. I would go through and read the entire ipfw man page and experiment but I hardly ever have to configure the firewall and it would take hours if not days. Can anyone help?
On the ipfw machine I have apache listening on internal socket 192.168.1.1:1187
I have the following rule set up and it appears to be grabbing outgoing traffic on port 80 since no http traffic is going through the router but everything else is working.
Code:
divert 1187 tcp from any to any dst-port 80
But I tried putting 127.0.0.1:1187 as the location to divert to and it truncates it to 127. I'm guessing somehow that rule is expecting just a port number or something but I want to be more specific. I would go through and read the entire ipfw man page and experiment but I hardly ever have to configure the firewall and it would take hours if not days. Can anyone help?