ReePrime
Assigning a Dedicated IP to Each User on Linux

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

Assigning a Dedicated IP to Each User on Linux

L
Linux Champion

2 Views • Dec 16, 2015

Description

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