Ident.me makes life easy!
Ratan Mohapatra-ident.me

Ident.me makes life easy!

One of my network simulation exercises is to create site-to-site VPN tunnels- IPSec and Wireguard -to cloud lab networks and playing with their optimization.

I built a script that connects to all my networks and save the data in a log file for analysis. But when I ran it in different networks and compiled the data, I had no way to know where they were from. Therefore I was looking for a way to add the Gateway information to identify them.

Ident.me is a cool way I learnt! Just type that on a web browser and you get the public IP (Fig.1)!

Fig.1. ident.me

I do my scripts in PowerShell where it was easy to integrate with Invoke-WebRequest.

 #get my Gateway Info:
    $myPublicIP = '???'
    try{
    $myPublicIP = $(Invoke-WebRequest -Uri 'https://ident.me').content
        }
    catch{}

    $ProtectedNetwork = '192.168.123.0/24'
    $GatewayInfo = "My Gateway Public IP:{0} Encryption Domain = {1}" -f $myPublicIP, $ProtectedNetwork         

Below is an output from my connectivity script in PowerShell

Fig. 2. An example of adding the public IP info a connectivity test script.

Feel free to share in the comments your favourite solutions.

要查看或添加评论,请登录

Ratan Mohapatra的更多文章

  • My experiments in AWS centralized security

    My experiments in AWS centralized security

    I am somewhat uncomfortable when using infrastructure in public cloud(e.g.

    1 条评论
  • Terraform: standardize AWS tags

    Terraform: standardize AWS tags

    I love problems that force me to learn something "new" to solve it! When I started to use Terraform a week ago, one of…

  • How did I recover my AWS root PW and MFA

    How did I recover my AWS root PW and MFA

    At AWS account requires a valid email that it can communicate with and a telephone number to be used for emergency…

  • Apache Guacamole - a missing piece in my labs!

    Apache Guacamole - a missing piece in my labs!

    Last weekend I was playing in my lab, which was behind a firewall and realized that I'd have to create a number of port…

    1 条评论
  • A puzzle of Windows wireless network connectivity

    A puzzle of Windows wireless network connectivity

    When I started my career in IT, the most common advice for problem solving I got was "search in Google..

  • AWS NAT Gateway to the rescue!

    AWS NAT Gateway to the rescue!

    NAT gateway in AWS is commonly used for allowing "internet access" to a private network (a network that has no route…

  • Experience vs (: Attitude & Aptitude :)

    Experience vs (: Attitude & Aptitude :)

    I enjoy job interviews! Sure, there could be an opportunity for moving to new environment where I can utilize my skills…

  • Simplifying AWS access- SSO by Identity federation (Azure AD)

    Simplifying AWS access- SSO by Identity federation (Azure AD)

    AWS best practice recommends a multi-account architecture where the accounts are managed from a management account…

  • Simplifying AWS Accounts management

    Simplifying AWS Accounts management

    AWS recommends [1] creating accounts specific to a project. An obvious challenge in that case is managing multiple…

  • Transitive Routing with WireGuard VPN

    Transitive Routing with WireGuard VPN

    brew install wireguard-tools wg genkey | tee privatekey | wg pubkey > publickey wg genpsk > client.psk Some useful…

社区洞察

其他会员也浏览了