lo.j2 750 B

12345678910111213141516
  1. auto lo
  2. iface lo inet loopback
  3. up ip address add {{ loopback_ipv6 }} dev lo
  4. up ip address add {{ loopback_ipv4 }} dev lo
  5. #{% if ffrl_tun is defined and ffrl_nat_ip is defined %}
  6. # up ip address add {{ ffrl_nat_ip }} dev lo
  7. # up ip rule add from {{ ffrl_nat_ip }} table ffnet
  8. # up ip rule add iif lo table ffnet suppress_prefixlength 0
  9. # up ip -6 rule add iif lo table ffnet suppress_prefixlength 0
  10. #{% endif %}
  11. #{% if ffrl_tun is not defined %}
  12. # up ip address add 10.0.0.{{vm_id}} dev lo
  13. # up ip rule add from 10.0.0.{{vm_id}} table ffnet
  14. # up ip rule add iif lo table ffnet suppress_prefixlength 0
  15. # up ip -6 rule add iif lo table ffnet suppress_prefixlength 0
  16. #{% endif %}