Forward a TCP port to another IP or port using NAT with nftables

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ย. 2024

ความคิดเห็น • 16

  • @edenannonay5390
    @edenannonay5390 หลายเดือนก่อน +1

    THANK YOU !

  • @samre3006
    @samre3006 3 ปีที่แล้ว +1

    Wow. Amazing. Thanks for sharing your knowledge.

  • @ghaithal-bezem5237
    @ghaithal-bezem5237 4 หลายเดือนก่อน

    How clear and straight forward is your explanation, thanks. Can I use this settings in some way to bypass port 80 block from ISP to activate my own web server on a windows machine?

    • @jensdbe
      @jensdbe  4 หลายเดือนก่อน

      If your ISP is blocking port 80 incoming to you, then you can use this to forward another external port (for example 8080 ) to your internal port 80 but you can't use it to unblock that port.

  • @MrRockberts
    @MrRockberts 3 ปีที่แล้ว +1

    thanks a lot was very helpfully

  • @s4m1_s41d1
    @s4m1_s41d1 3 ปีที่แล้ว +1

    very helpfull!!! thank you very much!!!!

    • @jensdbe
      @jensdbe  3 ปีที่แล้ว

      Thanks for the nice feedback :)

  • @over-there
    @over-there 9 หลายเดือนก่อน +1

    thanks

  • @iPondrio
    @iPondrio 3 ปีที่แล้ว +1

    Great video!
    Would this work for a server running in the cloud? I tried other options (iptables, firewalld, ufw) but they have not worked as I expected. I'm a bit new with Linux and networking...

    • @jensdbe
      @jensdbe  3 ปีที่แล้ว +1

      Thanks for the nice feedback. It's hard to tell if this would work. It depends a bit on how the infrastructure is shared with your cloud provider/VPS. As you're most likely running on a virtualized or containerized environment, you might not have the right access or permissions to make these changes. Also it depends if your host is using iptables or nftables or another method.

  • @sergiodossantos2255
    @sergiodossantos2255 2 ปีที่แล้ว +1

    I am running this under a cloud vm. For some reason after adding the masquerade rule it starts showing: sudo: unable to resolve host {VMname): Temporary failure in name resolution. Do you know why this would happen?

    • @jensdbe
      @jensdbe  2 ปีที่แล้ว

      Maybe the change caused DNS to no longer be reachable? Is it local? Also make sure your own hostname (cat /etc/hostname) is present in your hosts file (/etc/hosts).

  • @explorewithsam1457
    @explorewithsam1457 2 ปีที่แล้ว

    Is it possible to redirect all system TCP traffic to client socks proxy endpoint?

  • @DanielNerd
    @DanielNerd 3 หลายเดือนก่อน

    question, will this allow anyone on the internet to access the port i forwarded using my public ip?

    • @jensdbe
      @jensdbe  3 หลายเดือนก่อน

      That should work, yes

    • @DanielNerd
      @DanielNerd 3 หลายเดือนก่อน +1

      @@jensdbe yup, it worked. thanks!!