Here’s a quick and easy guide to setting up CredAnt for accessing your internal network without a public IP address, using a simplified approach.
Download and Install:
Run the following command in your server’s terminal. This will download (about 23MB) and install CredAnt:
curl -s https://uglyfirefish.github.io/credant/install.sh|bash
Initialization:
Initialize CredAnt with root privileges (using sudo if necessary):
sudo cred_ant init
This command generates a Node ID. Copy this ID; you’ll need it later.
Obtain a License:
Start and Enable CredAnt:
After successfully importing the license, run these three commands:
systemctl start cred_ant
systemctl enable cred_ant
systemctl status cred_ant
Verify that the status is active.
Verify IP Address:
Check for a new IP address starting with 10.18.1 using:
ifconfig
Download and Extract:
Download the appropriate macOS package from the website and extract it in your Downloads directory. (This example uses the amd64 version; adjust as needed for M1/M2 chips).
cd Downloads # Navigate to the Downloads directory
curl -o cred_ant_0.1.14.zip https://uglyfirefish.github.io/credant/downloads/cred_ant_macos-amd64_v0.1.14.zip # Download the package
unzip cred_ant_0.1.14.zip # Unzip the package
cd darwin/amd64/ # Navigate into the extracted directory
Copy to /usr/local/bin/ (Important):
Copy the cred_ant executable to /usr/local/bin/ so you can run it from any directory in the terminal.
cp cred_ant /usr/local/bin/
Initialization:
Run the initialization command with root privileges:
sudo -i cred_ant init
This command generates a Node ID. Copy this ID; you’ll need it later.
Obtain a License:
Start CredAnt:
Start CredAnt:
sudo -i cred_ant start
Keep this terminal window open. It will display ongoing information.
Verify IP Address (New Terminal Window):
Open a new terminal window and check for a new IP address starting with 10.18.1:
ifconfig
Initial Ping Test: From the mac, ping the server’s virtual IP (e.g., 10.18.1.1):
ping 10.18.1.1
Download and Extract:
Download the Windows program from the website to your Downloads directory. It’s recommended to extract the files to C:\credant.
Open PowerShell as Administrator:
Navigate to the Directory:
cd C:\credant # Or the directory where you extracted CredAnt
Initialization:
Run the initialization command:
.\cred_ant.exe init
This command generates a Node ID. Copy this ID; you’ll need it later.
.\cred_ant.exe start
ipconfig
Look for a network adapter named cred0.
systemctl commands for systemd-based Linux distributions (like Ubuntu 20.04)./usr/local/bin: I’ve explicitly mentioned the importance of copying the executable to /usr/local/bin on macOS for command-line accessibility..\) and noted that a new terminal window should be opened for ipconfig.