hello, thanks for your sharing. you show the forward port 22 to other server. I have a quesions like this. I have two interfaces. one is ens0s3 192.168.0.4/24 for external interface. other one is ens0s8 10.0.3.15/24 for internal interface. In internal net has a other server IP:10.0.3.16/24 In external net. How to acces 192.168.0.4 port 10080 forward to 10.0.3.16 port 80? I try to use firewalld to do this,but it's not working. Could you tell me. What can I do in this case? or I should use the other tool to do this?
yukianes First of all, you are welcome. Now to answer your question, you need to see the video from 16:00 mins. It tells you exactly what you are looking for, just change the ports. But due to the fact that there are default ports of default services you need to do little experiment with both ports and ip forwarding. Thanks, Sal
great tutorials, i liked your last demonstration of forwarding port 22 to another ip, i have a task now which very similar to what you did in the video. i have two servers server1 and server2, both in the same local network, i can ssh into server1 from external world with a public ip address, to ssh into server2 i have to be in server1, my goal is to ssh into both server1 and server2 directly from external world, can i achieve this with what you did in the video? i mean forward another port say 26, from server1 to server2, then from external world i ssh into server2 with the public ip and port 26? your response will be greatly appreciated, thanks in advance
example : I want to access web server like as 10.11.1.127 when browser enter ip 10.11.1.1 then go 10.11.1.127 web server how to it? pls. Bro... Tnk 4 feedback
Thanks for the video..... but this is done via firewall-cmd, pls share the video from ssh only.......and one more thing pls don't type fully use tab key to save the time of yours (prevent from spelling mistake) and others also.
"There is no netstat command in centos 7" - dude, for real? Netstat comes with centos right off the official website. Yeah, I agree that ss is a better tool to use in some cases, but netstat does exist.
Yes no netstat command in Centos 7. You will need net-tools package for netstat and ifconfig commands. Join our FB Group @ facebook.com/groups/LZHProject/
Hi, you maybe want to add a fact that port forward to 2222 will not work straight ahead without modifying selinux policy to allow port 2222.
You are right , but this demo was to show only how port forwarding works. Thanks for the comment
very good inof bro
+Nag Devineni Thanks a lot.
good work
Thanks !
hello, thanks for your sharing.
you show the forward port 22 to other server.
I have a quesions like this.
I have two interfaces.
one is ens0s3 192.168.0.4/24 for external interface.
other one is ens0s8 10.0.3.15/24 for internal interface.
In internal net has a other server IP:10.0.3.16/24
In external net. How to acces 192.168.0.4 port 10080 forward to 10.0.3.16 port 80?
I try to use firewalld to do this,but it's not working.
Could you tell me. What can I do in this case?
or I should use the other tool to do this?
yukianes First of all, you are welcome. Now to answer your question, you need to see the video from 16:00 mins. It tells you exactly what you are looking for, just change the ports. But due to the fact that there are default ports of default services you need to do little experiment with both ports and ip forwarding.
Thanks,
Sal
great tutorials, i liked your last demonstration of forwarding port 22 to another ip, i have a task now which very similar to what you did in the video. i have two servers server1 and server2, both in the same local network, i can ssh into server1 from external world with a public ip address, to ssh into server2 i have to be in server1, my goal is to ssh into both server1 and server2 directly from external world, can i achieve this with what you did in the video? i mean forward another port say 26, from server1 to server2, then from external world i ssh into server2 with the public ip and port 26? your response will be greatly appreciated, thanks in advance
Port forwarding should work, but you will need to run ssh on different ports.
Thanks
facebook.com/groups/LZHProject/
Hi guy at 1st tnk to ..How to ip forwarding (one machine to another machine ) in centos/redhat 7 ?
+Hejbullah Afsari Please watch my videos on again you will find what you are looking for ...It is in firewall or network section.
Thanks
example : I want to access web server like as 10.11.1.127 when browser enter ip 10.11.1.1 then go 10.11.1.127 web server how to it? pls. Bro... Tnk 4 feedback
+Hejbullah Afsari use firewalld to redirect the ip. Check out my tutorial on that.
Thanks,
Sal
Thanks for the video..... but this is done via firewall-cmd, pls share the video from ssh only.......and one more thing pls don't type fully use tab key to save the time of yours (prevent from spelling mistake) and others also.
Could you be more specific ? For your next question the answer is "This is to help newbies".
Thanks,
Sal
i don't like firewall-cmd
I use iptables much easier for me
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
+pcuser80 It's you choice ...Anyway Thanks for the comments.
Sal
"There is no netstat command in centos 7" - dude, for real? Netstat comes with centos right off the official website. Yeah, I agree that ss is a better tool to use in some cases, but netstat does exist.
Yes no netstat command in Centos 7. You will need net-tools package for netstat and ifconfig commands.
Join our FB Group @ facebook.com/groups/LZHProject/