CentOS 7 IP Masquerading & Port Forwarding

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 20

  • @bojanjonoski2759
    @bojanjonoski2759 5 років тому +1

    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.

    • @LinuxKing
      @LinuxKing  3 роки тому

      You are right , but this demo was to show only how port forwarding works. Thanks for the comment

  • @nagdevineni6823
    @nagdevineni6823 9 років тому

    very good inof bro

    • @LinuxKing
      @LinuxKing  8 років тому

      +Nag Devineni Thanks a lot.

  • @hiteshgunwant8825
    @hiteshgunwant8825 8 років тому +1

    good work

  • @adlerBadminton
    @adlerBadminton 9 років тому

    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?

    • @LinuxKing
      @LinuxKing  9 років тому +1

      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

  • @MultiJd4
    @MultiJd4 7 років тому

    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

    • @LinuxKing
      @LinuxKing  7 років тому

      Port forwarding should work, but you will need to run ssh on different ports.
      Thanks
      facebook.com/groups/LZHProject/

  • @HejbullahAfsari
    @HejbullahAfsari 9 років тому

    Hi guy at 1st tnk to ..How to ip forwarding (one machine to another machine ) in centos/redhat 7 ?

    • @LinuxKing
      @LinuxKing  8 років тому

      +Hejbullah Afsari Please watch my videos on again you will find what you are looking for ...It is in firewall or network section.
      Thanks

  • @HejbullahAfsari
    @HejbullahAfsari 8 років тому

    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

    • @LinuxKing
      @LinuxKing  8 років тому

      +Hejbullah Afsari use firewalld to redirect the ip. Check out my tutorial on that.
      Thanks,
      Sal

  • @bhupenderrohilla1994
    @bhupenderrohilla1994 7 років тому +1

    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.

    • @LinuxKing
      @LinuxKing  7 років тому

      Could you be more specific ? For your next question the answer is "This is to help newbies".
      Thanks,
      Sal

  • @pcuser80
    @pcuser80 8 років тому +1

    i don't like firewall-cmd
    I use iptables much easier for me
    iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE

    • @LinuxKing
      @LinuxKing  8 років тому

      +pcuser80 It's you choice ...Anyway Thanks for the comments.
      Sal

  • @jackdoe4009
    @jackdoe4009 7 років тому

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

    • @LinuxKing
      @LinuxKing  7 років тому

      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/