Hello.
On my system I have Internal-Network, External-Network, lo0 and a cloned lo2 for jails. Traffic from lo0 and the Internal-Network for certain ports (like 80) will be diverted first to proxies running in jails and then to the outside (Ext-If). The other ports will forward requests to the gateway directly. It was suggested I use multiple routing tables for this instead of redirects in pf. I have read a good amount of documentation and get the concepts, but I have minor points to clear up.
Thanks and regards.
On my system I have Internal-Network, External-Network, lo0 and a cloned lo2 for jails. Traffic from lo0 and the Internal-Network for certain ports (like 80) will be diverted first to proxies running in jails and then to the outside (Ext-If). The other ports will forward requests to the gateway directly. It was suggested I use multiple routing tables for this instead of redirects in pf. I have read a good amount of documentation and get the concepts, but I have minor points to clear up.
- The lo2 clone can use the 192.168.2.96/28 IP address group yet each jail is to have one of 192.168.2.(97-105)/32 address assignments. Do I set[ ]up one FIB for the lo2 address group (preferable but seems unlikely) or do I set one-FIB-per jail with
Code:
jail_<name>_fib=n
- I assume I also need to assign one FIB to the Int-If NIC? If yes, how is it done persistently in /etc/rc.conf? I came across this code, but it does not seem very logical:
Code:setfib 1 route delete default setfib 1 route add default 192.168.2.1 (Int-If's IP)
- Same question as above, but for the jail. I would assume that
Code:
jail_<name>_fib=n
- What (if any) should be the defaultrouter= setting in <jail>/etc/rc.conf? Choices are: Nothing / The FIB address / The Ext-If address. It seems FIB address is the correct choice.
Thanks and regards.