Skip to content

Commit

Permalink
Remove use of port 443 from LAN
Browse files Browse the repository at this point in the history
  • Loading branch information
Naman1997 committed Sep 9, 2024
1 parent 143102b commit 541c718
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion templates/ingress/nginx-controller.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ controller:
enabled: true
ports:
http: 80
https: 443

kind: DaemonSet
service:
Expand Down
5 changes: 2 additions & 3 deletions templates/iptables/add-nat-routing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ iptables -A FORWARD -i $WG_FACE -j ACCEPT
iptables -t nat -A POSTROUTING -o $IN_FACE -j MASQUERADE
iptables -I INPUT 1 -i $IN_FACE -p udp --dport $WG_PORT -j ACCEPT

# HTTP(S)
iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT
# HTTP
iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
5 changes: 2 additions & 3 deletions templates/iptables/remove-nat-routing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ iptables -D FORWARD -i $WG_FACE -j ACCEPT
iptables -t nat -D POSTROUTING -o $IN_FACE -j MASQUERADE
iptables -D INPUT -i $IN_FACE -p udp --dport $WG_PORT -j ACCEPT

# HTTP(S)
iptables -D INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
iptables -D INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
# HTTP
iptables -D INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

0 comments on commit 541c718

Please sign in to comment.