Code Monkey home page Code Monkey logo

Comments (5)

TorontoMedia avatar TorontoMedia commented on June 12, 2024

You've enabled port 19105/tcp for both zone public and policy port-forwards, thus it never reaches the forward port rules.

from firewalld.

Silvigarabis avatar Silvigarabis commented on June 12, 2024

You've enabled port 19105/tcp for both zone public and policy port-forwards, thus it never reaches the forward port rules.

not sure if this is true, but I tested with following policy, without others (zone and policies) related to port 19105/tcp, and still not work…

port-forwards (active)
  priority: -1
  target: CONTINUE
  ingress-zones: ANY
  egress-zones: ANY
  services:
  ports: 15537/tcp
  protocols:
  masquerade: yes
  forward-ports:
        port=19105:proto=tcp:toport=15537:toaddr=127.0.0.1
  source-ports:
  icmp-blocks:
  rich rules:

this zone configuration also failed

public (default, active)
  target: DROP
  ingress-priority: 0
  egress-priority: 0
  icmp-block-inversion: no
  interfaces: lo
  sources:
  services: dhcp dhcpv6-client murmur
  ports: 40280/tcp 23333/udp 15537/tcp
  protocols:
  forward: yes
  masquerade: yes
  forward-ports:
        port=19105:proto=tcp:toport=15537:toaddr=127.0.0.1
  source-ports:
  icmp-blocks:
  rich rules:
        rule source ipset="china_ipv4_address" port port="19107" protocol="tcp" accept

from firewalld.

TorontoMedia avatar TorontoMedia commented on June 12, 2024

You're attempting to route a local address, which is considered a martian packet and denied by the kernel for security concerns.

sysctl -a | grep route_localnet

Furthermore, your existing policy would apply to all traffic, across all interfaces and in all directions.

from firewalld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.