Navigation

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

    SSH access only from one IP address

    Firewalling
    2
    2
    2020
    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
      • johnpoz
        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
        2440 2.4.5p1 | 2x 3100 2.4.4p3 | 2x 3100 22.01 | 4860 22.05

        1 Reply Last reply Reply Quote 0
        • First post
          Last post