0

It is possible to forward all ports (TCP/UDP) in a CentOS server except by the ssh/sftp port (TCP port 22).

If it is possible how can I do this?

I thought in something using "FirewallD".

Thank you! =D

Eduardo Lucio
  • 269
  • 4
  • 14

1 Answers1

0

You will have to build a NAT solution, you may use IPtables for this purpose.

Here is a good article for you: RedHat iptables

You may also do something fancy and use LVS. This will essentially enable you to forward packets to multiple destination and work as a load-balancer.

Dmitriy Kupch
  • 471
  • 2
  • 6