Posts Under 'Fedora'

How to block ip address on Fedora/Linux using iptables?

Today, I was looking at fedora server logs and discovered that lots of failed automated ssh hacking attempts on various ports. So, to block these IP addresses, googled and found lots of resources on this topic. I thought to keep a log about this. I already did some configuration with hosts.allow and hosts.deny which you […]

Read more »


Postfix Header Checks

Postfix header checks to reject spam mails : /^Subject:.*=\?(big5|euc-kr|gb2312|ks_c_5601-1987)\?/ REJECT No foreign character sets, please. /^(Content-Type:.*|\s+)charset\s*=\s*”?(big5|euc-kr|gb2312|koi8|Windows-1251|ks_c_5601-1987)”?/ REJECT No foreign character sets, please. /^(Content-Type:.*|\s+)charset\s*=\s*”?(Windows-1251)\?/ REJECT Probably a windows virus. /^From:.*\@.*\.r[uo]/ REJECT No Russian or Romanian mail, please. /^From:.*\@.*\.bg/ REJECT No foreign character sets for bg, please. /^From:.*\@.*\.nz/ REJECT No foreign character sets for nz, please. /^From:.*\@.*\.lb/ […]

Read more »


Make sshd listen to a specific address

In file /etc/ssh/sshd_config, use ListenAddress 192.168.0.1 to make sshd listen to only that address.

Read more »


HOW TO Subversion+Apache on Fedora

HOW TO Subversion+Apache on Fedora To learn or use Subversion, please read the book. To install subversion run below commands: Then you need to setup at least one repository to test it. Here create the folders.. repos – will contain all the projects users – will contain all the user configs permissions – will contain […]

Read more »


sshd: refused connect from ::ffff

Hello friends, I faced this problem before 2 days. I did some research and found on google that, to solve this problem you have to see hosts.deny and hosts.allow files under /etc/ directory. So you have to add your ISP or Local ip address in hosts.allow files as sshd sshd1 sshd2 : ipaddress : ALLOW […]

Read more »