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

    Reaching a SSH server inside the LAN… Urgent!

    NAT
    3
    3
    2.0k
    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.
    • P
      p2d
      last edited by

      First of all this is my setup on my soekris 4801 machine:

      
      sis0 = LAN1 (Static 192.168.0.1)
      sis1 = WAN (PPPoE, dynamic IP)
      sis2 = LAN2 (Static 192.168.1.199)
      
      

      Inside LAN2 I have a server on IP 192.168.1.1 with a SSH-server on port 22 which I would like to reach from outside the WAN.

      But I would still like to keep the SSH server intact on pfsense.. So maybe it's possible to have pfsense convert port for example port 242 -> 22 ? So if I connect to the pfsense WAN IP with port 22 I reach the pfsense SSH-server and if I connect with port 242 I reach the ssh-server at 192.168.1.1

      For example if I would like to connect to the ssh server on LAN2 from the internet (WAN) I use the command: 'ssh -p 242 my-pfsense-domain.org'. Then pfsense connects me to the ssh server on port 22 at 192.168.1.1

      Edit: This is kinda urgent, so I will really appreciate a quick answer/solution

      1 Reply Last reply Reply Quote 0
      • M
        mrquintopolous
        last edited by

        Not a 100% sure, wouldn't you want to setup NAT and setup port forwarding? That way, you can port forward WAN:242 –> 192.168.1.1:22.

        1 Reply Last reply Reply Quote 0
        • Cry HavokC
          Cry Havok
          last edited by

          Sounds like a pretty standard port forward setup - look at the NAT menu.

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