You are not logged in.

#1 2010-09-12 20:50:14

lio
Member
From: Montréal, Canada
Registered: 2009-09-13
Posts: 52

Per application IP ?

Hi,

I would like to be able to have different application running on the same computer to use different IPs. Is that something that can be done even if the application does not offer the option to specify an IP ? My motivation for doing this is to solve a QoS nightmare that I'm having where ports have to stay random and layer 7 can't be used either to apply QoS rules.

Any suggestion on how it can be done will be very appreciated.
Thanks

Offline

#2 2010-09-12 23:50:46

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Per application IP ?

You might be able to use the UID option in iptables if the applications run as different users:

iptables -t nat -A OUTPUT -m owner --uid-owner user1 -j SNAT --to 192.168.1.1
iptables -t nat -A OUTPUT -m owner --uid-owner user2 -j SNAT --to 192.168.1.2

Replace 'user1' and 'user2' with the appropriate users.

Offline

Board footer

Powered by FluxBB