pf nat+bridge
Gema niskazhu
gemochka at gmail.com
Sat May 30 12:45:18 UTC 2009
Hi all!
First of all sorry for my bad english again =)
I've got some problems with nat gw with pf.
My situation is pretty simple:
I've got 2 networks:
external - 10.7.240.0/20
and a internal qemu network with a tap networking
192.168.0/24
External and internal ifaces are bridged
cloned_interfaces="tap0 bridge0"
autobridge_interfaces="bridge0"
autobridge_bridge0="tap0 nfe0"
I've dhcpd on nfe0 and it could be accesed through bridge.
I've such a simple rule in pf.conf:
qemu_if = "tap0"
ext_if = "nfe0"
nat on $ext_if from $qemu_if:network to any -> ($ext_if)
pass from {lo0,$qemu_if:network } to any keep state
But none packet forwarded if we try to acces external host from internal
network.
Is there any specificity of nat'ing bridged networks?
Or i mistaken some where else?
Sorry for dumb question.
Thanks a lot in advance!
More information about the freebsd-hackers
mailing list