Hi all .
i follow http://brycv.com/blog/2013/notes-on-openbsd-in-qemu-on-openbsd/
openbsd(rental server):vio0 157.7.208.141 ---------------- internet
and
qemu-run.sh
----------------------------------------
export ETHER=vether0
export BRIDGE=bridge0
qemu-system-i386 first-image.img -m 512 \
-net nic,model=ne2k_pci -net tap
then
Ok from qemu , ping 192.168.54.1
Ok from qemu , ping 157.7.208.141
Ok from openbsd , ping 192.168.54.100
OK from openbsd , ping 157.7.208.1 (rental server's dhcpd server ? )
but
Fail from qemu , ping 8.8.8.8
Fail from qemu ping 157.7.208.1 (rental server's dhcpd server ? )
perhaps pf.conf of openbsd has defects .
-----------------------------------------------------------
tcp_services="{ 22, 25, 80, 143, 465, 587 }"
ext_if="vio0" <-------openbsd's NIC
int_if="vether0"
pass in quick on $int_if all
pass out quick on $int_if all
pass out quick on $ext_if all
block in on $ext_if all
pass out on $ext_if all
pass in quick on $ext_if proto tcp from any to any port $tcp_services \
flags S/SA keep state
match out on $ext_if inet proto tcp from 192.168.54.10 to any nat-to
($ext_if)
match out on $ext_if inet proto tcp from ($int_if:network) to any
nat-to ($ext_if:0)
and
/etc/hostname.bridge0
------------------------
add vether0
add tun0
up
i dream rdr port 49152(mediatomb) to 192.168.54.100(qemu)
-------
regards