I've set up pf a couple different ways for different things....but now i want to do something and i can't figure out the exact way to do it.
I know it's probably easy, but let me explain my system for now.
This is a single interface server with 4 public ip's. When i originally set it up, i set it up to have a single public ip and to use NAT for different jails.
One of the jails is running rtorrent, one is running SABnzbd and another is sftp/ftp
i originally set it up with each jail using an ip in the 10.0.0.0/24 range, using NAT.
What i'd like to do now is keep the jails the way they are, but instead of using only one public ip i'd like to have a different incomming public ip for each user. The reason i want to do this is so i can monitor the bandwidth use for each user easier. I'd also like to get ALTQ working eventually but i'm not exactly sure how to make it work the way i need.
Anyways, i'm sure i could do this with some fancy redirect rules....but i'm not sure...
would it just be as asy as something like this:
and would changing my nat rule to this work?
this is what i would THINK should work...but i don't know
I know it's probably easy, but let me explain my system for now.
This is a single interface server with 4 public ip's. When i originally set it up, i set it up to have a single public ip and to use NAT for different jails.
One of the jails is running rtorrent, one is running SABnzbd and another is sftp/ftp
i originally set it up with each jail using an ip in the 10.0.0.0/24 range, using NAT.
What i'd like to do now is keep the jails the way they are, but instead of using only one public ip i'd like to have a different incomming public ip for each user. The reason i want to do this is so i can monitor the bandwidth use for each user easier. I'd also like to get ALTQ working eventually but i'm not exactly sure how to make it work the way i need.
Anyways, i'm sure i could do this with some fancy redirect rules....but i'm not sure...
would it just be as asy as something like this:
Code:
rdr on $ext_if proto tcp $public1 any to any port $rt_port1 -> $rtorrent_jail
and would changing my nat rule to this work?
Code:
nat on $ext_if from 10.0.0.0/24 to any -> ($ext_if)
this is what i would THINK should work...but i don't know