Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. [fwBasic]
  2. status = enabled
  3. incoming = deny
  4. outgoing = deny
  5. routed = disabled
  6.  
  7. [Rule0]
  8. ufw_rule = 10.1.1.0/24 ALLOW OUT Anywhere (out)
  9. description = Allow traffic to LAN
  10. command = ufw allow out to 10.1.1.0/24
  11. policy = allow
  12. direction = out
  13. protocol =
  14. from_ip =
  15. from_port =
  16. to_ip = 10.1.1.0/24
  17. to_port =
  18. iface =
  19. routed =
  20. logging =
  21.  
  22. [Rule1]
  23. ufw_rule = 10.1.1.0/24 ALLOW OUT Anywhere on enp3s0 (out)
  24. description = Restrict connections to eth1
  25. command = /usr/sbin/ufw allow out on enp3s0 from any to 10.1.1.0/24
  26. policy = allow
  27. direction = out
  28. protocol =
  29. from_ip =
  30. from_port =
  31. to_ip = 10.1.1.0/24
  32. to_port =
  33. iface = enp3s0
  34. routed =
  35. logging =
  36.  
  37. [Rule2]
  38. ufw_rule = Anywhere ALLOW OUT Anywhere on tun0 (out)
  39. description = Allow tun0 traffic
  40. command = /usr/sbin/ufw allow out on tun0 from any to any
  41. policy = allow
  42. direction = out
  43. protocol =
  44. from_ip = any
  45. from_port =
  46. to_ip = any
  47. to_port =
  48. iface = tun0
  49. routed =
  50. logging =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement