Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tcp-wrappers]

The tag has no usage guidance.

2
votes
2answers
406 views

How to ban all connections to .se and .ru in the hosts.deny file

I am trying to figure out, whether or not it's possible to make sure, that if a user uses a browser and types in a domain name that ends on either "se" or "ru", they will be denied access to that site....
0
votes
1answer
43 views

Is there a tool to check /etc/hosts.{allow,deny} syntax?

I am looking for a command line tool that checks tcp_wrapper configuration file syntax to make sure daemon names are set right and things like that, check for spelling or syntax errors etc.
1
vote
1answer
57 views

TCL: TCP Wrapper (tcp_wrappers.tcz) installed but /usr/local/bin/tcpd file is not there

I'm learning host based firewall by installing tcp_wrappers.tcz on Tiny Core Linux (TCL). Initially, the following files were not there which was expected. /etc/hosts.allow /etc/hosts.deny BEFORE ...
0
votes
2answers
101 views

Is there a good reason to use both iptables and tcp_wrappers?

I've taken over administering some machines with no context about their configuration. Some are using iptables. Some are using tcp_wrappers (ie. /etc/hosts.allow). Some are using both. They're all ...
1
vote
2answers
16k views

Telnet connection had been closed by a foreign host

The client PC IP: 10.49.46.5/24 and the server PC IP: 10.49.46.2/24 are two computers linked to the same network. When I try to create an interactive communication between these two computers using ...
0
votes
1answer
204 views

Sendmail 8.14.4 on CentOS 6.8 tcpwrappers problem

I am running a sendmail server on CentOS 6.8. For MTA connections on port25 I want to use tcpwrappers to reject host with no PTR DNS record. so my hosts.allow looks like : sendmail: ALL EXCEPT ...
2
votes
2answers
1k views

Which one will block first? tcp-wrapper or Iptables?

If a service (or port) is blocked in both TCPwrapper and Iptables, which will block the request first and why?
-1
votes
1answer
506 views

Solaris 10: how to run correct tcp wrappers?

I want to deny ftp access on solaris10 For experiment i use only one host Tcp wrapper is enabled inetadm -l ftp | grep tcp_wrappers default tcp_wrappers=TRUE /etc/hosts.deny ftpd: 192.168.0.2 in....
3
votes
2answers
4k views

Editing my /etc/hosts.deny

I'm being trolled by China, and don't know why I can't block their request to my server. //host.deny ALL: item.taobao.com ALL: 117.25.128.* But when I watch the error log on my webserver tail -f /...
2
votes
1answer
237 views

What is blocking: Firewall and tcpwrapper?

Is it possible to find whether the firewall (iptables) or tcpwrapper is blocking a connection without accessing the remote server? (Maybe with tcpdump?)
1
vote
1answer
572 views

SSH slow after configuring TCP Wrappers

We have SSH open on one of our production servers leaving it prone to various brute force attacks to break in. I reduced the attempts by changing the default port from 22. I want to further harden ...
4
votes
1answer
358 views

TCP wrapper “except” option

I configured the /etc/hosts.allow at the machine 192.168.122.50 with the following option. sshd : ALL EXCEPT 192.168.122.1 and tried ssh root@192.168.122.50 from the machine 192.168.122.1 and I was ...
4
votes
1answer
331 views

hosts.allow: %u not working (log username)

I need to keep track of all SSH connections on my server. In my /etc/hosts.allow I have something like this: sshd: ALL : spawn ( echo "`date` from %u %a " >> /var/log/ssh/%d.log ) & where %...