Obtener IP pública vía shell
-
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.2Salu2
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.