Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. security {
  2. nat {
  3. source {
  4. rule-set nat-rule {
  5. from zone trust;
  6. to zone untrust;
  7. rule source-nat {
  8. match {
  9. source-address 0.0.0.0/0;
  10. }
  11. then {
  12. source-nat {
  13. interface;
  14. }
  15. }
  16. }
  17. }
  18. }
  19. destination {
  20. pool A {
  21. address 192.168.0.20/32 port 22;
  22. }
  23. rule-set RS2 {
  24. from zone untrust;
  25. rule DA2 {
  26. match {
  27. destination-address 213.103.x.x/24;
  28. destination-port 22;
  29. }
  30. then {
  31. destination-nat pool A;
  32. }
  33. }
  34. }
  35. }
  36. }
  37. zones {
  38. security-zone trust {
  39. interfaces {
  40. vlan.0 {
  41. host-inbound-traffic {
  42. system-services {
  43. all;
  44. }
  45. }
  46. }
  47. }
  48. }
  49. security-zone untrust {
  50. host-inbound-traffic {
  51. system-services {
  52. ssh;
  53. }
  54. }
  55. interfaces {
  56. fe-0/0/0.0 {
  57. host-inbound-traffic {
  58. system-services {
  59. dhcp;
  60. }
  61. }
  62. }
  63. }
  64. }
  65. }
  66. policies {
  67. from-zone trust to-zone untrust {
  68. policy internet-access {
  69. match {
  70. source-address any;
  71. destination-address any;
  72. application any;
  73. }
  74. then {
  75. permit;
  76. }
  77. }
  78. }
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement