Summary: I want to redirect ALL traffic, on ALL ports, coming from my internal network interface bge1 with ip block 10.10.10.0 to my external interface bge0 and external ip-address.
Reading 31.9 Network Address Translation in the handbook i see you can use -redirect_address in natd_flags of rc.conf to redirect any packets coming in on an external interface to an internal ip. Static NAT. I am however using ipnat, with an ipnat rules file.
I want to achieve this but in reverse, i would like packets comming in on one of my internal interfaces to be redirected to the external interface. This is to avoid issues with an application that registers an internal ip-address when i connect to it.
I figure that if my internal network is being redirected through an external ip, the application will register this external ip-address and work as designed.
My LAN is on interface bge1 with ip class 10.10.10.0 so i guess i'd use something like this rdr bge1 10.10.10.0/16 -> 83.209.XX.XX tcp.
But this would omit the port argument, i seem to get errors by doing so. Is there a way to accomplish what i'm trying to do with ipnat?
Reading 31.9 Network Address Translation in the handbook i see you can use -redirect_address in natd_flags of rc.conf to redirect any packets coming in on an external interface to an internal ip. Static NAT. I am however using ipnat, with an ipnat rules file.
I want to achieve this but in reverse, i would like packets comming in on one of my internal interfaces to be redirected to the external interface. This is to avoid issues with an application that registers an internal ip-address when i connect to it.
I figure that if my internal network is being redirected through an external ip, the application will register this external ip-address and work as designed.
My LAN is on interface bge1 with ip class 10.10.10.0 so i guess i'd use something like this rdr bge1 10.10.10.0/16 -> 83.209.XX.XX tcp.
But this would omit the port argument, i seem to get errors by doing so. Is there a way to accomplish what i'm trying to do with ipnat?