Articles of Debian

在Debian上设置可用的IPS

我有一个专用的机器,我租用5个可用的IP。 唯一的问题是,只有一个知识产权是公开的,我试图让其他人公开。 我已经尝试了几个指南,我有几个问题。 我知道我必须在/ etc / network中编辑名为“interfaces”的文件,但我不知道要添加什么,因为之前我更改了它,并且失去了与我的服务器的所有连接,必须让我的主机修复它。 我的IP范围从xxx.xxx.xx.114 – xxx.xxx.xx.118该文件当前如下: # The loopback network interface auto lo eth0 iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address xxx.xxx.xx.114 netmask 255.255.255.248 gateway xxx.xxx.xx.113 dns-nameservers 192.187.107.16 69.30.209.16 我怎样才能让其他人公开开放呢?

Postfix发送的邮件被反弹或转到垃圾邮件

我最近试图build立一个邮件服务器,以便能够发送我用Apache托pipe的网站的邮件。 起初我试图用exim工作,但是我被错误信息覆盖了,我尝试发送的邮件被拒绝了。 我认为只有Gmail加强了邮件发送exim,但他们去垃圾邮件。 我终于决定改变并开始使用Postfix,据说这对于我的需求来说更容易configuration。 我遵循基本的configuration步骤,我尝试了一个简单的邮件发送,但同样的事情发生。 Jan 4 11:43:45 sd-79356 postfix/qmgr[29420]: 374A1A4D72: from=<[email protected]>, size=361, nrcpt=1 (queue active) Jan 4 11:43:45 sd-79356 postfix/smtp[29427]: 374A1A4D72: to=<[email protected]>, relay=mx1.hotmail.com[65.54.188.94]:25, delay=0.67, delays=0.07/0/0.45/0.15, dsn=5.0.0, status=bounced (host mx1.hotmail.com$ Jan 4 11:43:45 sd-79356 postfix/smtp[29427]: 374A1A4D72: lost connection with mx1.hotmail.com[65.54.188.94] while sending RCPT TO Jan 4 11:43:45 sd-79356 postfix/cleanup[29425]: DBBB1A4D75: message-id=<[email protected]> Jan 4 11:43:45 sd-79356 […]

在单行上find模式?

我怎么能这样做: – find: paths: "/etc/ssl/" recurse: yes patterns: – "*.pem" – "*.crt" 在一条线上? 该文档提出了一些事情: – find: paths="/etc/ssl/" recurse=yes patterns="'*.pem','*.crt'" 但是这与前面的命令不匹配,

Cronjob更改电子邮件主题和发件人姓名

我有一个使用crontab的cronjob设置,看起来像这样… [email protected] 00 02 * * * /home/myaccount/myscript.sh 这工作很好,在凌晨2点,它运行脚本,并通过电子邮件将输出发送到[email protected] 唯一的问题是电子邮件主题和发件人的名字不是很有用。 有没有办法改变他们的方式,我可以设置收件人的电子邮件地址? 我可以禁止自动邮件和pipe道输出邮件自己?

是否有可能通过apt安装多个名称的debian软件包?

我有一个foo-new包,许多新用户通过它的旧名称foo-old知道,所以他们尝试执行apt install foo-old ,这是行不通的。 是否有可能通过控制字段从apt安装一个软件包,两者都是 apt install foo-new 和 apt install foo-old 会工作?

运行BIND9在Ubuntu 16.04 xenial的chroot中运行

在OpenVZ guest虚拟机中运行,不可能像讨论的那样使用AppArmor ,所以我试图configurationBIND9在chroot中运行。 以下的文档 ,我挣扎着,直到我发现在Ubuntu 15.04和16.04不尊重/etc/default/bind9 。 然后我通过$ sudo systemctl edit bind9进行了修改,并在我的日志中获得了以下内容: starting BIND 9.10.3-P4-Ubuntu <id:ebd72b3> -f -t /var/named/run-root -u bind 到现在为止还挺好。 直到下面出现在日志中: named[3398]: ENGINE_by_id failed (crypto failure) named[3398]: error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:233: named[3398]: error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:467: named[3398]: error:2606A074:engine routines:ENGINE_by_id:no such engine:eng_list.c:390:id=gost named[3398]: initializing DST: crypto failure named[3398]: exiting (due […]

OVH和Proxmoxnetworking设置

我有以下的Debiannetworkingconfiguration 主IP:1.2.3.4子网1:8.1.2.248/29子网2:15.1.2.0/29 主要主机networkingconfiguration: # network interface settings; autogenerated # Please do NOT modify this file directly, unless you know what # you're doing. # # If you want to manage part of the network configuration manually, # please utilize the 'source' or 'source-directory' directives to do # so. # PVE will preserve these directives, but […]

Postifx – Dovecot无法发送电子邮件“status = bounced(未知用户)”

我的电子邮件服务器工作正常( Debian Jessie 8.5 )。 我的设置使用Postfix 2.11.3 , Dovecot 2.2.13 ,并使用虚拟用户和邮箱(Maildir风格)。 它工作的很好,直到我想实现垃圾邮件文件夹的自动化,并发送由SpamAssassin 3.4.0 / Perl 5.20.2标记为垃圾邮件的电子邮件。 这工作正常。 我能够在我的虚拟域名之间收到电子邮件,以及来自外部的电子邮件(Gmail,Yahoo等)。 我可以在我的虚拟域名托pipe在这台服务器之间发送电子邮件。 但是,当我尝试发送电子邮件到外部世界(Gmail,雅虎等)时,我在/var/log/syslog获得以下内容: Nov 8 21:47:08 mercury postfix/smtpd[12803]: connect from localhost[127.0.0.1] Nov 8 21:47:08 mercury postfix/smtpd[12803]: 93611814E5: client=localhost[127.0.0.1] Nov 8 21:47:08 mercury postfix/cleanup[12805]: 93611814E5: message-id=<[email protected]> Nov 8 21:47:08 mercury opendkim[24011]: 93611814E5: DKIM-Signature field added (s=mail, d=example.com) Nov 8 […]

在Debian 8上,使用tomcat 7,cpu 100%

我在Debian 8上遇到了tomcat 7的默认configuration问题。 问题:由于java进程,我得到了服务器的CPU,跳到100%,并停留数小时,使服务器变慢。 如果我重新启动tomcat服务器的CPU再次去1%。 几个小时之后,问题再次出现。 Java应用程序状态:没有定制的Java应用程序安装在tomcat上,所以这可能是一个tomcat问题。 日志:看着catalina.out我发现这个错误信息corppondence到CPU音高开始 2017年1月19日上午1时03分23秒org.apache.coyote.http11.AbstractHttp11处理器进程信息:parsingHTTP请求标头时出错 如何复制:服务器重新启动后,我试图访问tomcat服务器主页使用HTTPS通过访问此url通过Web浏览器 https://domain.com:8080 瞧,CPU开始疯了,我得到了以前的日志。 这意味着什么:这意味着每个有特殊要求的人都可以DDOS我的服务器 问题:有没有办法可以解决这个问题,而不会改变我的Linux发行版或由apt使用的打包版本的tomcat? 我正在使用Google Compute Engine的新版debian 8默认图片。 tomcat 7.0.56 Java 1.7.0_111

排除让我们encryption来自nginx httpsredirect的http请求

我发现这里已经有一些问题了,但没有人帮我解决这个问题。 我今天安装了一个debian 8服务器,对我的域的每个请求都被redirect到https。 现在我正在玩耍,为一个子域创build一个新的ssl证书,因为certbot正在用http访问.well-known目录,所以失败了。 当这个请求被redirect到https时,它不起作用。 我的想法是从redirect排除这个隐藏的目录。 为了testing,我把一个简单的文本放入.well-known / acme-challenge /目录。 每次即时通讯对这个文件的请求仍然redirect。 这是我目前的nginxconfiguration: server { listen 80 default_server; #listen [::]:80 default_server; server_name test.de www.test.de; root /var/www/html; location /.well-known/acme-challenge { root /var/www/html; allow all; } location / { return 301 https://test.de$request_uri; } } server { listen 443 ssl default_server; listen [::]:443 ssl default_server; include snippets/ssl-test.de.conf; include snippets/ssl-params.conf; […]