Hello, i am not sure what i'm doing wrong....but here goes...
I have been trying to get nat to work for some jails...and I've been able to get it to work but not with the setup that i wanted.
right now, it's working with all ip'set as aliases on the single interface, but what i was originally trying to do was have nat working with the jails on ip's set on a cloned loopback device.
So if i have a single interface, let's call it sis0 and then i have a cloned loopback called lo1 with ip's in the 10.0.0.0/24 range can i do nat? And if so what is the proper rule?
why is it that this works with all ip's set on the single interface with this rule
but if i put the ips' on a loopback interface this rule doesn't work:
with the xxx.xxx.xxx.xxx being my public ip.
I have been trying to get nat to work for some jails...and I've been able to get it to work but not with the setup that i wanted.
right now, it's working with all ip'set as aliases on the single interface, but what i was originally trying to do was have nat working with the jails on ip's set on a cloned loopback device.
So if i have a single interface, let's call it sis0 and then i have a cloned loopback called lo1 with ip's in the 10.0.0.0/24 range can i do nat? And if so what is the proper rule?
why is it that this works with all ip's set on the single interface with this rule
Code:
nat on sis0 from 10.0.0.0/24 to any -> xxx.xxx.xxx.xxx
but if i put the ips' on a loopback interface this rule doesn't work:
Code:
nat on lo1 from 10.0.0.0/24 to any -> xxx.xxx.xxx.xxx
with the xxx.xxx.xxx.xxx being my public ip.