The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. - sysctl:
  2. name: net.ipv4.ip_forward
  3. value: 1
  4. sysctl_set: yes
  5. - sysctl:
  6. name: net.ipv6.conf.all.forwarding
  7. value: 1
  8. sysctl_set: yes
  9. - sysctl:
  10. name: net.ipv4.conf.all.send_redirects
  11. value: 0
  12. sysctl_set: yes
  13. - name: "Allow MITM private port"
  14. iptables:
  15. chain: INPUT
  16. action: insert
  17. rule_num: 10
  18. protocol: tcp
  19. destination_port: "{{ mitm_port }}"
  20. ctstate: NEW
  21. syn: match
  22. jump: ACCEPT
  23. comment: Accept new local TCP DNS connections on private port
  24. become: yes
  25. - name: Route port 80 through mitmproxy
  26. iptables:
  27. table: nat
  28. chain: PREROUTING
  29. action: insert
  30. rule_num: 1
  31. protocol: tcp
  32. destination_port: 80
  33. jump: REDIRECT
  34. to_ports: "{{ mitm_port }}"
  35. - name: Route port 443 through mitmproxy
  36. iptables:
  37. table: nat
  38. chain: PREROUTING
  39. action: insert
  40. rule_num: 2
  41. protocol: tcp
  42. destination_port: 443
  43. jump: REDIRECT
  44. to_ports: "{{ mitm_port }}"
  45. - name: save iptables rules
  46. shell: iptables-save > /etc/iptables/rules.v4
  47. become: yes
  48. - name: save iptables v6 rules
  49. shell: ip6tables-save > /etc/iptables/rules.v6
  50. become: yes