find public IP from within jail

Status
Not open for further replies.

matlock

Contributor
Joined
Mar 2, 2012
Messages
114
So I have a DD-WRT (R7000 nighthawk) router where i've setup VPN (client) with policy based routing.

I've setup my phone and the transmission jail to route its traffic through the VPN. I can confirm from my phone that the VPN is working and i am receiving a different external IP address on my phone compared to other devices on my network. I want to confirm that the transmission jail also is receiving a 'vpn' ipaddress.

Can someone provide guidance on how to determine a jail's external IP address?

Thanks for the help!

Matlock
 

matlock

Contributor
Joined
Mar 2, 2012
Messages
114
the power of google =)....

open up shell (from freenas webgui)

type:
jls
...to list out jails

type:
jexec N tcsh
where N is the Jail number you want to enter

type:
wget -qO - http://wtfismyip.com/text

this will return your jails public IP address

All is working =)
 
Last edited:
Status
Not open for further replies.
Top