Skip to main content

Install Webmin and CSF on Linux Ubuntu

Paolo Caparrelli Linux 22 June 2022
Enable /var/log/messages in Ubuntu

By default log messages are not written to the file /var/log/messages in Ubuntu.
In order to enable this, we can do the following:
 
Edit /etc/rsyslog.d/50-default.conf and uncomment the following lines

*.=info;*.=notice;*.=warn;
auth,authpriv.none;
cron,daemon.none;
mail,news.none -/var/log/messages

Once done, save the file and restart rsyslog service.

#service rsyslog restart
Now you would be able to view the system logs including mail, cron etc in /var/log/messages file.

#apt-get install libsys-syslog-perl
#apt-get install libgd-graph-perl
#apt-get install libwww-perl
#apt-get install build-essential gcc libc6-dev libwrap0 libwrap0-dev
#cpan Authen::Libwrap

#apt-get install sendmail
#vi /etc/hosts
 
127.0.0.1       localhost
185.54.81.23    lg.goline.ch    lg
 
#vi /root/.forward (inserisci noc@goline.ch)
 
#vi /etc/mail/sendmail.mc
 
MASQUERADE_AS(goline.ch)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(goline.ch)dnl​
 
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/init.d/sendmail restart

Per ripulire la directory dove restano gli email non consegnati:

#crontab -u root -e
0 0 * * * rm -rf /var/spool/mqueue-client/*
#vi /etc/apt/sources.list
#deb http://download.webmin.com/download/repository sarge contrib
#deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
#wget http://www.webmin.com/jcameron-key.asc
#apt-key add jcameron-key.asc
#apt-get update
#apt-get install webmin

#cd /usr/src
#rm -fv csf.tgz
#wget https://download.configserver.com/csf.tgz
#tar -xzf csf.tgz
#cd csf
#sh install.sh

Next, test whether you have the required iptables modules:

#perl /usr/local/csf/bin/csftest.pl

Important Note: To enable successful SSHD login tracking you should ensure that UseDNS in /etc/ssh/sshd_config is disabled by using: UseDNS no and that sshd has then been restarted.

Install the csf webmin module in:

  Webmin > Webmin Configuration > Webmin Modules >
  From local file > /usr/local/csf/csfwebmin.tgz > Install Module
 

To enabled IPv6 support

1) /etc/webmin/miniserv.conf

add a line

IPv6 =1

2) Install Socket6 perl module

apt install libsocket6-perl

Then restart webmin service.

Now I can enter the webmin which is IPv6 only webmin.

7 / 100 SEO Score
0 0 votes
Article Rating
Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Goline It Services Logo

News

  • GOLINE SA is excited to announce a new partnership with NetApp, a global leader in cloud data services and storage solutions. This collaboration aims to help organizations modernize their IT infrastructure, streamline data management, and enhance performance across cloud and hybrid environments. Modern Data Solutions for Businesses Through this partnership, GOLINE integrates advanced data management solutions, enabling businesses to securely store, manage, and access critical information across cloud, on-premises, or hybrid setups. Clients can benefit from: Flexible and scalable storage solutions to meet growing data needs Simplified management of cloud and on-premises environments Enterprise-grade security for sensitive and mission-critical data...
  • GOLINE SA is proud to announce a new strategic partnership with Omnissa, a global leader in digital workspace platforms and Horizon Cloud Service solutions. This collaboration marks a significant step forward in helping organizations embrace secure, flexible, and high-performance work environments. Why Choose Omnissa for Your Business? The platform enables virtual desktops, applications, and unified endpoint management. Organizations can deploy scalable workspaces across cloud, hybrid, or on-premises setups. Key benefits include: Easy access to desktops and apps on any device Centralized management for Windows, macOS, iOS, Android, and ChromeOS Strong security with access controls and multi-factor authentication Automated scaling to...
  • Goline is proud to announce a strategic partnership with Cloudflare, the world leader in web performance and security solutions. This collaboration aims to provide goline.ch customers with state-of-the-art protection against cyber threats while delivering lightning-fast website performance. Through this partnership, Goline integrates Cloudflare’s advanced services, including DDoS protection, CDN caching, DNS security, and edge computing, allowing businesses to secure and optimize their websites effortlessly. Users will benefit from improved page load speed, enhanced reliability, and robust defense against malicious attacks. This partnership with Cloudflare enables goline to offer unmatched security and performance solutions to clients. By leveraging Cloudflare’s cutting-edge technology,...
0
Would love your thoughts, please comment.x
()
x