Guest User

pdmenurc iptables

a guest
Apr 10th, 2014
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. #Set a pleasing color scheme.
  2. color:desktop:blue:blue
  3. color:title:white:white
  4. color:base:white:white
  5.  
  6. #this is a comment
  7. menu:iptables:Iptables:Select
  8. exec:_iptables-save:disp:iptables-save
  9. show:_INPUT (Incoming)::incoming
  10. show:_OUTPUT (Sending)::sending
  11. exec:_Flush (remove all rules):p:iptables -F; iptables -t nat -F; iptables -t mangle -F; iptables -P INPUT ACCEPT; iptables -P FORWARD ACCEPT; iptables -P OUTPUT ACCEPT
  12. nop
  13. show:Table - _Filter::filter
  14. show:Table - _Mangle::mangle
  15. show:Table - _NAT::nat
  16. show:Table - _Raw::raw
  17. nop:-----
  18. show:_Help::iptables-help
  19. exec:_Edit menu::nano /usr/local/bin/pdmenu.iptables
  20. menu:incoming
  21. show:_PREROUTING-Mangle::prerouting-mangle
  22. show:_PREROUTING-NAT(Port Forwarding)::prerouting-nat
  23. show:_INPUT-Filter(Local)::filter-input
  24. show:_FORWARD(Packets to forward)::filter-forwarding
  25. menu:prerouting-mangle
  26. exec:_List rules:disp:iptables -t mangle --list-rules
  27. exec:_List(PREROUTING only):disp:iptables -t mangle -L PREROUTING
  28. exec:_List(All):disp:iptables -t mangle -L
  29. exec:_Insert
  30. exec:_Remove
  31. menu:prerouting-nat
  32. exec:_List rules:disp:iptables -t nat --list-rules
  33. exec:_List(PREROUTING):disp:iptables -t nat -L PREROUTING
  34. exec:_List(All):disp:iptables -t nat -L
  35. exec:_Insert
  36. exec:_Remove
  37. menu:filter-input
  38. exec:_List rules:disp:iptables -t filter --list-rules
  39. exec:_List(INPUT):disp:iptables -t filter --list-rules INPUT
  40. exec:_List(All):disp:iptables -t filter --list-rules
  41. exec:_Insert::
  42. exec:_Remove::
  43. menu:filter-forwarding
  44. exec:_List rules:disp:iptables -t filter --list-rules
  45. exec:_List(FORWARD):disp:iptables -t filter -L FORWARD
  46. exec:_List(All):disp:iptables -t filter -L
  47. exec:_Insert:edit,p:iptables -t filter -I FORWARD -p ~Protocol?:tcp~ --dport ~DestinationPort?:~ -j ~Action?:ACCEPT~
  48. exec:_Remove
  49. menu:sending
  50. show:_Mangle,OUTPUT(Local host)::output-mangle
  51. show:_NAT (Local host)::output-nat
  52. show:_Filter,OUTPUT(Local host)::output-filter
  53. show:_NAT,POSTROUTING(Local + Forwarded)::postrouting-nat
  54. menu:output-mangle
  55. exec:_List:disp:iptables -t mangle --list-rules OUTPUT
  56. exec:_Insert::
  57. exec:_Remove::
  58. menu:output-nat
  59. exec:_List rules:disp:iptables -t nat --list-rules
  60. exec:_List OUTPUT:disp:iptables -t nat -L OUTPUT --line-numbers
  61. exec:_List All:disp:iptables -t nat -L --line-numbers
  62. exec:_Insert::
  63. exec:_Remove::
  64. menu:output-filter
  65. exec:_List:disp:iptables -t filter -L OUTPUT --line-numbers
  66. exec:_Insert::
  67. exec:_Remove::
  68. menu:postrouting-nat
  69. exec:_List All:disp:iptables -t nat -L --line-numbers
  70. exec:_List POSTROUTING:disp:iptables -t nat -L POSTROUTING --line-numbers
  71. exec:_Insert::
  72. exec:_Remove::
  73.  
  74. menu:filter:Filter
  75. exec:_List rules:edit,disp:iptables -t filter --list-rules ~Chain?:~
  76. exec:_List:edit,disp:iptables -t filter --list ~Chain?:~
  77. exec:_Append::dialog --menu Protocol: 20 40 17 all o tcp o udp o udplite o icmp o esp o ah o sctp o;\
  78. dialog --form Details 20 60 17 \
  79. "Source address/mask " 1 1 "" 1 28 30 0 \
  80. "Destination address/mask " 2 1 "" 2 28 30 0 \
  81. "Jump target " 3 1 "" 3 28 30 0 \
  82. "Goto chain " 4 1 "" 4 28 30 0 \
  83. "In interface " 5 1 "" 5 28 30 0 \
  84. "Out interface " 6 1 "" 6 28 30 0;\
  85. iptables --append
  86. exec:_Delete::
  87. exec:_Insert::
  88. exec:_Replace::
  89. exec:_Chain..::
  90. menu:mangle:Mangle
  91. exec:_List rules:edit,disp:iptables -t mangle --list-rules ~Chain?:~
  92. exec:_List:edit,disp:iptables -t mangle --list ~Chain?:PREROUTING~
  93. exec:_Add::
  94. exec:_Edit::
  95. exec:_Remove::
  96. exec:_View::
  97. menu:nat
  98. exec:_List rules:disp,edit:iptables -t nat --list-rules ~Chain?:~
  99. exec:_List:disp,edit:iptables -t nat -L ~Chain?:~ --line-numbers
  100. menu:raw
  101. exec:_List rules:disp,edit:iptables -t nat --list-rules ~Chain?:~
  102. exec:_List:disp,edit:iptables -t nat -L ~Chain?:~ --line-numbers
  103. menu:iptables-help:Help
  104. exec:_About:disp:grep "^##" /usr/local/bin/pdmenu.iptables
  105. exec:_iptables::man iptables
  106. exec:_iptables-save::man iptables-save
  107. exec:_Version:disp:iptables --version
  108. nop
  109. exit:_Back to main menu..
Advertisement
Add Comment
Please, Sign In to add comment