As we all know the role of port forwarding is most important in field of ethical hacking and pen testing to deal with wide area network devices. So today we are going to show you the best and genuine way used by professionals to do port forwarding. So if you excited then let's get started.
Requirements:-
- SSH
- Apache2
We are going to use SSH (Secure Shell ) portocoal network service to do port forwarding as we know it's used for remote login into machines and here we going to show you two different methods to do port forwarding using ssh.
1. Simple Port Forwarding
2. Port Forwarding With Subdomain
Simple Port Forwarding:-
In this method we are going to use serveo server with ssh.
$ sudo service apache2 start
$ ssh -R port:Your-IP-Address:port serveo.net
Port Forwarding With Subdomain:-
In this method we are going to use subdomain with localhost.
$ sudo service apache2 start
$ ssh -R port:Your-IP-Address:port hackersking@ssh.localhost.run
I hope this information is helpful for you and if you found something interesting on our site then make sure to follow us on other social media from given links.
Thanks for visiting have a nice day.