Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # (I) Firewall config /etc/sysctl.conf
  2. sysctl -w net.inet.ip.forwarding=1 net.inet.ip.fw.enable=1
  3. sysctl -a net.inet.ip.forwarding net.inet.ip.fw.enable
  4.  
  5. ipfw list
  6. ... shoud have ....
  7. net.inet.ip.forwarding=1
  8. net.inet.ip.fw.enable=1
  9.  
  10.  
  11. # (II) Enable nat access to /etc/pf.conf
  12. #============add your host-only vlan =================
  13. # this commented lines doesn't work after computer reboot
  14. #nat on en0 from vboxnet0:network -> (en0)
  15. #nat on en3 from vboxnet0:network -> (en3)
  16. # this will work in any situation
  17. nat on en0 from 10.1.100.0/24 to any -> (en0)
  18. nat on en3 from 10.1.100.0/24 to any -> (en3)
  19. #==========================
  20.  
  21. # Reload pf
  22. pfctl -f /etc/pf.conf
  23. pfctl -e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement