• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Port forwarding to FreeNAS jails

Scheduled Pinned Locked Moved NAT
5 Posts 3 Posters 4.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jumbosausage
    last edited by Jan 8, 2015, 11:45 PM

    I thought I'd best create a separate thread for this…

    I'm about to attempt to do this but I have a few questions beforehand. I'm hoping someone here has done the same with FreeNAS. I have 5 jails setup on my FreeNAS and I'm unsure if i need to forward to the actual IP of the FreeNAS box or to the Jail IP or if I need to set forwarding rules up between freeNAS and the jail as well? Can't find any guides anywhere online of someone explaining this.

    Another thing that confused me was that when I set DHCP leases up to the jails I noticed that there was two instances of MAC addresses for each jail. I guessed I needed to do it to the permanent ones but I'm not sure how this might affect things?

    1.PNG
    1.PNG_thumb

    1 Reply Last reply Reply Quote 0
    • D
      Derelict LAYER 8 Netgate
      last edited by Jan 9, 2015, 12:37 AM

      I just did this.  This is no different than port forwarding to any host on your network.

      I have a jail on 192.168.223.253.  It has an ssh server listening on TCP/22.

      This forwards inbound connections to WAN address:8022 to 192.168.223.253:22

      ![Port Forward.png](/public/imported_attachments/1/Port Forward.png)
      ![Port Forward.png_thumb](/public/imported_attachments/1/Port Forward.png_thumb)

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Jan 9, 2015, 1:03 AM

        Yep, if those IPs are accessible directly from pfSense, and since they're in the same subnet the should be, then forward to the jail address.

        Steve

        1 Reply Last reply Reply Quote 0
        • D
          Derelict LAYER 8 Netgate
          last edited by Jan 9, 2015, 1:20 AM

          Naturally, I enabled the automatic firewall rule creation on the NAT entry.  It's just cut off.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • J
            Jumbosausage
            last edited by Jan 9, 2015, 1:23 AM

            Why does freenas create two different MAC addresses for the created jails? (my screenshot above)  So if you're then to create a static IP address for that jail how does this effect things? I just created them with the permanent MAC, but it left me wondering.

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received