Hi, I was wondering how http traffic on the gateway can be caught and redirected with ipfw/nat.
my setup is as follows:
on the gateway outside interface i have:
I have a second instance of natd on rl0.
the ipfw rules are:
tcpdump shows the gateway forwarding to the destination and not to squid.
does anyone have any idea where this is going wrong?
my setup is as follows:
Code:
if2 if1
lan ------->(rl0 192.168.1.0) freebsd gateway(sis0 76.0.0.0) --------> internet
|
|
|
|
192.168.1.110 ---------------> internet
squid server
Code:
natd:
interface sis0
use_sockets yes
same_ports yes
I have a second instance of natd on rl0.
Code:
natd -v -n rl0 -p 8669 -redirect_address 192.168.1.110 0.0.0.0
the ipfw rules are:
Code:
divert 8668 ip from any to any via sis0
allow all from any to any via sis0
divert 8669 tcp from 192.168.1.0/24 to any dst-port 80 via rl0
tcpdump shows the gateway forwarding to the destination and not to squid.
does anyone have any idea where this is going wrong?