The pfSense Store

Author Topic: SSH port forwarding  (Read 1712 times)

0 Members and 1 Guest are viewing this topic.

Offline parvell

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
SSH port forwarding
« on: March 03, 2010, 07:22:11 am »
Greetings
I think this is a more port-forwarding issue than a SSH one.
I got a Mac Server that accept SSH connection behind a pfsense firewall: all I need is to port forwarding firewall SSH access from port 6116 (external) to 22 (internal for server).
I created a NAT and firewall rules to forward connection from port 6116 to 22 to my internal IP server, but do not work. Do I have to add some addon or enable SSH access?
I don't need a SSH access to firewall, only a port forwarding for SSH, from port 6116 to 21 to my server.
Eventually, OpenVPN can be a better solution to this issue, to have a secure encrypted connection? (I use this with a ssh tunnel for a VNC connection from my client to sever).
Thx

Offline danswartz

  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +0/-0
    • View Profile
Re: SSH port forwarding
« Reply #1 on: March 03, 2010, 08:39:09 am »
post the NAT rule and access rule pls.

Offline parvell

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: SSH port forwarding
« Reply #2 on: March 03, 2010, 09:04:09 am »
here's the rules (NAT and port forwarding)

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14990
  • Karma: +4/-0
    • View Profile
Re: SSH port forwarding
« Reply #3 on: March 03, 2010, 09:23:38 am »
Remove the source port from the firewall rule - that is not needed and is likely the source of your problem, since it will fail to match almost any packet that comes in.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline danswartz

  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +0/-0
    • View Profile
Re: SSH port forwarding
« Reply #4 on: March 03, 2010, 09:42:45 am »
Damn, beat me to it :)

Offline parvell

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: SSH port forwarding
« Reply #5 on: March 03, 2010, 01:22:19 pm »
It worked perfectly!!!!!!
Thx a lot