Deprecated: Elementor\Controls_Stack::get_active_controls(): Implicitly marking parameter $controls as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 352
Deprecated: Elementor\Controls_Stack::get_active_controls(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 352
Deprecated: Elementor\Controls_Stack::get_style_controls(): Implicitly marking parameter $controls as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 799
Deprecated: Elementor\Controls_Stack::get_style_controls(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 799
Deprecated: Elementor\Elements_Manager::create_element_instance(): Implicitly marking parameter $element_type as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/managers/elements.php on line 70
Deprecated: Elementor\Element_Base::__construct(): Implicitly marking parameter $args as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/element-base.php on line 1563
Deprecated: Elementor\Repeater::__construct(): Implicitly marking parameter $args as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/elements/repeater.php on line 49
Deprecated: Elementor\Core\Utils\Collection::filter(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/core/utils/collection.php on line 43
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
How to Open specific port to specific IP in CSF
You are here: Home/Control Panels/ How to Open specific port to specific IP in CSF
Warning: Cannot use bool as array in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 104
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 116
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block.php on line 246
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Opening ports and closing ports in CSF is easy. But it can be a bit tricky to open a port to a specific IP in CSF.
What if we need to open the MySQL port only to your home IP ?
[the_ad id=”11935″]
Or another port to communicate between your payment gateway ? Here is the tip.
If you need to open the port XXXX to the ip aa.bb.cc.dd , Add the following lines to /etc/csf/csf.allow
csf -r
So to open the mysql port to IP 11.22.33.44 , add the following lines.
tcp:in:d=3306:d=11.22.33.44
tcp:out:d:3306:d=11.22.33.44
Reader Interactions
Comments
Abhik Bosesays
Is it possible to allow a specific port with an IPv6 in this way? I’ve tried replacing ipv4 address with ipv6, it’s not working. I need that. Please help me.
Is it possible to allow a specific port with an IPv6 in this way? I’ve tried replacing ipv4 address with ipv6, it’s not working. I need that. Please help me.