Assigning a Dedicated IP to Each User on Linux

  • 8 years ago
Today we show you how to assign a dedicated IP address to each user on Linux.

Skill level: easy
Requirements: a server with 2 or more IP addresses and iptables firewall.

The following iptables rule was used in the video:
iptables -t nat -A POSTROUTING -m owner --uid-owner user1 -j SNAT --to-source 192.168.1.1