• 10
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

UFW insert [number] throws error

Using Ubuntu server 14.04LTS I want to configure my UFW to limit ssh connections with the following command:

sudo ufw insert 1 limit ssh/tcp

which throws an error: ERROR: Invalid position '1'

Due to the fact that this command accepts no number at all there should be no other rule placed under number 1...

man ufw

outputs the following insert NUM RULE whereas RULE should be limit ssh/tcp. That said my syntax should be correct.

Anyone knows whats going on here?

This is because position '1' can only be valid if there is already existing at least a rule, so to insert your rule in position 1 you just need to insert a rule without position at all it will be default to position '1' from then on you can have position '2' or position '3'

  • 1
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags