Port Forward over OpenVPN to Jails

SBTech

Cadet
Joined
Aug 10, 2016
Messages
9
I have a NAS at a customer location running TrueNAS 12U6, its configured with OpenVPN Client Service and connects to a PFSense Firewall at my Office. The VPN IP is 10.1.1.102 and I have a TrueNAS 12U6 server behind the PFSense VPN Router. From behind the VPN Router at my office I can ssh to 10.1.1.102 IP and connect fine.

On the Remote NAS there is a VM running Debian, its IP is 10.10.10.10 so I added a ipfw forward rule so I can SSH to a port on the VPN IP and connect the the VM but it does not work. See the ipfw command bellow, I'm pretty sure I'm close to this working but missing something simple.

Code:
ipfw add 100 fwd 10.10.10.10,22 tcp from any to any 2225 in


ssh 10.10.10.10 -p 2225 will time out with the rule, if the rule is not in place its instantly rejected.
 

SBTech

Cadet
Joined
Aug 10, 2016
Messages
9
Adding picture for to help visualize issue.
 

Attachments

  • TrueNAS NAT issue.jpg
    TrueNAS NAT issue.jpg
    43.2 KB · Views: 225
Top