Install Webmin and CSF on Linux Ubuntu | GOLINE
Goline Logo

FAQ

News

  • In the supply and logistics sectors, email communication is pivotal. However, organizations face threats like email fraud and phishing. GOLINE SA's clients struggled with configuring email authentication protocols manually. To address this challenge, GOLINE SA became an MSP Partner of PowerDMARC, collaborating to streamline implementation and management. PowerDMARC's cloud-based platform automated DMARC, SPF, and DKIM protocols for GOLINE SA's clients. This streamlined the transition to DMARC enforcement policies, bolstering domain protection without compromising email deliverability. The intuitive platform facilitated easy navigation and provided detailed reporting for proactive issue resolution. GOLINE SA's clients experienced tangible benefits: Enhanced Email Security: Automated protocols...
  • Route RPKI validation April 1st, 2022
    RPKI is a security framework by which network owners can validate and secure the critical route updates or Border Gateway Protocol (BGP) announcements between public Internet networks. BGP is essentially the central nervous system of the Internet and one of its fundamental building blocks. The main function of BGP is to facilitate efficient routing between Autonomous Systems (AS), by building and maintaining the Internet routing table. The Internet routing table is effectively the navigation system of the Internet and without it, traffic would be unable to flow between its constituent networks. Unfortunately, routing equipment alone cannot distinguish between legitimate and malicious routing announcements,...
  • RIPE – Atlas Anchor February 17th, 2022
    We have become an even more integral part of the RIPE Atlas project by hosting an anchor, a device that allows for latency analysis of traffic between autonomous systems.https://atlas.ripe.net/probes/7073/RIPE Atlas anchors play an integral role in the RIPE Atlas network by acting both as enhanced RIPE Atlas probes with more measurement capacity, as well as regional measurement targets within the greater RIPE Atlas network. Anchors are able to perform many more measurements than a regular RIPE Atlas probe, and the large amount of data they collect is made available to everyone. In addition, anchors act as powerful targets that can...

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
#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.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x