diff --git a/README.md b/README.md index 7823fb3..fe9330a 100644 --- a/README.md +++ b/README.md @@ -1502,6 +1502,12 @@ A small group of programmers wants to change how we code—before catastrophe st * [milo-minderbinder/AWS-PlantUML](https://github.com/milo-minderbinder/AWS-PlantUML) - PlantUML sprites, macros, and other includes for AWS components. * [Amazon S3 Tools](https://s3tools.org/usage) - S3cmd usage (as shown if you type `s3cmd -h`). To access all the options and commands listed below, you'll need s3cmd version 2.0 or newer +> Tips +* [AWS Docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html) - determine your instance's IPv4 addresses using instance metadata : + 1. Connect to your instance. + 2. Use the following command to get its private IP address: `curl http://169.254.169.254/latest/meta-data/local-ipv4` + 3. Use the following command to get its public IP address: `curl http://169.254.169.254/latest/meta-data/public-ipv4` + ## Bitbucket * [Atlassian Docs](https://developer.atlassian.com/stash/docs/latest/how-tos/updating-build-status-for-commits.html) - Updating build status for commits * [Atlassian Docs](https://confluence.atlassian.com/bitbucketserver/setting-up-ssh-port-forwarding-776640364.html) - Setting up SSH port forwarding (for BitBucket or other git server) @@ -3084,6 +3090,12 @@ type `curl ident.me` to know your public ip * Trace all connections on specific port to `/var/log/messages` (syslog) using iptables : `sudo iptables -I INPUT -p tcp --match multiport --dports 443,636,389,8095,80 --syn -j LOG --log-prefix "HTTPS SYN: "` * Removing iptables rule : `sudo iptables -D INPUT -p ` +> Tips +* [AWS Docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html) - determine your instance's IPv4 addresses using instance metadata : + 1. Connect to your instance. + 2. Use the following command to get its private IP address: `curl http://169.254.169.254/latest/meta-data/local-ipv4` + 3. Use the following command to get its public IP address: `curl http://169.254.169.254/latest/meta-data/public-ipv4` + # News :exclamation: * :fire: [**HCKR News**](https://hckrnews.com/) - unofficial alternative hacker news interface, fixing some Hacker News UI [Issues](https://hckrnews.com/about.html) * :fire: [**Lobsters**](https://lobste.rs/) - Lobsters is a technology-focused community centered around link aggregation and discussion