Well, hello again. Since nobody could fire out a reason for the disappearing handshakes, I figured that FreeBSD has enough firewalls to go around, so just try another one if the first doesn't work.
For background, I have a box running 11.0-RELEASE with the stock kernel. It has two interfaces, re0 (external) and em0 (internal), connected as a bridge0. The intent is to pass HTTP traffic from clients connected to em0 into a transparent Squid running on port 3128.
rc.conf
/usr/local/etc/ipfw.rules
While /var/log/security does report packets to port 80 being forwarded to 127.0.0.1:3128, nothing shows up in Squid, the packets just pass through to their original destination. I've also tested it with
I've also tried the looser rule suggested here, which seems to have worked for somebody with a similar setup, but no luck for me.
Do I have to try IPF next (never even used that), or does anybody have an idea why my fwd rules don't forward anything?
For background, I have a box running 11.0-RELEASE with the stock kernel. It has two interfaces, re0 (external) and em0 (internal), connected as a bridge0. The intent is to pass HTTP traffic from clients connected to em0 into a transparent Squid running on port 3128.
rc.conf
Code:
firewall_enable="YES"
firewall_script="/usr/local/etc/ipfw.rules"
firewall_logging="YES"
firewall_nat_enable="YES"
cloned_interfaces="bridge0"
ifconfig_bridge0="addm em0 addm re0 SYNCDHCP"
ifconfig_em0="up"
ifconfig_re0="up"
gateway_enable="YES"
/usr/local/etc/ipfw.rules
Code:
ruleadd="ipfw -q add"
ipfw -q -f flush
ipfw table all flush
# 192.168.0.157 is the system used for testing
$ruleadd 005 fwd 127.0.0.1,3128 log tcp from 192.168.0.157 to not me in via em0
$ruleadd 010 allow all from any to any
While /var/log/security does report packets to port 80 being forwarded to 127.0.0.1:3128, nothing shows up in Squid, the packets just pass through to their original destination. I've also tested it with
nc -l 3128
to verify it's not a problem with Squid, again nothing. I've also tried the looser rule suggested here, which seems to have worked for somebody with a similar setup, but no luck for me.
Do I have to try IPF next (never even used that), or does anybody have an idea why my fwd rules don't forward anything?