Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2008 00:47:39 -0800 (PST)
From:      bogdan oprea <bogdan_inedit@yahoo.com>
To:        freebsd-ipfw@freebsd.org
Subject:   ipfw triple homed bridge
Message-ID:  <44691.25194.qm@web50303.mail.re2.yahoo.com>

next in thread | raw e-mail | index | archive | help
i have a freebsd 7 box with the following configuration:
vr0---box---rl0
=A0=A0=A0=A0=A0=A0=A0=A0 |
=A0=A0=A0=A0=A0=A0=A0 rl1
i bridged vr0 and rl0 using this commands in rc.conf:
cloned_interfaces=3D"bridge0"
ifconfig_bridge0=3D"inet x.x.x.x/24 addm vr0 addm rl0 up"
ifconfig_vr0=3D"up"
ifconfig_rl0=3D"up"

rl1 has routing enabled with:
gateway_enable=3D"YES"
ifconfig_rl1=3D"inet y.y.y.y=A0 netmask 255.255.255.192"

when creating rules such as:
ipfw add 100 ip from any to any in via vr0 or ipfw add 100 ip from any to a=
ny in via rl0 i see no traffic
but when creating rules like ipfw add 100 ip from any to any in via bridge0=
 i see traffic
i was wondering if i can add rules based on vr0 and rl0, not on bridge0, be=
cause i wan't to limit some ports on vr0 and i want dhcpd server to serve o=
nly on rl0

i also have in sysctl.conf:
net.link.bridge.ipfw=3D1
net.link.bridge.ipfw_arp=3D1
=0A=0A=0A      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44691.25194.qm>