From 55298a51cb0cc5e68c5a43869f2f32b899d3a622 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Tue, 22 Apr 2025 17:29:46 -0500 Subject: init --- roles/network/tasks/misc.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/network/tasks/misc.yaml (limited to 'roles/network/tasks/misc.yaml') diff --git a/roles/network/tasks/misc.yaml b/roles/network/tasks/misc.yaml new file mode 100644 index 0000000..bf9cb47 --- /dev/null +++ b/roles/network/tasks/misc.yaml @@ -0,0 +1,12 @@ +- name: Print Tomato Setup + debug: + msg: "To complete the rest of the setup, setup the upstream DNS on the router. Also disable DNS rebind protection. Don't forget to add the bridges to the router's DNSMASQ configuration in the form interface=brXX + Setup the following iptables on altaria:\n + -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.0.0.2 +-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.0.0.2 +-A PREROUTING -d 137.184.95.59/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.0.0.2 +-A PREROUTING -d 137.184.95.59/32 -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.0.0.2 +-A PREROUTING -d 137.184.95.59/32 -p tcp -m tcp --dport 2222 -j DNAT --to-destination 10.0.0.2:30022 +" + delegate_to: localhost + run_once: true -- cgit