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

    setup rule from linux to webserver

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 539 Views 2 Watching
    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.
    • C Offline
      crawford
      last edited by

      How would I create a firewall rule to allow direct connection from a Linux system to a web server running SSH service?

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

        @crawford what network is the client going to be on, if on lan the default rules would already allow access to any other network/vlan you created on pfsense.

        If client is on lan, and you had messed with the default rules, you would need to allow for ssh to the network or IP your webserver is on. If the webserver is on lan, there are no rules needed because pfsense has nothing to do with traffic between devices on the same network.

        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 25.07.1 | Lab VMs 2.8, 25.07.1

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          crawford @johnpoz
          last edited by

          @johnpoz said in setup rule from linux to webserver:

          need to allow for ssh to the network or IP your webserver is on.

          It's on the LAN. Is the Rules form below look good?

          Action: Pass
          Interface: LAN
          TCP/IP: IP4
          Protocol: TCP

          Source Type: what should the selection be for Linux?
          Address: Linux IP address

          Destination Type: what would be for a webserver?
          Address: the webserver IP?/22

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

            @crawford source would be the IP of the client, port would be any. You really have no idea what source port a client would use, other than something random above 1023

            This webserver is on a different than lan? Then yeah destination would be its IP and port 22, which is the default ssh port.

            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 25.07.1 | Lab VMs 2.8, 25.07.1

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