PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, May 14, 2022

[FIXED] How can I open port with wildcard?

 May 14, 2022     kubernetes, ubuntu     No comments   

Issue

I am going to install kubernetes on my VPS servers. The VPS servers based on Ubuntu 18.04 server and I am using Uncomplicated Firewall.

I have to open several ports on Ubuntu server, but one of them is marked with a wildcard:

TCP    Inbound    6443*    Kubernetes API server    All

How can I open a port with a wildcard? Would the following be correct?

sudo ufw allow 6443*

Solution

The wildcard * in this case means that it could be any port that fits your needs (except, of course, ports already in use or reserved).

In documentation:

Any port numbers marked with * are overridable, so you will need to ensure any custom ports you provide are also open.

Open the port with: sudo ufw allow 6443 and you are good to go.


Also related to this question, UWF does not accept the wildcard for rules.

  • You can specify one port: ufw allow 6443
  • You can specify the service: uwf allow ftp
  • You can specify a range: ufw allow 1234:5678/tcp


Answered By - Will R.O.F.
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing