對外網路←→pf防火牆←→A虛擬網段(假設192.168.1.X)←→FreeBSD(router不是NAT)
︿︿︿︿︿︿︿︿︿︿︿︿︿︿是的這裡就是router
←→B虛擬網段(假設192.168.2.X,PCA所在網段)
你在router table 一定可以看到所有的path
已經很久沒有玩freebsd
應該在rc.loacl 裡面會有 path 設定
在你的freebsd vm 內
參考一下這篇
http://www.freebsd.org/doc/handbook/network-routing.html
32.2.4 Building a Router
A network router is simply a system that forwards packets from one interface to another. Internet standards and good engineering practice prevent the FreeBSD Project from enabling this by default in FreeBSD. You can enable this feature by changing the following variable to YES in rc.conf(5):
gateway_enable="YES" # Set to YES if this host will be a gateway
This option will set the sysctl(8) variable net.inet.ip.forwarding to 1. If you should need to stop routing temporarily, you can reset this to 0 temporarily.
Your new router will need routes to know where to send the traffic. If your network is simple enough you can use static routes. FreeBSD also comes with the standard BSD routing daemon routed(8), which speaks RIP (both version 1 and version 2) and IRDP. Support for BGP v4, OSPF v2, and other sophisticated routing protocols is available with the net/zebra package. Commercial products such as GateD® are also avail
這裡有詳細的說明
工作機 上線
P15 Gen1 48G RAM 一堆頻率不統一的 合在一起跑