Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Obtener IP pública vía shell

    Español
    1
    1
    551
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      javcasta
      last edited by

      Hola

      Un pequeño tip, para obtener la IP pública desde la shell de pfSense , consultandolo a https://pfsense.org/ip.php

      
      curl -s https://pfsense.org/ip.php | grep "Your IP is" | cut -d'>' -f2 | cut -d'<' -f1
      
      

      [2.3.2-RELEASE][root@pfSense232a.localdomain]/root: curl -s https://pfsense.org/ip.php | grep "Your IP is" | cut -d'>' -f2 | cut -d'<' -f1
      Your IP is 108.x.x.2

      Salu2

      Javier Castañón
      Técnico de comunicaciones, soporte y sistemas.

      Mi web: https://javcasta.com/

      Soporte scripting/pfSense https://javcasta.com/soporte/

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.