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
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
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.