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

    Pfsense with remote SMB shares

    Scheduled Pinned Locked Moved NAT
    4 Posts 3 Posters 10.7k 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.
    • E
      emil98
      last edited by

      I try to setup Openfiler with pfsense. I like to have CIFS/SMB Shares access from another Server with IP 177.40.59.45.
      Openfiller is using the IP: 177.40.119.254 (local: 192.168.12.100) and I'm able to open the shares in my local network but not the remote Server.

      Port forwarding Setup:
      WAN TCP * * 177.40.119.254 445 (MS DS) 192.168.12.100 445 (MS DS)

      Firewall rule:
      Proto 445 |Source 177.40.59.45 | Port * | Destination 192.168.12.100 | Port 445 | Gateway * | Queue none

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        proto 445?  That does not seem right.

        You sure these ports are not blocked by your ISP?   And your sure 445 is being used by the server, and not the other common ports for cifs/smb? 137,138,139

        A better option might be a vpn from this location?  And then do your cifs/smb over the vpn - if that is possible for you.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • C
          cmb
          last edited by

          May also need 135-139. But it's very unlikely you'll make SMB shares work over the Internet. Back in the days of MS Blaster and other similar worms, most ISPs blocked those ports and still do. It's a bad idea to use over the Internet in general anyway, use a VPN.

          1 Reply Last reply Reply Quote 0
          • E
            emil98
            last edited by

            Thank you. i've got it working and really love pfSense now.

            @cmb
            I know its not the perfect solution, but my Boss like to have it that way. The shares are only reachable from the IP of another Server and (of course) not the whole internet.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.