I'm running a 8.1-STABLE box which runs a transparent squid server. I have pf rdr'ing to squid successfully and bridging works for a while until it stops working. I haven't seen any specific trigger as to when it stops working (time or traffic). Essentially, when it stops working, I can no longer ping from one side of the network to the other side of the bridge or pass any traffic between both NIC, but from within FreeBSD I can ping both sides. Rebooting has been to only fix so far.
LAN -> ue0 -> bridge0 [pf to squid for port 80] -> em0 -> WAN
Everything is kept simple:
ifconfig:
rc.conf:
pf.conf:
Any suggestions?
LAN -> ue0 -> bridge0 [pf to squid for port 80] -> em0 -> WAN
Everything is kept simple:
ifconfig:
Code:
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
ether 00:25:64:cb:b7:8e
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
pflog0: flags=0<> metric 0 mtu 33152
ue0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
options=80000<LINKSTATE>
ether 00:25:4b:fd:c8:2c
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 5e:ad:20:eb:55:ed
inet 192.168.3.254 netmask 0xffffff00 broadcast 192.168.3.255
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: ue0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 2000000
member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 2000000
rc.conf:
Code:
hostname="squidbox.nothing.org"
cloned_interfaces="bridge0"
ifconfig_bridge0="addm em0 addm ue0 up"
ifconfig_bridge0_alias0="inet 192.168.3.254 netmask 255.255.255.0"
ifconfig_em0="up"
ifconfig_ue0="up"
defaultrouter="192.168.3.1"
pf_enable="YES"
sshd_enable="YES"
squid_enable="YES"
apache22_enable="YES"
pf.conf:
Code:
int_if="ue0"
ext_if="em0"
rdr on $int_if inet proto tcp from any to any port www -> 127.0.0.1 port 3128
pass in quick on $int_if route-to lo0 inet proto tcp from any to
127.0.0.1 port 3128 keep state
Any suggestions?