Coder Social home page Coder Social logo

Comments (13)

wfnuser avatar wfnuser commented on September 28, 2024 1

After gaining some background knowledge, I think the standard security group simply don't allow "all" protocol work with port range. Since "ICMP" isn't related to any port.

from kube-ovn.

bobz965 avatar bobz965 commented on September 28, 2024

could you please show the telnet ip:8000?

from kube-ovn.

wfnuser avatar wfnuser commented on September 28, 2024

image

apiVersion: kubeovn.io/v1
kind: SecurityGroup
metadata:
creationTimestamp: "2024-04-16T03:10:32Z"
generation: 29
name: user-2355-i-njwpuvj7k528-firewall-sg
resourceVersion: "558092262"
uid: 53d72488-993e-4c73-ad44-6a13421f2559
spec:
ingressRules:

  • ipVersion: ipv4
    policy: allow
    portRangeMax: 8000
    portRangeMin: 8000
    priority: 101
    protocol: all
    remoteAddress: 0.0.0.0/0
    remoteType: address
  • ipVersion: ipv4
    policy: deny
    priority: 161
    protocol: ALL
    remoteAddress: 0.0.0.0/0
    remoteType: address
  • ipVersion: ipv4
    policy: allow
    priority: 160
    protocol: ALL
    remoteAddress: 172.16.0.0/11
    remoteType: address
  • ipVersion: ipv4
    policy: allow
    priority: 160
    protocol: ALL
    remoteAddress: 10.0.0.0/8
    remoteType: address
    status:
    allowSameGroupTraffic: false
    egressLastSyncSuccess: true
    egressMd5: d751713988987e9331980363e24189ce
    ingressLastSyncSuccess: true
    ingressMd5: e4fc8be826456f64c73f9a848abb560f
    portGroup: ovn.sg.user.2355.i.njwpuvj7k528.firewall.sg

from kube-ovn.

wfnuser avatar wfnuser commented on September 28, 2024

The same time I can ssh connect to 22 port, which should be blocked by the ingress rules.
However, if you change "all" to "tcp", the ssh will be disconnected immediately.

from kube-ovn.

bobz965 avatar bobz965 commented on September 28, 2024

could you please show the telnet ip:8000?

your image means the 8000 port is ok , which is works, do i miss something ?

from kube-ovn.

wfnuser avatar wfnuser commented on September 28, 2024

could you please show the telnet ip:8000?

your image means the 8000 port is ok , which is works, do i miss something ?

The real problem is if you set a server listen to port 7000, it works either. I just do telnet ip 8000 as you demand.

from kube-ovn.

bobz965 avatar bobz965 commented on September 28, 2024

could you please show the telnet ip:8000?

your image means the 8000 port is ok , which is works, do i miss something ?

The real problem is if you set a server listen to port 7000, it works either. I just do telnet ip 8000 as you demand.

ok, i get it.

from kube-ovn.

bobz965 avatar bobz965 commented on September 28, 2024

if you do not set the 8000 allow ingressRules, do ip:8000 could be accessed?

from kube-ovn.

wfnuser avatar wfnuser commented on September 28, 2024

if you do not set the 8000 allow ingressRules, do ip:8000 could be accessed?

No. Because I have a rule with lower priority to deny all ingress traffic.

ipVersion: ipv4
policy: deny
priority: 161
protocol: ALL
remoteAddress: 0.0.0.0/0
remoteType: address

I wish to only allow port 8000 ingress traffic by set another rule, however, it seems to allow all ports. But if you set "udp" or "tcp", it will work as expected.

from kube-ovn.

bobz965 avatar bobz965 commented on September 28, 2024

it looks like it is a OVN bug

from kube-ovn.

wfnuser avatar wfnuser commented on September 28, 2024

Interesting. So shall we open an issue to OVN? Is there any way to fix it temprorally?
BTW, if there are some interested issue you think I can help, you can assign it to me. I would like to help. Recently, I'm hoping to get more familiar with kube-ovn.

from kube-ovn.

bobz965 avatar bobz965 commented on September 28, 2024

Is there any way to fix it temprorally?
use TCP or udp, not all, as you said.

from kube-ovn.

bobz965 avatar bobz965 commented on September 28, 2024

you can try to attach this issue in ovn GitHub issues for some help.

from kube-ovn.

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.