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

    SSH access only from one IP address

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 2.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.
    • R
      rovshango
      last edited by

      Hi,

      I got WAN, LAN and one OPT1 as other connection, consider as DMZ
      I want allow SSH access to pfSense only from one IP address which will connect from DMZ port (OPT1)

      Thanks

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

        then create a rule to block ssh to the pfsense address on lan, by default it would be blocked on wan.  Create a rule on dmz to allow from your source IP to 22 pfsense dmz address.  Block others to 22 after that.

        You will prob have to disable the anti lockout rule - since this allows 22 to your lan interface
        "When this is unchecked, access to the webConfigurator on the LAN interface is always permitted, regardless of the user-defined firewall rule set. Check this box to disable this automatically added rule, so access to the webConfigurator is controlled by the user-defined firewall rules (ensure you have a firewall rule in place that allows you in, or you will lock yourself out!) Hint: the "Set interface(s) IP address" option in the console menu resets this setting as well. "

        Is odd that dmz would be where you to access pfsense from, normally that is where you put stuff you want isolated.  But if you don't want access to pfsense 22 from lan your going to have to disable that antilock out rule.

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.