Skip to content

Instantly share code, notes, and snippets.

@ayuxsec
Created February 19, 2026 15:27
Show Gist options
  • Select an option

  • Save ayuxsec/71587a365474e39ea53639febdffaccd to your computer and use it in GitHub Desktop.

Select an option

Save ayuxsec/71587a365474e39ea53639febdffaccd to your computer and use it in GitHub Desktop.

https://cloud.oracle.com/compute/instances then vnc -> security -> default -> security rules -> add ingress rule

sudo echo "-A INPUT -p tcp -m state --state NEW -m tcp --dport <your_port> -j ACCEPT" >> /etc/iptables/rules.v4
sudo iptables-restore < /etc/iptables/rules.v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment