How to specify the only_from option in /etc/xinetd.d/* files

Written by James McDonald

October 12, 2011

Add your subnet addresses to the current (127.0.0.1) option and delimit using spaces.

# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
service swat
{
        disable = no
        port            = 901
        socket_type     = stream
        wait            = no
        only_from       = 127.0.0.1 10.11.12.0/24
        user            = root
        server          = /usr/sbin/swat
        log_on_failure  += USERID
}

Reload xinetd when you have done the edit

service xinetd reload

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Network speed test host to host

On Ubuntu / Debian apt-get install iperf3 On Windows download it from https://iperf.fr/iperf-download.php#windows Make...

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...