Display the applications on a Juniper router/firewall
To view the list of user-defined applications
on a Juniper
Networks router/firewall running the
JunOS
operating system from a
command-line
interface (CLI), you can enter cli mode by issuing the command
cli
after logging in and then issue the command
show configuration applications
.
root@Bellatrix> show configuration applications
application POP3 {
protocol tcp;
destination-port 110;
}
application POP3S {
protocol tcp;
destination-port 995;
}
application Rising_World_TCP {
protocol tcp;
destination-port 4254-4259;
}
application Rising_World_UDP {
protocol udp;
destination-port 4254-4259;
}
root@Bellatrix>
To view the list of predefined junos-
applications
from the CLI, you can enter cli mode by issuing the command
cli
after logging in and then issue the command show
configuration groups junos-defaults applications
.
[ More Info ]
[/security/firewalls/SRX]
permanent link
Determining the process listening on a particular port on a Linux system with ss
To determine what
process is listening on a particular
TCP
port on a Linux system,
you can use the ss command. On a CentOS Linux system, the command can be found in the /sbin/ss
directory. The utility is part of the iproute, or
iproute2 package.
# which ss
/sbin/ss
# rpm -qf /sbin/ss
iproute-3.10.0-21.el7.x86_64
#
To see help information on the utility, you can use the command
ss --help
.
# ss --help
Usage: ss [ OPTIONS ]
ss [ OPTIONS ] [ FILTER ]
-h, --help this message
-V, --version output version information
-n, --numeric don't resolve service names
-r, --resolve resolve host names
-a, --all display all sockets
-l, --listening display listening sockets
-o, --options show timer information
-e, --extended show detailed socket information
-m, --memory show socket memory usage
-p, --processes show process using socket
-i, --info show internal TCP information
-s, --summary show socket usage summary
-b, --bpf show bpf filter socket information
-4, --ipv4 display only IP version 4 sockets
-6, --ipv6 display only IP version 6 sockets
-0, --packet display PACKET sockets
-t, --tcp display only TCP sockets
-u, --udp display only UDP sockets
-d, --dccp display only DCCP sockets
-w, --raw display only RAW sockets
-x, --unix display only Unix domain sockets
-f, --family=FAMILY display sockets of type FAMILY
-A, --query=QUERY, --socket=QUERY
QUERY := {all|inet|tcp|udp|raw|unix|packet|netlink}[,QUERY]
-D, --diag=FILE Dump raw information about TCP sockets to FILE
-F, --filter=FILE read filter information from FILE
FILTER := [ state TCP-STATE ] [ EXPRESSION ]
#
Or you can consult the
manual page
for ss using the command man ss
.
[ More Info ]
[/os/unix/linux/network]
permanent link
Changing a user's password in an htpasswd file or deleting a user from the file
An .htpasswd
file can be used to control access to specific directories that
visitors to a web server can access when the web server is an Apache web
server. Entries in the file can be added, modified, or deleted using
the htpasswd utility, which may be in the /bin
directory
on a Linux sysem.
To update a password for a user listed in an .htpasswd file, a command
in the form htpasswd htpasswdFileLocation user
where htpasswdFileLocation is the location and name for the
.htpassword file on the system and user is a specific user listed
in that file. The htpasswd utility will prompt for a new password and
then prompt you to retype it to ensure there has not been a typo when
the new password was provided. E.g.:
# htpasswd /home/jdoe/music/.htpasswd mary
New password:
Re-type new password:
Updating password for user mary
#
If you wish to delete an entry for a user in the .htpasswd file, you can
use a command in the form htpasswd -D htpasswdFileLocation
user
. The -D
indicates the entry for the user
should be deleted. The response will indicate the password for the user
was deleted, which is true, but that indicates the entire entry for that
user was removd from the file. E.g.:
# htpasswd -D /home/jdoe/music/.htpasswd manny
Deleting password for user manny
#
Related
-
Apache AllowOverride AuthConfig
Directive
Date: May 13, 2008
[/network/web/server/apache]
permanent link
Installing the Microsoft-provided SSH server software on a Windows 11 system
Microsoft provides
Secure Shell (SSH)
server software with Windows 11 that you can use to listen for connections
from remote SSH clients, but the server service is not installed by default.
To install the Microsoft-provided SSH server software on a Windows 11 system,
take the following steps:
-
Type optional features in the Windows Search field at the
bottom of the screen and hit Enter, then click on "Open" when it is
found.
-
Click on the View features button.
-
Scroll down the list of optional features until you see
Open SSH Server and then click on the check box for it
and click on the Next button.
-
Click on the Add button to add the OpenSSH Server capability
to the system.
-
When the Optional features window shows that the OpenSSH Server
software has been added, you can close the window.
If you scroll down the list of added features before closing the
window, you should see OpenSSH Server below OpenSSH Client.
After installing the software, you will need to start the OpenSSH server
service.
[ More Info ]
[/os/windows/network/ssh/OpenSSH]
permanent link