How To Assign Per-App IPs in TrueNAS [YouTube Release]

Additional Resources:

TrueNAS Announcement

Migration Path

Connect With Us

Lawrence Systems Shirts and Swag

►👕 Lawrence Systems

AFFILIATES & REFERRAL LINKS

Amazon Affiliate Store
:shopping_cart: Lawrence Systems's Amazon Page

UniFi Affiliate Link
:shopping_cart: Ubiquiti Store

All Of Our Affiliates help us out and can get you discounts!
:shopping_cart: Partners We Love – Lawrence Systems

Gear we use on Kit
:shopping_cart: Kit

Use OfferCode LTSERVICES to get 10% off your order at
:shopping_cart: Tech Supply Direct - Premium Refurbished Servers & Workstations at Unbeatable Prices

Digital Ocean Offer Code
:shopping_cart: DigitalOcean: AI-Powered Unified Inference Cloud Infrastructure

HostiFi UniFi Cloud Hosting Service
:shopping_cart: HostiFi - Fast and Reliable UniFi in the Cloud

Protect your privacy with a VPN from Private Internet Access
:shopping_cart: https://www.privateinternetaccess.com/pages/buy-vpn/LRNSYS

Patreon
:money_bag: https://www.patreon.com/lawrencesystems

00:00 TrueNAS Per Application IP Addresses
00:18 TrueNAS Version
00:36 Networking Setup
02:13 How To Setup IP’s for Applications
03:52 How TrueNAS Application Routing

Thanks so much for this summary. I’m trying to understand better the default gateway and DNS routing for apps using a different interface. I currently host a Storj node app in TrueNAS ElectricEel-24.10.2.2. My TrueNAS has two NICs:

eno1 is on my primary LAN, while br0 is on LAN3. LAN3 is where I have external services NAT’d to in pfSense (hosted websites, game servers, Nextcloud, etc). The exception is Storj which I’ve had to leave on LAN since I couldn’t give it its own IP in the TrueNAS app. I’d like to move my Storj app from eno1 to br0. I was able to create a new IP alias on br0 and then assign it in the Storj app. Once restarted, I can access the Storj web UI on the new IP address on LAN3.

However, the Storj app logs show that it can’t access the Storj satellite sites going out to the internet. There appears to be no place to specify a different default gateway and DNS server for the Storj app.

Question: LAN3 is isolated from LAN in my pfSense firewall rules, so a device on LAN3 (192.168.44.0/24) can’t hit the default gateway or DNS on LAN (192.168.42.1). LAN3 is intended to use 192.168.44.1 as its gateway and DNS server. Is this preventing the Storj app from accessing the satellite servers on the internet, or should the app somehow be able to use the default gateway specified in TrueNAS?

Here are my LAN3 firewall rules in pfSense:

As I mentioned in the video, you can only have one default gateway in TrueNAS.

Does this mean it is not possible to assign a ‘policy-based route’ in unifi for a cerain app (qBittorrent for example) to go trough a certain interface/VPN tunnel?

Yes, which is why I made sure to mention that.

Is it now possible with Unifi network 9.4 to route certain data trough the VPN?
for example like this:

if this is the case it would still solve my ‘policy-based route’ per ip (since app’s did not really get an IP on th router)

hello

for some reason i can not add a VLAN. testing the changes reverts the changes. even disabling DHCP can not be committed, the tests also fail. my pfSense is the gateway.
i just upgraded from scale 22.x via 23.x and 24.x to 25.04
i have no idea why i can not change the configuration of my network interfaces…. any help is much appreciated :slight_smile: