The solution to non-virtual network interfaces is here: https://unix.stackexchange.com/a/210992
But the problem is I have multiple IPs on one network interface and I'd like to be able to assign each IP to a different application.
For example, I have eth0:0, eth0:1, etc.
When I do command(note the virtual interface):
ip link set eth0:0 netns test_ns
It takes eth0 ip and not eth0:0.. it also takes away the entire interface and I can't connect to it from a public source.
Is there a way to use virtual network interface for different processes while having the server accessible from a public source?