Hello,
First of all, I'm not sure that 2 Nat on same server is possible. I have 2 different internet service. DSL and Cable. I've two gateway server but I wanted to connect both 2 internet onto one server for power consumption.
Here's my pf.conf (ip addresses are sample, they are different in production)
Now, nat 1 is working without any problem. The machines using the ($nat_1) ip addresses are connecting to internet over interface_1
The problem is, nat 2 is not working. The machines in the network see each other but can't connect to internet via interface_2
Waiting for your helpful posts. I hope that 2 nat on same machine is possible.
Thanks.
First of all, I'm not sure that 2 Nat on same server is possible. I have 2 different internet service. DSL and Cable. I've two gateway server but I wanted to connect both 2 internet onto one server for power consumption.
Here's my pf.conf (ip addresses are sample, they are different in production)
Code:
interface_1="rl0" # STATIC IP
interface_2="rl1" # DHCP
nat_1="{ 192.168.0.2, 192.168.0.3 }"
nat_2="{ 10.0.0.2, 10.0.0.3 }"
nat on $interface_1 from $nat_1 to any -> 192.168.0.1
nat on $interface_2 from $nat_2 to any -> 12.34.56.78 # ip leased from dhcp
pass all
Now, nat 1 is working without any problem. The machines using the ($nat_1) ip addresses are connecting to internet over interface_1
The problem is, nat 2 is not working. The machines in the network see each other but can't connect to internet via interface_2
Waiting for your helpful posts. I hope that 2 nat on same machine is possible.
Thanks.