setup rule from linux to webserver
-
How would I create a firewall rule to allow direct connection from a Linux system to a web server running SSH service?
-
@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.
-
@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: TCPSource Type: what should the selection be for Linux?
Address: Linux IP addressDestination Type: what would be for a webserver?
Address: the webserver IP?/22 -
@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.